summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-01-31 23:55:09 -0800
committerMichael Pavone <pavone@retrodev.com>2019-01-31 23:55:09 -0800
commitd24e425408250bf902de891b057da3494e3a4334 (patch)
tree0fba6fa15271bc0ad6d56a230761b023cc4b820e
parent1ec57b70e55d649f7bc0644dc6446bfb9829ce9d (diff)
Fixed a few ld instructions in the new Z80 core
-rw-r--r--z80.cpu8
1 files changed, 4 insertions, 4 deletions
diff --git a/z80.cpu b/z80.cpu
index 6d09ede..ebc0501 100644
--- a/z80.cpu
+++ b/z80.cpu
@@ -227,14 +227,14 @@ fd 01110RRR ld_to_iy
00001010 ld_a_from_bc
lsl b 8 scratch1
- or c scratch2 scratch1
+ or c scratch1 scratch1
ocall read_8
mov scratch1 a
00011010 ld_a_from_de
lsl d 8 scratch1
- or e scratch2 scratch1
- ocall write_8
+ or e scratch1 scratch1
+ ocall read_8
mov scratch1 a
00111010 ld_a_from_immed
@@ -318,7 +318,7 @@ ed 01001011 ld_bc_from_immed
ed 01011011 ld_de_from_immed
meta low e
- meta high c
+ meta high d
z80_fetch16_from_immed
ed 01101011 ld_hl_from_immed_slow