Commit Graph

  • 8905c49b98 Only try interpreting control sequences in interactive mode master David Buchanan 2022-06-11 18:27:53 +0100
  • e9cdef2b48
    Merge pull request #5 from FrankBuss/master David Buchanan 2021-06-19 12:06:28 +0100
  • b81e3c9da7 fixed some warnings and compiling errors, when compiling with G++ instead of GCC Frank Buss 2021-06-19 08:26:49 +0200
  • 8abf954b33 Add interactive mode exit instructions, fix 'make test' interactivity David Buchanan 2020-12-11 16:30:34 +0000
  • 64df2291fc Static-ify instruction arrays David Buchanan 2020-12-11 16:18:42 +0000
  • c3674370ef Fix compile David Buchanan 2020-12-11 15:35:27 +0000
  • e000e95ffd
    Merge pull request #4 from robmcmullen/extern_h David Buchanan 2018-05-17 22:48:41 +0100
  • 4303c7276d Marked read_addr & write_addr as extern in 6502.h Rob McMullen 2018-05-17 13:49:33 -0700
  • 5790cbaf03
    Merge pull request #3 from robmcmullen/extern_h David Buchanan 2018-05-17 20:33:30 +0100
  • b664db7406 Changed header to define external vars to prevent multiple symbol definitions if included in multiple C files * space is reserved for the variables in 6502.c Rob McMullen 2018-05-17 09:51:33 -0700
  • 17e7fb07ef
    Merge 8d9c6c377d into 7e3ef5bd78 Rob McMullen 2018-05-04 23:01:58 +0000
  • 7e3ef5bd78
    Merge pull request #1 from robmcmullen/legal_instructions David Buchanan 2018-05-05 00:01:49 +0100
  • 8d9c6c377d Added NES torture test from http://www.qmtpro.com/~nes/misc/nestest.txt * see https://wiki.nesdev.com/w/index.php/Emulator_tests for the original ROM image Rob McMullen 2017-12-19 17:47:01 -0800
  • 2d30a08daf Created CPU struct to allow multiple instances of running processors at the same time * note: this is not multithreading; it simply allows a program to step through more than one CPU in the same process Rob McMullen 2017-12-16 22:31:48 -0800
  • 60a354d64c Removed commented out DEBUG define since it's not used anywhere Rob McMullen 2017-12-19 18:36:34 -0800
  • db29c5cba6 default stack pointer value to 0xff Rob McMullen 2017-12-19 18:33:41 -0800
  • 99aac0a85f Added usage statement Rob McMullen 2017-12-19 18:33:13 -0800
  • ff67a94658 Added tests from https://github.com/kingcons/cl-6502 Rob McMullen 2017-12-19 17:45:43 -0800
  • 20d6e48c9f Added decimal mode for ADC and SBC Rob McMullen 2017-12-19 17:25:35 -0800
  • a25ad398e8 Added -f flag to step through emulation at max possible speed (i.e. without the delay loop) Rob McMullen 2017-12-19 14:59:28 -0800
  • 649b7f8349 Added break command to stop at address and save memory dump Rob McMullen 2017-12-19 14:55:24 -0800
  • 138531960f Added -l command line argument to specify load address Rob McMullen 2017-12-19 11:44:17 -0800
  • aa189bc44a Fixed command line arg for cycle stop limit to use long int Rob McMullen 2017-12-19 10:06:59 -0800
  • 2ae87bf12e Fixed cycle timing for multi-byte NOP instructions Rob McMullen 2017-12-18 22:50:41 -0800
  • 454e33269a Fixed STA; it's the only operation that doesn't have extra cycles for crossing page boundaries Rob McMullen 2017-12-18 22:34:29 -0800
  • 53ca2a61d5 Reverted changes to Makefile to compile debug by default Rob McMullen 2017-12-18 22:24:35 -0800
  • 7dfd24a3f3 Forgot to increase NUM_MODES for JMP_IND_BUG mode Rob McMullen 2017-12-18 22:24:12 -0800
  • 75bb592753 Added extra cycles when crossing page boundaries and for branches taken Rob McMullen 2017-12-18 22:14:23 -0800
  • b6542017bd Updated instruction cycle timing for each opcode * Opcode timings are without page crossing or branch taken extra cycles Rob McMullen 2017-12-18 21:19:51 -0800
  • d4f85001dc Added multi-byte NOP instructions * fixes line #5010: C6C7 08 PHP Rob McMullen 2017-12-18 12:19:59 -0800
  • 15287322f1 Handle zero page wraparound in ($xx),Y * fixes line #3065: D95B C9 12 CMP Rob McMullen 2017-12-18 12:01:18 -0800
  • 986a9f33b6 Handle zero page wraparound in ($xx,X) * fixes line #1100: CFF4 C9 5D CMP Rob McMullen 2017-12-18 11:48:56 -0800
  • 44dfdfaca5 Handle JMP ($xxFF) bug Rob McMullen 2017-12-18 11:27:17 -0800
  • 145de40872 Fixed PLP to always clear B flag * line #103: C826 D0 09 BNE Rob McMullen 2017-12-18 10:37:23 -0800
  • 3471e9aa3a Fixed PHP to only modify B flag in byte written, status reg itself is unchanged * line #71: C7E8 68 PLA * see http://visual6502.org/wiki/index.php?title=6502_BRK_and_B_bit Rob McMullen 2017-12-18 09:53:18 -0800
  • 4bfc5655b6 Removed DECIMAL message to allow comparisons to NES log Rob McMullen 2017-12-18 09:52:50 -0800
  • 1e52aaa154 Added -c flag to run for specified number of cycles and exit Rob McMullen 2017-12-18 09:52:11 -0800
  • c5e9cf084e Added command line args to set initial machine state * changed debug print to match a validation run found on nesdev.com Rob McMullen 2017-12-18 09:15:02 -0800
  • b9d74c2a85 Fixed backspace, mostly DavidBuchanan314 2017-02-08 15:37:31 +0000
  • 622a2dda85 Add framework for cycle counting DavidBuchanan314 2017-01-08 16:28:32 +0000
  • 16dc57ba2b use scientific notation for big decimals DavidBuchanan314 2017-01-08 16:28:13 +0000
  • 4d9a788f7f Make status bits bools DavidBuchanan314 2017-01-07 21:25:34 +0000
  • 851ac5fe1e Make status structs unsigned DavidBuchanan314 2017-01-07 21:12:27 +0000
  • eb70f8a7c7 Added -Wpedantic DavidBuchanan314 2017-01-03 22:02:00 +0000
  • 04e228bfef Fixed memory wrapping in address-mode decoders DavidBuchanan314 2017-01-03 21:51:21 +0000
  • 09f394cc45 Adjust wording DavidBuchanan314 2017-01-03 21:30:18 +0000
  • 10eeb1a503 Add TODO section DavidBuchanan314 2017-01-03 21:07:58 +0000
  • 1da995b11a Made variable names slightly more consistent DavidBuchanan314 2017-01-03 20:18:36 +0000
  • 12f80f409c Improve/simplify Makefile. main.c also renamed. DavidBuchanan314 2017-01-03 20:01:18 +0000
  • 378169d56b Initial commit DavidBuchanan314 2017-01-03 19:39:48 +0000
  • d085b5699c Initial commit David Buchanan 2017-01-03 19:29:36 +0000