From 441349cc260c0d95807b4d7469c2be5b3b62fbbb Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 6 Oct 2018 17:33:15 -0700 Subject: Implement program ROM reads --- svp.cpu | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'svp.cpu') 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 -- cgit v1.2.3