Skip to content

Commit 4643ad3

Browse files
committed
Update tests
This update is huge since almost all tests used the old memory scheme.
1 parent 5c792fe commit 4643ad3

677 files changed

Lines changed: 15482 additions & 17562 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/functional/00.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_a:
20+
DEFB 00, 00, 00, 00, 00
21+
ZXBASIC_USER_DATA_END:
22+
__MAIN_PROGRAM__:
1323
ld hl, 0
1424
ld b, h
1525
ld c, l
@@ -26,11 +36,4 @@ __END_PROGRAM:
2636
ret
2737
__CALL_BACK__:
2838
DEFW 0
29-
ZXBASIC_USER_DATA:
30-
_a:
31-
DEFB 00, 00, 00, 00, 00
32-
; Defines DATA END --> HEAP size is 0
33-
ZXBASIC_USER_DATA_END:
34-
; Defines USER DATA Length in bytes
35-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
3639
END

tests/functional/02.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_a:
20+
DEFB 00, 00
21+
ZXBASIC_USER_DATA_END:
22+
__MAIN_PROGRAM__:
1323
ld hl, 0
1424
ld b, h
1525
ld c, l
@@ -26,11 +36,4 @@ __END_PROGRAM:
2636
ret
2737
__CALL_BACK__:
2838
DEFW 0
29-
ZXBASIC_USER_DATA:
30-
_a:
31-
DEFB 00, 00
32-
; Defines DATA END --> HEAP size is 0
33-
ZXBASIC_USER_DATA_END:
34-
; Defines USER DATA Length in bytes
35-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
3639
END

tests/functional/03.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_a:
20+
DEFB 00
21+
ZXBASIC_USER_DATA_END:
22+
__MAIN_PROGRAM__:
1323
ld hl, 0
1424
ld b, h
1525
ld c, l
@@ -26,11 +36,4 @@ __END_PROGRAM:
2636
ret
2737
__CALL_BACK__:
2838
DEFW 0
29-
ZXBASIC_USER_DATA:
30-
_a:
31-
DEFB 00
32-
; Defines DATA END --> HEAP size is 0
33-
ZXBASIC_USER_DATA_END:
34-
; Defines USER DATA Length in bytes
35-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
3639
END

tests/functional/04.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_a:
20+
DEFB 00, 00
21+
ZXBASIC_USER_DATA_END:
22+
__MAIN_PROGRAM__:
1323
ld hl, 0
1424
ld b, h
1525
ld c, l
@@ -26,11 +36,4 @@ __END_PROGRAM:
2636
ret
2737
__CALL_BACK__:
2838
DEFW 0
29-
ZXBASIC_USER_DATA:
30-
_a:
31-
DEFB 00, 00
32-
; Defines DATA END --> HEAP size is 0
33-
ZXBASIC_USER_DATA_END:
34-
; Defines USER DATA Length in bytes
35-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
3639
END

tests/functional/05.asm

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13-
ld hl, 0
14-
ld b, h
15-
ld c, l
16-
__END_PROGRAM:
17-
di
18-
ld hl, (__CALL_BACK__)
19-
ld sp, hl
20-
exx
21-
pop hl
22-
exx
23-
pop iy
24-
pop ix
25-
ei
26-
ret
27-
__CALL_BACK__:
28-
DEFW 0
13+
jp __MAIN_PROGRAM__
2914
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
3019
_a:
3120
DEFW __LABEL0
3221
_a.__DATA__.__PTR__:
@@ -46,8 +35,22 @@ _a.__DATA__:
4635
__LABEL0:
4736
DEFW 0000h
4837
DEFB 01h
49-
; Defines DATA END --> HEAP size is 0
5038
ZXBASIC_USER_DATA_END:
51-
; Defines USER DATA Length in bytes
52-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
39+
__MAIN_PROGRAM__:
40+
ld hl, 0
41+
ld b, h
42+
ld c, l
43+
__END_PROGRAM:
44+
di
45+
ld hl, (__CALL_BACK__)
46+
ld sp, hl
47+
exx
48+
pop hl
49+
exx
50+
pop iy
51+
pop ix
52+
ei
53+
ret
54+
__CALL_BACK__:
55+
DEFW 0
5356
END

tests/functional/053opt.asm

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_subeEgg:
20+
DEFB 00
21+
_sail:
22+
DEFB 00
23+
ZXBASIC_USER_DATA_END:
24+
__MAIN_PROGRAM__:
1325
ld a, (_sail)
1426
dec a
1527
jp nz, __LABEL1
@@ -96,13 +108,4 @@ checkParity:
96108
ENDP
97109
#line 2 "lti8.asm"
98110
#line 57 "053opt.bas"
99-
ZXBASIC_USER_DATA:
100-
_subeEgg:
101-
DEFB 00
102-
_sail:
103-
DEFB 00
104-
; Defines DATA END --> HEAP size is 0
105-
ZXBASIC_USER_DATA_END:
106-
; Defines USER DATA Length in bytes
107-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
108111
END

tests/functional/06.asm

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13-
ld hl, 0
14-
ld b, h
15-
ld c, l
16-
__END_PROGRAM:
17-
di
18-
ld hl, (__CALL_BACK__)
19-
ld sp, hl
20-
exx
21-
pop hl
22-
exx
23-
pop iy
24-
pop ix
25-
ei
26-
ret
27-
__CALL_BACK__:
28-
DEFW 0
13+
jp __MAIN_PROGRAM__
2914
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
3019
_a:
3120
DEFW __LABEL0
3221
_a.__DATA__.__PTR__:
@@ -41,8 +30,22 @@ _a.__DATA__:
4130
__LABEL0:
4231
DEFW 0000h
4332
DEFB 02h
44-
; Defines DATA END --> HEAP size is 0
4533
ZXBASIC_USER_DATA_END:
46-
; Defines USER DATA Length in bytes
47-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
34+
__MAIN_PROGRAM__:
35+
ld hl, 0
36+
ld b, h
37+
ld c, l
38+
__END_PROGRAM:
39+
di
40+
ld hl, (__CALL_BACK__)
41+
ld sp, hl
42+
exx
43+
pop hl
44+
exx
45+
pop iy
46+
pop ix
47+
ei
48+
ret
49+
__CALL_BACK__:
50+
DEFW 0
4851
END

tests/functional/07.asm

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13-
ld hl, 0
14-
ld b, h
15-
ld c, l
16-
__END_PROGRAM:
17-
di
18-
ld hl, (__CALL_BACK__)
19-
ld sp, hl
20-
exx
21-
pop hl
22-
exx
23-
pop iy
24-
pop ix
25-
ei
26-
ret
27-
__CALL_BACK__:
28-
DEFW 0
13+
jp __MAIN_PROGRAM__
2914
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
3019
_a:
3120
DEFW __LABEL0
3221
_a.__DATA__.__PTR__:
@@ -60,8 +49,22 @@ __LABEL0:
6049
DEFW 0001h
6150
DEFW 0004h
6251
DEFB 02h
63-
; Defines DATA END --> HEAP size is 0
6452
ZXBASIC_USER_DATA_END:
65-
; Defines USER DATA Length in bytes
66-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
53+
__MAIN_PROGRAM__:
54+
ld hl, 0
55+
ld b, h
56+
ld c, l
57+
__END_PROGRAM:
58+
di
59+
ld hl, (__CALL_BACK__)
60+
ld sp, hl
61+
exx
62+
pop hl
63+
exx
64+
pop iy
65+
pop ix
66+
ei
67+
ret
68+
__CALL_BACK__:
69+
DEFW 0
6770
END

tests/functional/08.asm

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13+
jp __MAIN_PROGRAM__
14+
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
19+
_x:
20+
DEFB 05h
21+
ZXBASIC_USER_DATA_END:
22+
__MAIN_PROGRAM__:
1323
ld hl, 0
1424
ld b, h
1525
ld c, l
@@ -26,11 +36,4 @@ __END_PROGRAM:
2636
ret
2737
__CALL_BACK__:
2838
DEFW 0
29-
ZXBASIC_USER_DATA:
30-
_x:
31-
DEFB 05h
32-
; Defines DATA END --> HEAP size is 0
33-
ZXBASIC_USER_DATA_END:
34-
; Defines USER DATA Length in bytes
35-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
3639
END

tests/functional/09.asm

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@ __START_PROGRAM:
1010
add hl, sp
1111
ld (__CALL_BACK__), hl
1212
ei
13-
ld hl, 0
14-
ld b, h
15-
ld c, l
16-
__END_PROGRAM:
17-
di
18-
ld hl, (__CALL_BACK__)
19-
ld sp, hl
20-
exx
21-
pop hl
22-
exx
23-
pop iy
24-
pop ix
25-
ei
26-
ret
27-
__CALL_BACK__:
28-
DEFW 0
13+
jp __MAIN_PROGRAM__
2914
ZXBASIC_USER_DATA:
15+
; Defines USER DATA Length in bytes
16+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
17+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
18+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
3019
_a:
3120
DEFW __LABEL0
3221
_a.__DATA__.__PTR__:
@@ -45,8 +34,22 @@ _a.__DATA__:
4534
__LABEL0:
4635
DEFW 0000h
4736
DEFB 05h
48-
; Defines DATA END --> HEAP size is 0
4937
ZXBASIC_USER_DATA_END:
50-
; Defines USER DATA Length in bytes
51-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
38+
__MAIN_PROGRAM__:
39+
ld hl, 0
40+
ld b, h
41+
ld c, l
42+
__END_PROGRAM:
43+
di
44+
ld hl, (__CALL_BACK__)
45+
ld sp, hl
46+
exx
47+
pop hl
48+
exx
49+
pop iy
50+
pop ix
51+
ei
52+
ret
53+
__CALL_BACK__:
54+
DEFW 0
5255
END

0 commit comments

Comments
 (0)