summaryrefslogtreecommitdiff
path: root/svp.cpu
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-10-06 17:33:15 -0700
committerMichael Pavone <pavone@retrodev.com>2018-10-06 17:33:15 -0700
commit441349cc260c0d95807b4d7469c2be5b3b62fbbb (patch)
treef4ea6c488b85eb01f205e8d0e9a815fb1a9fd7f1 /svp.cpu
parent1dab348088655d41be46a1fa33f0e28c0695f86e (diff)
Implement program ROM reads
Diffstat (limited to 'svp.cpu')
-rw-r--r--svp.cpu6
1 files changed, 4 insertions, 2 deletions
diff --git a/svp.cpu b/svp.cpu
index cb12210..43549d7 100644
--- a/svp.cpu
+++ b/svp.cpu
@@ -6,8 +6,10 @@ info
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 @@ svp_prog_ram_read
if >=U
add src src scratch1
- ocall read_16
+ ocall prog_read_16
else
mov iram.src scratch1