Skip to content

Commit c5b6301

Browse files
committed
Update tests
1 parent 7b87be8 commit c5b6301

746 files changed

Lines changed: 139913 additions & 132836 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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,26 +8,26 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFB 00, 00, 00, 00, 00
23-
ZXBASIC_USER_DATA_END:
24-
__MAIN_PROGRAM__:
23+
core.ZXBASIC_USER_DATA_END:
24+
core.__MAIN_PROGRAM__:
2525
ld hl, 0
2626
ld b, h
2727
ld c, l
28-
__END_PROGRAM:
28+
core.__END_PROGRAM:
2929
di
30-
ld hl, (__CALL_BACK__)
30+
ld hl, (core.__CALL_BACK__)
3131
ld sp, hl
3232
exx
3333
pop hl

tests/functional/02.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,26 +8,26 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFB 00, 00
23-
ZXBASIC_USER_DATA_END:
24-
__MAIN_PROGRAM__:
23+
core.ZXBASIC_USER_DATA_END:
24+
core.__MAIN_PROGRAM__:
2525
ld hl, 0
2626
ld b, h
2727
ld c, l
28-
__END_PROGRAM:
28+
core.__END_PROGRAM:
2929
di
30-
ld hl, (__CALL_BACK__)
30+
ld hl, (core.__CALL_BACK__)
3131
ld sp, hl
3232
exx
3333
pop hl

tests/functional/03.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,26 +8,26 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFB 00
23-
ZXBASIC_USER_DATA_END:
24-
__MAIN_PROGRAM__:
23+
core.ZXBASIC_USER_DATA_END:
24+
core.__MAIN_PROGRAM__:
2525
ld hl, 0
2626
ld b, h
2727
ld c, l
28-
__END_PROGRAM:
28+
core.__END_PROGRAM:
2929
di
30-
ld hl, (__CALL_BACK__)
30+
ld hl, (core.__CALL_BACK__)
3131
ld sp, hl
3232
exx
3333
pop hl

tests/functional/04.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,26 +8,26 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFB 00, 00
23-
ZXBASIC_USER_DATA_END:
24-
__MAIN_PROGRAM__:
23+
core.ZXBASIC_USER_DATA_END:
24+
core.__MAIN_PROGRAM__:
2525
ld hl, 0
2626
ld b, h
2727
ld c, l
28-
__END_PROGRAM:
28+
core.__END_PROGRAM:
2929
di
30-
ld hl, (__CALL_BACK__)
30+
ld hl, (core.__CALL_BACK__)
3131
ld sp, hl
3232
exx
3333
pop hl

tests/functional/05.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,16 +8,16 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFW __LABEL0
2323
_a.__DATA__.__PTR__:
@@ -37,14 +37,14 @@ _a.__DATA__:
3737
__LABEL0:
3838
DEFW 0000h
3939
DEFB 01h
40-
ZXBASIC_USER_DATA_END:
41-
__MAIN_PROGRAM__:
40+
core.ZXBASIC_USER_DATA_END:
41+
core.__MAIN_PROGRAM__:
4242
ld hl, 0
4343
ld b, h
4444
ld c, l
45-
__END_PROGRAM:
45+
core.__END_PROGRAM:
4646
di
47-
ld hl, (__CALL_BACK__)
47+
ld hl, (core.__CALL_BACK__)
4848
ld sp, hl
4949
exx
5050
pop hl

tests/functional/053opt.asm

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,22 +8,22 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_subeEgg:
2222
DEFB 00
2323
_sail:
2424
DEFB 00
25-
ZXBASIC_USER_DATA_END:
26-
__MAIN_PROGRAM__:
25+
core.ZXBASIC_USER_DATA_END:
26+
core.__MAIN_PROGRAM__:
2727
ld a, (_sail)
2828
dec a
2929
jp nz, __LABEL1
@@ -37,21 +37,21 @@ __MAIN_PROGRAM__:
3737
ld a, (40044)
3838
ld hl, (40012 - 1)
3939
sub h
40-
call __ABS8
40+
call core.__ABS8
4141
push af
4242
ld h, 16
4343
pop af
44-
call __LTI8
44+
call core.__LTI8
4545
or a
4646
jp z, __LABEL7
4747
ld a, (40011)
4848
ld hl, (40043 - 1)
4949
sub h
50-
call __ABS8
50+
call core.__ABS8
5151
push af
5252
ld h, 20
5353
pop af
54-
call __LTI8
54+
call core.__LTI8
5555
or a
5656
jp nz, __LABEL__enddispara
5757
__LABEL9:
@@ -60,9 +60,9 @@ __LABEL5:
6060
__LABEL3:
6161
__LABEL1:
6262
jp __LABEL__enddispara
63-
__END_PROGRAM:
63+
core.__END_PROGRAM:
6464
di
65-
ld hl, (__CALL_BACK__)
65+
ld hl, (core.__CALL_BACK__)
6666
ld sp, hl
6767
exx
6868
pop hl
@@ -75,21 +75,24 @@ __LABEL__enddispara:
7575
ld hl, 0
7676
ld b, h
7777
ld c, l
78-
jp __END_PROGRAM
78+
jp core.__END_PROGRAM
7979
;; --- end of user code ---
8080
#line 1 "/zxbasic/src/arch/zx48k/library-asm/abs8.asm"
8181
; Returns absolute value for 8 bit signed integer
8282
;
83+
push namespace core
8384
__ABS8:
84-
or a
85-
ret p
86-
neg
87-
ret
85+
or a
86+
ret p
87+
neg
88+
ret
89+
pop namespace
8890
#line 55 "053opt.bas"
8991
#line 1 "/zxbasic/src/arch/zx48k/library-asm/lti8.asm"
9092
#line 1 "/zxbasic/src/arch/zx48k/library-asm/lei8.asm"
93+
push namespace core
9194
__LEI8: ; Signed <= comparison for 8bit int
92-
; A <= H (registers)
95+
; A <= H (registers)
9396
PROC
9497
LOCAL checkParity
9598
sub h
@@ -107,6 +110,7 @@ checkParity:
107110
inc a ; True
108111
ret
109112
ENDP
113+
pop namespace
110114
#line 2 "/zxbasic/src/arch/zx48k/library-asm/lti8.asm"
111115
#line 56 "053opt.bas"
112116
END

tests/functional/06.asm

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org 32768
2-
__START_PROGRAM:
2+
core.__START_PROGRAM:
33
di
44
push ix
55
push iy
@@ -8,16 +8,16 @@ __START_PROGRAM:
88
exx
99
ld hl, 0
1010
add hl, sp
11-
ld (__CALL_BACK__), hl
11+
ld (core.__CALL_BACK__), hl
1212
ei
13-
jp __MAIN_PROGRAM__
14-
__CALL_BACK__:
13+
jp core.__MAIN_PROGRAM__
14+
core.__CALL_BACK__:
1515
DEFW 0
16-
ZXBASIC_USER_DATA:
16+
core.ZXBASIC_USER_DATA:
1717
; Defines USER DATA Length in bytes
18-
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
19-
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
20-
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
18+
core.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_END - core.ZXBASIC_USER_DATA
19+
core..__LABEL__.ZXBASIC_USER_DATA_LEN EQU core.ZXBASIC_USER_DATA_LEN
20+
core..__LABEL__.ZXBASIC_USER_DATA EQU core.ZXBASIC_USER_DATA
2121
_a:
2222
DEFW __LABEL0
2323
_a.__DATA__.__PTR__:
@@ -32,14 +32,14 @@ _a.__DATA__:
3232
__LABEL0:
3333
DEFW 0000h
3434
DEFB 02h
35-
ZXBASIC_USER_DATA_END:
36-
__MAIN_PROGRAM__:
35+
core.ZXBASIC_USER_DATA_END:
36+
core.__MAIN_PROGRAM__:
3737
ld hl, 0
3838
ld b, h
3939
ld c, l
40-
__END_PROGRAM:
40+
core.__END_PROGRAM:
4141
di
42-
ld hl, (__CALL_BACK__)
42+
ld hl, (core.__CALL_BACK__)
4343
ld sp, hl
4444
exx
4545
pop hl

0 commit comments

Comments
 (0)