File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2176,13 +2176,13 @@ def emit_start():
2176
2176
output = list ()
2177
2177
output .append ('org %s' % OPTIONS .org .value )
2178
2178
2179
- if OPTIONS .headerless .value :
2180
- return output
2181
-
2182
2179
if REQUIRES .intersection (MEMINITS ) or '__MEM_INIT' in INITS :
2183
2180
output .append ('; Defines HEAP SIZE\n ' + OPTIONS .heap_size_label .value + ' EQU ' + str (OPTIONS .heap_size .value ))
2184
2181
2185
2182
output .append ('%s:' % START_LABEL )
2183
+ if OPTIONS .headerless .value :
2184
+ return output
2185
+
2186
2186
output .append ('di' )
2187
2187
output .append ('push ix' )
2188
2188
output .append ('push iy' )
Original file line number Diff line number Diff line change 1
1
org 32768
2
+ __START_PROGRAM:
2
3
ld hl , _a
3
4
inc (hl)
4
5
ld hl , 0
5
6
ld b , h
6
7
ld c , l
7
8
__END_PROGRAM:
8
9
ret
9
-
10
10
ZXBASIC_USER_DATA:
11
11
_a:
12
12
DEFB 02h
13
13
; Defines DATA END --> HEAP size is 0
14
14
ZXBASIC_USER_DATA_END EQU ZXBASIC_MEM_HEAP
15
15
; Defines USER DATA Length in bytes
16
16
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17
- END
17
+ END __START_PROGRAM
Original file line number Diff line number Diff line change 1
1
REM a headerless (no prologuqe in ASM) program
2
2
#pragma headerless= true
3
+ #pragma autorun= true
3
4
4
5
DIM a as UByte = 2
5
6
LET a = a + 1
You can’t perform that action at this time.
0 commit comments