Skip to content

Commit d38eea2

Browse files
committed
Add ORG address even in headless mode
1 parent 3c1632a commit d38eea2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

arch/zx48k/backend/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,11 +2164,11 @@ def __str__(self):
21642164
# -------------------------
21652165
def emit_start():
21662166
output = list()
2167+
output.append('org %s' % OPTIONS.org.value)
2168+
21672169
if OPTIONS.headerless.value:
21682170
return output
21692171

2170-
output.append('org %s' % OPTIONS.org.value)
2171-
21722172
if REQUIRES.intersection(MEMINITS) or '__MEM_INIT' in INITS:
21732173
output.append('; Defines HEAP SIZE\n' + OPTIONS.heap_size_label.value + ' EQU ' + str(OPTIONS.heap_size.value))
21742174

tests/functional/headerless.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
org 32768
12
ld hl, _a
23
inc (hl)
34
ld hl, 0

0 commit comments

Comments
 (0)