My next project is to create a sort antivirus that tag's site's as unsafe, and blocks unsafe behavior (eg a page downloading a file without you telling you too), but it's going to be a chrome extension. Time to finally learn javascript.
inb4 web programming.
Working on a 6502 emulator.
[code]
.segment "CODE"
brk
lda #$BE
ldx #$EF
nmi:
rti
reset:
rti
irq:
lda #$DE
ldx #$AD
rti
.segment "VECTORS"
.word nmi, reset, irq
[/code]
Once assembled and linked, the image can be run through the emulator:
[img]http://ahb.me/1lKU[/img]
The 'brk' instruction is executed, which pushes the current program counter and processor flags to the stack, and jumps to the BRK ISR (the 16 bit address to the BRK ISR is given at 0xFFFE in the 6502 architecture).
The opcode $A9 is the 'lda #$DE' (the first instruction of the BRK ISR). I haven't implemented lda yet, so that's why it's saying illegal opcode.
The source is here if anyone's interested: [url]http://github.com/charliesome/6502[/url]. I'm hoping to get to a point where my emulator can run Apple II or Commodore 64 programs, although that's a long way off.
My school's CMS just piggybacks off our district's CMS, but seeing as we have one IT staff throughout the district it makes sense.
[url]http://www.everett.k12.wa.us/everetthigh[/url]
It's not [b]bad[/b] but they sure do love their PDFs there. Some of the teacher sites might be hilarious though.
By way of content, I'm going to go ahead and improve my config UI for my multi-browser kludge. Right now it looks like this:
[img]http://dl.dropbox.com/u/5733962/dualbrowserconfig1.png[/img]
At my school they monitor our screens and close any "Suspect Programs"...
It's funny though, they keep the "AB Tutor Manager" on every individual computer... Meaning, with a little tampering we can access it. So, they kind of get pissed when you watch their screens, and take control of their computers...
[QUOTE=Loli;27160910]At my school they monitor our screens and close any "Suspect Programs"...
It's funny though, they keep the "AB Tutor Manager" on every individual computer... Meaning, with a little tampering we can access it. So, they kind of get pissed when you watch their screens, and take control of their computers...[/QUOTE]
Where do you live? Soviet?
Hey,
ARGHHH
There is some really, really obnoxious, inconsistent padding bug when I render my stuff and it's making me put my head through the wall :bang:
[QUOTE=likesoursugar;27161151]Where do you live? Soviet?[/QUOTE]
England... I keep them on their toes...
Ah, here we go.
[img]http://dl.dropbox.com/u/5733962/dualbrowserconfig2.png[/img]
Tkinter is ass ugly, but what the hell. I don't look at this thing often anyway.
Oh wow, in the highlights again. I don't even know if logic gates counts as programming. Oh well.
I've been constantly running into a problem with my garbage collector since the beginning of this excursion, which is how I can easily track what is being deleted, and where. My solution was simple: just use a list of addresses that are currently allocated, then deallocate the given chunk that contains the address.
However, I don't want to go off and use the default std::allocator for whichever container I'm using (it defeats the purpose of having a garbage collector). So originally, I was going to use the custom stl allocator that I've written which allows people to use the C++ STL with my collector. But wait, this would mean whenever I deallocate from the custom allocator, it would be sent to the collector, so the allocator only ever grows, and nothing is every truly deleted. oops :P
So, I've changed from a basic list, to a producer/consumer queue. Now my issue is (almost) resolved. A simple std::queue works just fine for what I'm doing (writing to the back of it, popping from the front). By default, the std::queue type uses an std::deque as the underlying container, but anything that implements a front, back, pop_front, and push_back function should work fine. In this case, an std::list can be used.
But, an std::list is doubly linked, which means we waste a whole sizeof(size_t) bytes per "delete" of an address. This isn't an efficient use of memory, and could cause a "stop the world" scenario, as the p/c queue is just storing a size_t. Once we run out of space in our allotted chunk, and then we have to pause everything bu the collector. Not good.
A forward_list from C++0x would be perfect here, but unfortunately, I'm trying to stay cross platform with current technology. Which means I probably need to write my own. :/
On the bright side, I'm so extremely close to being done with this :D (then it is just testing, testing, testing and possibly a benchmark)
[QUOTE=Loli;27160910]At my school they monitor our screens and close any "Suspect Programs"...
It's funny though, they keep the "AB Tutor Manager" on every individual computer... Meaning, with a little tampering we can access it. So, they kind of get pissed when you watch their screens, and take control of their computers...[/QUOTE]
Gah, my old school had this. Seeing you mouse move on it's own is really disturbing.
Implementing a timer for smooth and non-framerate-dependent interpolation was a lot simpler than I thought, why'd I put it off for a few days?
[editline]2nd January 2011[/editline]
also, WAYWO v15: Post your school's website edition
[editline]2nd January 2011[/editline]
dangit WAYWO... [url]http://sagehillschool.org/default.aspx[/url]
Not exactly related to this thread. But I'm sure would be answered faster here, then anywhere else.
I'm trying to get that little "help" window show when I get to an error. Here is what I'm talking about:
[url]http://img713.imageshack.us/img713/344/thisk.jpg[/url]
I'm using VS2010 student.
And my schools site win [url]http://ntigymnasiet.se/[/url]
[QUOTE=Dj-J3;27157699]V14 OP was better imo. :smith:[/QUOTE]
Definitely agree, this OP kind of sucks.
[QUOTE=Drak_Thing;27162608]Not exactly related to this thread. But I'm sure would be answered faster here, then anywhere else.
I'm trying to get that little "help" window show when I get to an error. Here is what I'm talking about:
[url]http://img713.imageshack.us/img713/344/thisk.jpg[/url]
I'm using VS2010 student.[/QUOTE]
the error carefully explains how you must run spriteBatch.Begin before you can run a spriteBatch.Draw.
Arch Linux was all good until I forgot to select wireless_utils during install thus no internet. My attempts to find the mystical /arch/pkg directory on the install cd failed. Did I mention I can't re-install now because it just boots into GRUB (disregarding the install cd)?
Edit: Yes, yes, user error. But it was supposed to be included in base-devel, which I selected by the way.
Edit: I'm thinking I'll just throw one of my many Ubuntu cd's at it :/
[QUOTE=likesoursugar;27162636]And my schools site win [url]http://ntigymnasiet.se/[/url][/QUOTE]
Oh god...
[img]http://img35.imageshack.us/img35/4200/watyn.png[/img]
[QUOTE=robmaister12;27162664]the error carefully explains how you must run spriteBatch.Begin before you can run a spriteBatch.Draw.[/QUOTE]
Well, I know that, lol. I'm mean, the window itself explaining the problem. How do I enable that? When I get an exception, it only shows in the output window.
[QUOTE=iRzilla;27162940]I really need to slow down posting. 20 posts out of 90 in this thread are mine. (Top poster already :v:)[/QUOTE]
Where is this list of top posters anyway? I haven't found it yet...
[QUOTE=DevBug;27162877]Did I mention I can't re-install now because it just boots into GRUB (disregarding the install cd)?[/QUOTE]
Fix your BIOS settings
[QUOTE=BlkDucky;27162994]Where is this list of top posters anyway? I haven't found it yet...[/QUOTE]
on the right of every thread, there's the replies tab. The number of replies is highlighted blue.
Click it.
[QUOTE=Combino;27162998]Fix your BIOS settings[/QUOTE]
Way ahead of you. I'll turn off the power and remove the battery >:{
USB-CDROM
NET
HDD-0
Edit:
It forces the BIOS to load the defaults...
Edit:
My iso is fine, burn't cd is fine. Ubuntu 10.04 loads fine but Arch doesn't. Whatever.
[QUOTE=robmaister12;27163017]on the right of every thread, there's the replies tab. The number of replies is highlighted blue.
Click it.[/QUOTE]
[img]http://gyazo.com/89df444c4a77d57a99c44e7457f7bf0b.png[/img]
Oh snap. And thanks. I'd never have found that.
Guys seriously?
Out of 90ish posts i think theres been 2 that were content
My minecraft server has a nice "Tick" event I can hook into (it runs every second) and I wanted to choose a data type to hold a "SecondsSinceServerStart" variable.
I chose long, and I wanted to see just how long it would last before it would overflow...
[b]292277266 [i]Millenia[/i][/b]
Just a bit random.
Reading further, this should be 20 times per second, woops.
[QUOTE=Tezzanator92;27163368]My minecraft server has a nice "Tick" event I can hook into (it runs every second) and I wanted to choose a data type to hold a "SecondsSinceServerStart" variable.
I chose long, and I wanted to see just how long it would last before it would overflow...
[b]292277266 [i]Millenia[/i][/b]
Just a bit random.
Reading further, this should be 20 times per second, woops.[/QUOTE]
Don't forget to factor in 98.2% up time because you'll be running it on an atom processor with home brew server software that stores everything in ram.
gonna make a text based game with c++
i just started out with c++ and i want to know how you do something that stays in the text thingy
like this (poor paint):
[IMG]http://v.yey.nu/7f0/57a68.png[/IMG]
is there any framework or something for this
im new to desktop programming
[QUOTE=Awwent;27163578]gonna make a text based game with c++
i just started out with c++ and i want to know how you do something that stays in the text thingy
like this (poor paint):
[img_thumb]http://v.yey.nu/7f0/57a68.png[/img_thumb]
is there any framework or something for this
im new to desktop programming[/QUOTE]
Look up Curses.
Sorry, you need to Log In to post a reply to this thread.