summaryrefslogtreecommitdiff
path: root/chip8.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-17use getopts for argument parsingDaniel Jones1-3/+2
2020-08-30move timers to a functionDaniel Jones1-5/+8
2020-08-22added command line options for speed and video scaleDaniel Jones1-9/+0
./program speed scale rom
2020-08-21added license informationDaniel Jones1-0/+15
2020-08-21fixed wait until key press opcodeDaniel Jones1-7/+9
2020-08-21correct Fx55 and fx6 opcodesDaniel Jones1-11/+4
2020-08-21more instructions implementedDaniel Jones1-14/+118
a good few roms work now, many glitches and such though. some roms wont work
2020-08-19implemented more instructionsDaniel Jones1-5/+71
these instructions are mostly untested at the moment, i need to test them
2020-08-19instructions and debugging featuresDaniel Jones1-5/+20
added some more instructions, particularly calling and returning from subroutines using the stack. also added stepping through the program using the '.' key to advance one cycle
2020-08-19begin implementing instructionsDaniel Jones1-1/+71
screen clearing and loading bytes into registers implemented currently
2020-08-18replace magic numbers with constantsDaniel Jones1-11/+11
2020-08-18implemented keypadDaniel Jones1-0/+6
hex keypad is mapped to keys 1234,qwer,asdf,zxcv
2020-08-17implement pixel XORing and wrappingDaniel Jones1-13/+17
sprites are properly XOR'd to the display, setting the 0xF register as appropriate. sprites also wrap on the bottom and irght side of the screen. because you can't access negative video memory, wrpaping top to bottom and left to right isn't implemented
2020-08-17sprite drawing basic implementationDaniel Jones1-1/+37
begin implementing sprite drawing, currently draws the chip8 fontset well, no idead about other sprites yet
2020-08-16more initialisation and added the fontsetDaniel Jones1-4/+45
fontset also loaded into memory at 0x0, we have 0x0 to 0x1FF free for anything we want, that is where the interpreter is meant to be
2020-08-16began chip8 interpreter, reading rom fileDaniel Jones1-0/+41