144 Commits

Author SHA1 Message Date
0e53e774fe fix: remove undefined 2022-07-03 08:59:44 -03:00
7872515da7 feat: pass thumb.gba 2022-07-03 08:44:48 -03:00
46d1d83724 fix: don't fake the pipeline in swi 2022-07-02 10:09:44 -03:00
cf38dee61a feat: fake the pipeline less 2022-07-02 10:09:25 -03:00
d7aa7d0a9e feat: implement obscure behaviour for ARM data processing instrs
When a test instruction is called when rd == 15, then the CPSR is
reloaded from the SPSR, the pipline is not flushed
2022-07-02 10:07:52 -03:00
bfeedb5310 chore: progress towards working pipeline
focus on THMB branching and a little bit of ARM data processing
2022-07-02 04:45:34 -03:00
df3538caeb fix: get beeg.gba working again 2022-07-02 03:15:26 -03:00
27a6ced4a7 fix(pipeline): gang.gba works 2022-07-02 01:47:10 -03:00
b200dd9fa1 chore: add non-working pipeline 2022-07-01 23:49:49 -03:00
ff3f79801c chore: modify type signature of util.sext 2022-05-23 14:48:52 -03:00
12f9bb51c1 feat: stub mode 1 and 2 2022-05-01 18:53:11 -03:00
68012f84d3 chore: comment ARM MSR code + Audio issues 2022-04-30 22:17:34 -05:00
002287ecfe fix: incorrect order-of-operations in ARM BL impl 2022-04-27 23:15:39 -05:00
9cce4d9859 chore: misc improvements 2022-04-21 10:15:52 -03:00
6d5c30ac25 fix: remove accidental rotation in ldrsh instructions 2022-04-13 22:59:32 -03:00
80e714e2eb chore: reimplement bus read/writes 2022-04-08 16:48:43 -03:00
37a360ec07 fix: force align reads/writes in memory bus rather than in CPU 2022-04-08 15:17:31 -03:00
39ab363afa fix: improve perf of instructions w/ rotr 2022-03-16 22:56:37 -03:00
cb4d3a9a51 chore: replace unnecessarily complex sign extension implementation 2022-02-28 20:38:50 -04:00
3746cf6025 chore: don't panic on 32-bit I/O 2022-02-19 06:45:39 -04:00
d2740e30d9 chore: squash bugs preventing swi_demo.gba from working 2022-02-13 02:29:53 -04:00
d897c2fdcc fix: don't mask away MSB in THUMB.5 add 2022-02-12 03:23:55 -04:00
783706193b fix: properly decode format 11 instructions 2022-02-12 03:13:38 -04:00
b93bd53529 chore: make use of scoped logging 2022-02-11 01:33:33 -04:00
ee27053db3 chore: remove TODOs and some useless imports 2022-02-06 19:07:23 -04:00
bbd4447734 fix(cpu): force align thumb and arm block data transfers 2022-02-06 17:08:12 -04:00
225c0f7d55 feat: pass arm.gba 2022-02-06 05:06:25 -04:00
fcde905ae1 chore: reimplement ARM LDM/STM 2022-02-06 04:34:45 -04:00
798987eba0 chore: improve arm ldm/stm 2022-02-05 23:29:34 -04:00
adfd501fc4 fix(cpu): force-align SWP reads and writes 2022-02-05 23:18:23 -04:00
9581e3b3cb fix: force-align ARM STRH reads 2022-02-05 23:09:13 -04:00
1b9ab1f1d7 fix: implement the same LDRSH logic as THUMB LDRSH 2022-02-05 23:09:02 -04:00
c52dc5adb1 fix: PC is 12 ahead when it is rd in str and strb 2022-02-05 21:42:04 -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
2842345111 chore: remove unnecessary @as calls 2022-02-05 21:01:39 -04:00
aa6f3c7a92 feat: pass thumb.gba 2022-02-05 20:39:15 -04:00
3ae24d6977 chore: account for empty rlist in THUMB LDM/STM 2022-02-05 18:03:39 -04:00
0a22730479 fix(cpu): handle edge case in LDRSH 2022-02-05 17:12:25 -04:00
5ec8d4b0a5 fix: resolve decoding mixup in THUMB format 8 instructions 2022-02-05 14:50:34 -04:00
b233981a34 feat: rename ARM and THUMB SWI functions 2022-02-04 04:34:47 -04:00
1b8db0c427 chore: group THUMB and select ARM instructions together (same file) 2022-02-04 04:18:20 -04:00
91384a7c68 fix(cpu): resolve edge cases in THUMB Format 5 2022-02-03 00:55:57 -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
800ed6f1a7 feat(cpu): implement format 13
While bugs do exist, at this point all THUMB and ARMv4 instructions
have been implemented! Yay!
2022-02-02 22:31:21 -04:00
027e4fb57b feat(cpu): implement THUMB format 17 2022-02-02 22:31:08 -04:00
1378c809e6 feat(cpu): implement THUMB format11 2022-02-02 22:30:46 -04:00
99492a6782 chore: progress towards passing ldr/str thumb in armwrestler 2022-02-02 21:14:46 -04:00
8b574efe85 fix(cpu): properly negate in NEG 2022-02-02 20:12:20 -04:00
9fd03d2a92 fix(cpu): reimplement THUMB offset shifts 2022-02-02 20:12:07 -04:00
9affe01da8 fix(cpu): op == 0b00 decodes to add in format 5 2022-02-02 18:58:06 -04:00