Peter Evans
2318b1917a
This form needs two RORs to work
...
That's because the first ROR pushes the 1 in bit0 into the carry bit;
the second moves the carry bit into the bit7 position, which will match
128.
2018-02-19 22:01:30 -06:00
Peter Evans
d590a809d8
Tests should reflect how carry is handled in ROL/R now
2018-02-19 21:59:55 -06:00
Peter Evans
65f13bb1e4
Add missing output and fix buffer size issue
...
We use BUFSIZ everywhere, except in setvbuf(), which kinda needs to know
the proper buffer size. Because we were passing 256, which is (much!)
lower than BUFSIZ, we were wrapping output around in an odd, unexpected
way.
2018-02-19 21:49:58 -06:00
Peter Evans
9f0d7f5413
Fix some compile failures due to changed params
2018-02-19 20:03:25 -06:00
Peter Evans
9e26e215cd
In which we discover that image doesn't matter
2018-02-11 20:38:51 -06:00
Peter Evans
350a06890a
Split up logic for keyboard test
...
In accordance with the split in logic we had made for the source
function
2018-02-10 18:31:38 -06:00
Peter Evans
69d425db2d
Add tests for vm_di
2018-02-10 18:25:29 -06:00
Peter Evans
919869289e
Add missing test for reflect functions, init
2018-02-10 18:20:50 -06:00
Peter Evans
aee0521b0a
Change key to ALT+Q
2018-02-07 16:08:43 -06:00
Peter Evans
fa938470d3
Account for changes to vm_reflect functions
2018-02-07 14:44:37 -06:00
Peter Evans
8450ccd3c5
Unit-testing builds now define TESTING
2018-02-06 23:38:15 -06:00
Peter Evans
1f50ceb4c5
Add test file for apple2.reflect.c
2018-02-06 14:27:44 -06:00
Peter Evans
5cfdd28302
Add vm_event tests
2018-02-05 21:40:36 -06:00
Peter Evans
c1c42834ed
Add reflect system to virtual machine
2018-02-05 20:31:05 -06:00
Peter Evans
e691d33d42
Add dec_nib test
2018-02-04 16:09:02 -06:00
Peter Evans
70b0532a26
Add test for dec_dos
2018-02-04 16:06:54 -06:00
Peter Evans
599b7c9212
Add test for dec_track
2018-02-04 15:44:59 -06:00
Peter Evans
7dc97484e3
Add test for enc_track
2018-02-04 14:32:53 -06:00
Peter Evans
8469c09161
Add test for enc_nib
2018-02-04 14:18:42 -06:00
Peter Evans
caf2bc1c4e
Add test for map, note skipped tests
2018-02-04 14:15:38 -06:00
Peter Evans
9e4a842fdf
Add test for switch_rw
2018-02-04 11:50:58 -06:00
Peter Evans
f696346806
Add test for switch_latch
2018-02-04 11:32:23 -06:00
Peter Evans
50dfca476b
Add test for switch_drive
2018-02-04 11:30:38 -06:00
Peter Evans
edee060167
Add test for switch_phase function
2018-02-04 10:47:18 -06:00
Peter Evans
2752d82044
Add phaser test
2018-02-04 01:11:09 -06:00
Peter Evans
2d13e95d7f
Add encode/decode tests, skip for save
2018-02-04 00:22:14 -06:00
Peter Evans
bef19539f6
Implement (most of) text_area test
2018-02-03 22:43:00 -06:00
Peter Evans
c503189b7c
Add exception for 40col
2018-02-03 22:02:25 -06:00
Peter Evans
de67d5064b
Add test for vm_screen_dirty, exception for prepare
2018-02-03 22:01:27 -06:00
Peter Evans
3329753ef7
Add test for vm_segment_fwrite
2018-02-03 22:00:04 -06:00
Peter Evans
3a1784a5a7
Add image, stream to eject test
2018-02-03 20:50:30 -06:00
Peter Evans
2dd21f1487
Add image type, image segment
2018-02-03 18:10:29 -06:00
Peter Evans
f45a64dfe4
Add missing tests file
2018-02-03 17:43:04 -06:00
Peter Evans
a340c963a0
Add proper test for sector decode
2018-02-02 17:20:17 -06:00
Peter Evans
55c85b0ec6
Encoded code needed to change
2018-02-01 18:41:34 -06:00
Peter Evans
fadf5a9782
Add decode...code
2018-02-01 18:41:01 -06:00
Peter Evans
f4cdff0bfb
Add sector encoding test
2018-01-31 16:52:58 -06:00
Peter Evans
b202e70b9b
Add test suite for enc.c
2018-01-31 16:03:03 -06:00
Peter Evans
ce405531b8
We switched the logic for C015
2018-01-31 00:20:37 -06:00
Peter Evans
38d80078d9
Remove obsoleted test functions
2018-01-27 00:16:39 -06:00
Peter Evans
dde7312864
No need to deal with carry here
2018-01-27 00:15:06 -06:00
Peter Evans
9bbfb95b02
Carry is no longer factored
2018-01-26 22:04:47 -06:00
Peter Evans
d29dfd442a
Account for SLOTCXROM being on by default
2018-01-26 22:03:57 -06:00
Peter Evans
4509f61be6
dd_write no longer accepts the byte it will wryte
2018-01-26 20:00:10 -06:00
Peter Evans
47630fdc88
pha/php only push one byte onto the stack
2018-01-23 21:37:36 -06:00
Peter Evans
c946eb3f69
Fix incorrect stack info
...
(The previous behavior of RTS/JSR was not right.)
2018-01-23 21:35:59 -06:00
Peter Evans
2e334e2ee1
Update tests with correct expected text from disassembler
2018-01-23 21:19:26 -06:00
Peter Evans
80136e9360
Most status flags are now set when the CPU is created
2018-01-23 20:41:48 -06:00
Peter Evans
0b03fd24f5
Carry must also be factored in
2018-01-23 20:26:01 -06:00
Peter Evans
5656b271ee
Account for carry being set by default
2018-01-23 16:30:52 -06:00