Peter Evans
46fedccce1
Use the MIT license
2017-12-06 17:08:09 -06:00
Peter Evans
12d0e5403a
Add documentation for the arith instructions
2017-12-06 17:03:37 -06:00
Peter Evans
d0dad61db8
Better documentation; use a macro to define modes
2017-12-06 16:54:14 -06:00
Peter Evans
eb865243bb
We have to pass NULL into log_open now
2017-12-06 16:53:15 -06:00
Peter Evans
079cd9f096
We need to know what a FILE is
2017-12-06 16:52:33 -06:00
Peter Evans
102378640a
Proper indentation
2017-12-06 16:45:16 -06:00
Peter Evans
ffd2550364
Better documentation; log to stdout
2017-12-06 16:43:30 -06:00
Peter Evans
4199637338
Erc, not emp
2017-12-06 16:11:13 -06:00
Peter Evans
18dca43e61
It's erc, not emp
2017-12-06 16:07:36 -06:00
Peter Evans
00ff9f069d
Vastly simplify unit tests for mos6502
...
Criterion's init and fini config options allow us to register setup and
teardown functions. We now use this to register the common cpu variable
for the mos6502 tests, albeit through the use of a global variable.
Doing so necessitated that each of the different test files have their
own suites, due to some implementation details in Criterion, but this is
No Big Deal.
2017-12-06 15:57:15 -06:00
Peter Evans
98f70e0a9a
Add functions for pressing/releasing keys
2017-12-06 15:21:39 -06:00
Peter Evans
0e02fb8a1a
Add struct, initial create function for apple2
2017-12-06 14:36:14 -06:00
Peter Evans
89ddd20658
Add read_byte function to return the next byte in memory
2017-12-05 20:40:35 -06:00
Peter Evans
50a84b4099
Remove cycles field from mos6502 struct
...
It was both unused and not necessary, as we can simply compute the
number of cycles in the execute function.
2017-12-05 20:23:17 -06:00
Peter Evans
f79bd60d96
Change address resolver test to use new approach
2017-12-05 20:15:22 -06:00
Peter Evans
eaa6c85fe4
Add the type for the execute function
2017-12-05 19:03:40 -06:00
Peter Evans
4e6073cf2e
Add function decl for the execute func
2017-12-05 19:03:02 -06:00
Peter Evans
5ada987c83
Add the execute function for the 6502
...
This executes a single opcode. Note this also makes a change to the
get_address_resolver function such that accepts an opcode, not the
address mode itself.
2017-12-05 19:01:43 -06:00
Peter Evans
eaaf63a069
Zero out last_addr and cycles
...
This fixes a super-annoying bug in the unit-test suite where we would
fail randomly because sometimes last_addr would have garbage in it.
2017-12-05 18:41:34 -06:00
Peter Evans
631451afe5
Use C-style to denote documentation
2017-12-05 18:40:40 -06:00
Peter Evans
8454d1a6c9
Add instruction handler function, handler table
2017-12-05 18:38:36 -06:00
Peter Evans
913297addd
Add the name of the software
2017-12-05 18:38:14 -06:00
Peter Evans
fc4a6f19e6
Baby's first README
2017-12-04 23:31:05 -06:00
Peter Evans
54473be302
Add functions for instructions, cycles, and address modes.
...
This also adds a new table for cycles, and adds unit test functions for
the work as well.
2017-12-04 23:30:18 -06:00
Peter Evans
87de0a877a
Add all our tests, plus other fixes
2017-12-03 20:19:17 -06:00
Peter Evans
fe9ce3aca3
Tests for the new mos6502 functions
2017-12-02 13:27:30 -06:00
Peter Evans
3cebed2377
Adding all of the instruction files
2017-12-02 13:05:53 -06:00
Peter Evans
237d5e3cb6
First commit
2017-11-21 23:24:51 -06:00