Skip to content

Commit 47dd17f

Browse files
committed
Merged in bugfix/asm_org_label (pull request #186)
Fix error on multiple ORG Approved-by: Jose Rodriguez <boriel@gmail.com>
2 parents 6073443 + bc9de56 commit 47dd17f

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

asmparse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ def declare_label(self, label, lineno, value=None, local=False, namespace=None):
525525
self.local_labels[-1][ex_label] = Label(ex_label, lineno, value, local, namespace, is_address)
526526

527527
self.set_memory_slot()
528-
self.memory_bytes[self.org] += ('%s:' % ex_label,)
529528

530529
return self.local_labels[-1][ex_label]
531530

tests/functional/orgasm.asm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
org 32768
2+
__START_PROGRAM:
3+
di
4+
exx
5+
ld hl, 0
6+
7+
;org 32768
8+
halt
9+
halt
10+
11+
__END_PROGRAM:
12+
__END_PERA:
13+
nop
14+
__ENDPINA:
15+
END

tests/functional/orgasm.bin

8 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)