Commit Graph

24 Commits

Author SHA1 Message Date
Preston Skupinski
1f127547e1 added ADC direct page and ADC absolute 2011-05-07 13:08:02 -04:00
Preston Skupinski
861a8183b2 check for signed overflow with ADC 2011-05-07 12:17:14 -04:00
Preston Skupinski
676b111870 added ADC immediate 2011-05-07 11:02:17 -04:00
Preston Skupinski
f613f2b15e add 'var' where I somehow forgot to in order to satisfy QUnit 2011-05-05 22:42:16 -04:00
Preston Skupinski
17dd04c7d6 fixed DEC operations to properly handle decrementing 0 by 1 and numerous fixes to the DEC and INC operations otherwise 2011-05-05 22:34:49 -04:00
Preston Skupinski
7500a31ef5 started adding test cases for the emulator, I've decided upon using QUnit for the tests 2011-05-05 17:25:44 -04:00
Preston Skupinski
aed03f6ff5 fixed SEP and REP 2011-05-05 11:39:34 -04:00
Preston Skupinski
a9f15f133b set the n bit of the p status register as required and a few bug fixes otherwise 2011-05-04 22:39:19 -04:00
Preston Skupinski
94af723baa added DEC accumulator, DEC absolute, DEC direct page, DEX, and DEY as well as added overflow handling for INC and DEC operations and made some style changes 2011-05-03 00:00:40 -04:00
Preston Skupinski
5a349a4381 added BPL, BMI 2011-05-02 22:28:20 -04:00
Preston Skupinski
9795ea416b added BCC, BCS, BEQ, BNE, BVC, BVS 2011-05-02 21:11:57 -04:00
Preston Skupinski
ddbf51d8ef added BRA 2011-05-02 20:20:20 -04:00
Preston Skupinski
8a401c9eba added JMP absolute indirect and repositioned the incrementing of the program counter so the program counter doesn't incorrectly increment after a branch or jump and increments at the correct time anyways 2011-05-02 18:10:17 -04:00
Preston Skupinski
952b6ba840 added JMP absolute 2011-05-02 16:29:09 -04:00
Preston Skupinski
a5d690e9cb quick fix to a silly mistake 2011-05-02 08:03:53 -04:00
Preston Skupinski
4828d9c1b1 added STA and LDA absolute long 2011-05-01 20:09:14 -04:00
Preston Skupinski
09fce7cff5 added STA direct page indirect 2011-05-01 17:38:04 -04:00
Preston Skupinski
96a8899204 added LDA direct page indirect (0xb2) 2011-05-01 16:52:48 -04:00
Preston Skupinski
982107a90b fixed a mistake where I mixed up high byte and low byte in a few cases 2011-05-01 16:07:10 -04:00
Preston Skupinski
93ae3ec6a0 check if transferred value is zero and set the z bit of the p status register 2011-05-01 13:46:28 -04:00
Preston Skupinski
b167d4c164 added TAX, TAY, TXA and TYA 2011-05-01 13:15:16 -04:00
Preston Skupinski
08593831b3 added TXY and TYX 2011-05-01 12:20:18 -04:00
Preston Skupinski
44696ed8ce direct page addressing when using an index register must overflow to 0x0000 and not be allowed to exceed 0xffff, so 0xfff0+0x12 should result in an address of 0x02 2011-04-30 23:54:07 -04:00
Preston Skupinski
f809dfccc7 initial commit 2011-04-30 21:45:56 -04:00