1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-22 14:30:45 +00:00
Commit Graph

471 Commits

Author SHA1 Message Date
Peter Evans
608b2259e5 Break keyboard event logic out into normal/special 2018-02-06 16:29:15 -06:00
Peter Evans
fa5bfe09ae Add better handling if selected_drive is NULL
(Discovered from static analysis)
2018-02-06 14:58:00 -06:00
Peter Evans
0dce7dbc58 Remove unnecessary assignment 2018-02-06 14:37:04 -06:00
Peter Evans
0c1fc1e865 Add clean rule 2018-02-06 14:36:32 -06:00
Peter Evans
1f50ceb4c5 Add test file for apple2.reflect.c 2018-02-06 14:27:44 -06:00
Peter Evans
112f178ee3 Add ability to regen cmake with/without static analysis 2018-02-06 14:27:25 -06:00
Peter Evans
a388cf0158 Add missing param name for reflect struct 2018-02-06 14:26:57 -06:00
Peter Evans
fbee851daf Add apple2 reflect code 2018-02-06 00:30:46 -06:00
Peter Evans
b7f2cabb3e Add new REFLECT macro to allow other code to define funcs 2018-02-05 21:55:13 -06:00
Peter Evans
318107d18f Change macro name to REFLECT_HANDLER 2018-02-05 21:54:38 -06:00
Peter Evans
8c0b69668c Add docblocks for vm_event functions 2018-02-05 21:43:02 -06:00
Peter Evans
5cfdd28302 Add vm_event tests 2018-02-05 21:40:36 -06:00
Peter Evans
c6bbb46dfe Add ignores for docblocks 2018-02-05 20:44:11 -06:00
Peter Evans
c1c42834ed Add reflect system to virtual machine 2018-02-05 20:31:05 -06:00
Peter Evans
149df404ac Allow us to build erc from the root dir 2018-02-05 12:42:33 -06:00
Peter Evans
4ce79c785c Only read or write if a disk is in the drive 2018-02-05 12:42:19 -06:00
Peter Evans
a13be6c413 Disable opcode output 2018-02-05 12:29:00 -06:00
Peter Evans
92ee67c8d8 Allow us to signal that we should exit 2018-02-05 00:35:04 -06:00
Peter Evans
72c4111458 Add event system; move event code into vm_event.c 2018-02-05 00:28:22 -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
247bafbcce We also need to move beyond the sector header 2018-02-04 15:44:41 -06:00
Peter Evans
7212a1041a Encoded tracks should be longer 2018-02-04 15:41:48 -06:00
Peter Evans
7dc97484e3 Add test for enc_track 2018-02-04 14:32:53 -06:00
Peter Evans
e23a3e4b63 Use macro definitions for track/sector length 2018-02-04 14:19:40 -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
64364d91ad Remove unnecessary for loop 2018-02-04 14:15:24 -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
463a9ba268 Handle all phase cases (zero and non-zero) 2018-02-04 01:11:30 -06:00
Peter Evans
2752d82044 Add phaser test 2018-02-04 01:11:09 -06:00
Peter Evans
4777886d2d Add missing decl for phaser 2018-02-04 00:26:01 -06:00
Peter Evans
2d13e95d7f Add encode/decode tests, skip for save 2018-02-04 00:22:14 -06:00
Peter Evans
1245ddec55 Make encode/decode more testable with return codes 2018-02-04 00:21:39 -06:00
Peter Evans
8009a33bd4 Use int return for error code 2018-02-04 00:06:22 -06:00
Peter Evans
dd2b956b49 Add ERR_INVALID error code 2018-02-04 00:06:04 -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
2bdc921b76 Add missing docblocks 2018-02-03 21:56:27 -06:00
Peter Evans
67f943d891 When encoded, the track size is larger than 4k 2018-02-03 21:18:07 -06:00
Peter Evans
a970759bec Add missing extern for the save function 2018-02-03 21:17:54 -06:00
Peter Evans
164657a915 Allow us to run unit tests from the root dir 2018-02-03 20:50:45 -06:00
Peter Evans
3a1784a5a7 Add image, stream to eject test 2018-02-03 20:50:30 -06:00
Peter Evans
a6c1564747 Add fwrite function, support for streams and types 2018-02-03 20:50:08 -06:00