diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-10-06 17:33:15 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-10-06 17:33:15 -0700 |
commit | 441349cc260c0d95807b4d7469c2be5b3b62fbbb (patch) | |
tree | f4ea6c488b85eb01f205e8d0e9a815fb1a9fd7f1 /svp_util.c | |
parent | 1dab348088655d41be46a1fa33f0e28c0695f86e (diff) |
Implement program ROM reads
Diffstat (limited to 'svp_util.c')
-rw-r--r-- | svp_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,6 @@ -void svp_read_16(svp_context *context) +void svp_prog_read_16(svp_context *context) { - context->internal[0] = 0; + uint16_t address = context->scratch1 >> 1; + context->scratch1 = context->rom[address]; } |