28 Commits

Author SHA1 Message Date
5ee9afcc2c feat: implement basic pipeline
passes arm.gba, thumb.gb and armwrestler, fails in actual games
TODO: run FuzzARM debug specific titles
2022-07-13 03:17:49 -03:00
ee27053db3 chore: remove TODOs and some useless imports 2022-02-06 19:07:23 -04:00
7bfb87a859 fix: listen to my past self
By deleting this line I go from test 234 to test 355 in arm.gba
2022-02-05 21:35:26 -04:00
c6bb4bf8e1 fix(cpu): allow for select values to overflow
FuzzARM found these operations which panicked, when they should
have overflowed. These are now fixed

n = 8000
2022-02-02 22:49:33 -04:00
ae4023e51c chore: dedup code in THUMB instructions 2022-01-29 20:05:27 -04:00
bce067557f chore: refactor and genericize ARM data processing calculations 2022-01-29 19:40:58 -04:00
e0acabf050 chore: relocate barrel_shifter zig file 2022-01-29 18:52:16 -04:00
599e068c7e feat(cpu): implement format2 THUMB instructions 2022-01-29 18:46:27 -04:00
fbc5b309b0 chore: binary logging + file logging + DP chanes + fastBoot changes 2022-01-25 18:18:52 -04:00
6257418405 fix(cpu): interim solution to weird program counter behaviour on illegal tst instruction 2022-01-25 09:23:32 -04:00
985fefb9f6 chore(cpu): implement behaviour for undefined test instruction 2022-01-25 08:05:42 -04:00
95dd3e3df8 fix(cpu): fix PC offset when barrel shifter and bit 4 of DP is set 2022-01-24 17:52:01 -04:00
702ff288d8 fix(cpu): implement S set + rd == 15 case for data processing 2022-01-19 07:46:49 -04:00
6177927049 feat(cpu): implement CMN 2022-01-18 15:09:25 -04:00
8d786cbe25 feat(cpu): Implement RSC 2022-01-18 14:46:57 -04:00
212bc9e11d feat(cpu): implement RSB 2022-01-18 14:36:03 -04:00
63a57ac954 feat(cpu): implement BIC 2022-01-18 14:28:47 -04:00
85dae5e1d7 feat(cpu): implement EOR 2022-01-18 14:27:07 -04:00
6189bf0315 feat(cpu): implement ADD 2022-01-18 14:25:29 -04:00
2f3213f693 feat(cpu): implement fix for ADC and implement SBC 2022-01-18 14:20:01 -04:00
a7a44c4463 chore(cpu): refactor the barrel shifter once again 2022-01-17 15:55:55 -04:00
d4d2fedfbe feat(cpu): implement ADC
ADC interacting w/ the Barrel Shifter is not working though
2022-01-17 14:29:34 -04:00
9098a55ae3 feat(cpu): implement ARM SUB in data processing 2022-01-17 11:35:41 -04:00
c0d956ea95 feat(cpu): implement MVN 2022-01-17 11:30:59 -04:00
1025500407 chore(cpu): refactor barrel shifter 2022-01-17 11:17:04 -04:00
d05a924420 fix(cpu): use barrel shifter in data processing immediates 2022-01-17 11:02:34 -04:00
0cf052838d chore(cpu): lay groundwork for THUMB instruction decoding and execution 2022-01-14 05:23:16 -04:00
ae37b1218b chore(cpu): refactor ARM functions to make room for THUMB 2022-01-14 04:26:09 -04:00