File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
tests/functional/arch/zx48k Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,9 @@ def to_long(stype: DataType) -> list[str]:
392
392
output .append ("ld e, a" )
393
393
output .append ("ld d, a" )
394
394
395
+ elif stype in (U32_t , I32_t ):
396
+ return []
397
+
395
398
elif stype == U16_t :
396
399
output .append ("ld de, 0" )
397
400
Original file line number Diff line number Diff line change
1
+ org 32768
2
+ .core.__START_PROGRAM:
3
+ di
4
+ push ix
5
+ push iy
6
+ exx
7
+ push hl
8
+ exx
9
+ ld (.core.__CALL_BACK__) , sp
10
+ ei
11
+ jp .core.__MAIN_PROGRAM__
12
+ .core.__CALL_BACK__:
13
+ DEFW 0
14
+ .core.ZXBASIC_USER_DATA:
15
+ ; Defines USER DATA Length in bytes
16
+ .core.ZXBASIC_USER_DATA_LEN EQU .core.ZXBASIC_USER_DATA_END - .core.ZXBASIC_USER_DATA
17
+ .core.__LABEL__.ZXBASIC_USER_DATA_LEN EQU .core.ZXBASIC_USER_DATA_LEN
18
+ .core.__LABEL__.ZXBASIC_USER_DATA EQU .core.ZXBASIC_USER_DATA
19
+ _a:
20
+ DEFB 00 , 00 , 00 , 00
21
+ .core.ZXBASIC_USER_DATA_END:
22
+ .core.__MAIN_PROGRAM__:
23
+ ld hl , (_a)
24
+ ld de , (_a + 2 )
25
+ ld (_a) , hl
26
+ ld (_a + 2 ) , de
27
+ ld hl , 0
28
+ ld b , h
29
+ ld c , l
30
+ .core.__END_PROGRAM:
31
+ di
32
+ ld hl , (.core.__CALL_BACK__)
33
+ ld sp , hl
34
+ exx
35
+ pop hl
36
+ exx
37
+ pop iy
38
+ pop ix
39
+ ei
40
+ ret
41
+ ;; --- end of user code ---
42
+ END
Original file line number Diff line number Diff line change
1
+ DIM a as ULong
2
+
3
+ LET a = INT (a )
4
+
You can’t perform that action at this time.
0 commit comments