Commit Graph

194 Commits

Author SHA1 Message Date
Preston Skupinski 645c3b6a5b added CMP absolute and CPX/CPY immediate, direct page and absolute 2011-05-07 20:42:09 -04:00
Preston Skupinski cbe6896e8f fix a mistake when it came to storing the high byte in memory, while the previous method "worked" it could cause problems down the road as I was storing data larger than 1 byte in 1 byte cells in numerous cases 2011-05-07 19:32:22 -04:00
Preston Skupinski cc815b4b5f added a space where I was missing one in one test message 2011-05-07 18:56:20 -04:00
Preston Skupinski 41d1b2f17c added some tests for CMP 2011-05-07 18:55:19 -04:00
Preston Skupinski 96022047d6 added CMP immediate and fixed a misunderstanding as to when the carry bit is set or not set with SBC/CMP 2011-05-07 18:18:25 -04:00
Preston Skupinski 146992b192 added SBC immediate 2011-05-07 17:45:39 -04:00
Preston Skupinski 047095c8cc don't add the execute function by extending the prototype 2011-05-07 15:43:13 -04:00
Preston Skupinski 9254648308 added ADC direct page indexed x, ADC absolute indexed x, ADC absolute indexed y 2011-05-07 15:16:37 -04:00
Preston Skupinski 47766a6b0d added ADC direct page indirect 2011-05-07 14:37:29 -04:00
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 fc15c4c495 updated the TODO 2011-05-05 23:37:58 -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 f2f47833a7 added some tests for branching operations 2011-05-05 21:41:10 -04:00
Preston Skupinski d9917b0d4e make the tests for REP and SEP a bit more comprehensive 2011-05-05 20:12:01 -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 03387a550c have the examples make sure the registers are 16-bit 2011-05-05 11:11:58 -04:00
Preston Skupinski efa6b123ac updated the TODO 2011-05-05 11:00:59 -04:00
Preston Skupinski 7572795c12 add some examples demonstrating branching support to the README 2011-05-04 22:47:54 -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 3c4e7264cf remove unnecessary false parameter from function call 2011-05-02 19:02:55 -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 fc3dba463d update the TODO 2011-05-01 13:54:49 -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 67b19ee43a make the examples a bit more obvious as to how to use 2011-04-30 22:35:41 -04:00
Preston Skupinski a580ef2cdb updated the TODO and added a .gitignore so my vim *swp files don't accidently wind up in here 2011-04-30 22:24:57 -04:00
Preston Skupinski 935d3093f4 added a README 2011-04-30 21:59:08 -04:00
Preston Skupinski f809dfccc7 initial commit 2011-04-30 21:45:56 -04:00