Skip to content

Commit 4d5267d

Browse files
committed
Fix indirect load string
Also fix a typo.
1 parent 91c8cf7 commit 4d5267d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/zx48k/backend/__str.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _str_oper(op1, op2=None, reversed=False, no_exaf=False):
6565

6666
if val[0] == '_': # Direct
6767
output.append('ld hl, (%s)' % val)
68-
elif val[0] == '#': # Inmmediate
68+
elif val[0] == '#': # Immediate
6969
output.append('ld hl, %s' % val[1:])
7070
elif val[0] == '$': # Direct in the stack
7171
output.append('pop hl')
@@ -74,7 +74,6 @@ def _str_oper(op1, op2=None, reversed=False, no_exaf=False):
7474
tmp1 = True
7575

7676
if indirect:
77-
output.append('ld hl, %s' % val[1:])
7877
output.append('ld c, (hl)')
7978
output.append('inc hl')
8079
output.append('ld h, (hl)')

0 commit comments

Comments
 (0)