Mercurial > repos > blastem
diff svp.cpu @ 1621:ca158bc091f9
Implement program ROM reads
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 06 Oct 2018 17:33:15 -0700 |
parents | a172f97d873f |
children | 4bb2c8b78b4a |
line wrap: on
line diff
--- a/svp.cpu Thu Oct 04 19:12:56 2018 -0700 +++ b/svp.cpu Sat Oct 06 17:33:15 2018 -0700 @@ -6,8 +6,10 @@ include svp_util.c regs - internal 16 scratch1 x y scratch2 st pad pc + internal 16 scratch2 x y pad0 st pad1 pc a 32 + scratch1 32 + rom ptr16 stack 16 stack0 stack1 stack2 stack3 stack4 stack5 stackidx 8 p 32 @@ -622,7 +624,7 @@ if >=U add src src scratch1 - ocall read_16 + ocall prog_read_16 else mov iram.src scratch1