Skip to content

Commit 6e9a9b8

Browse files
committed
Add tests
1 parent 34e935e commit 6e9a9b8

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

tests/functional/init_with_dot.asm

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
org 32768
2+
__START_PROGRAM:
3+
di
4+
push ix
5+
push iy
6+
exx
7+
push hl
8+
exx
9+
ld hl, 0
10+
add hl, sp
11+
ld (__CALL_BACK__), hl
12+
ei
13+
call A_LABEL.DOT
14+
jp __MAIN_PROGRAM__
15+
__CALL_BACK__:
16+
DEFW 0
17+
ZXBASIC_USER_DATA:
18+
; Defines USER DATA Length in bytes
19+
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
20+
.__LABEL__.ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_LEN
21+
.__LABEL__.ZXBASIC_USER_DATA EQU ZXBASIC_USER_DATA
22+
ZXBASIC_USER_DATA_END:
23+
__MAIN_PROGRAM__:
24+
#line 3 "init_with_dot.bas"
25+
A_LABEL.DOT:
26+
#line 9 "init_with_dot.bas"
27+
ld hl, 0
28+
ld b, h
29+
ld c, l
30+
__END_PROGRAM:
31+
di
32+
ld hl, (__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

tests/functional/init_with_dot.bas

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
ASM
3+
4+
#init A_LABEL.DOT
5+
6+
A_LABEL.DOT:
7+
8+
END ASM
9+

0 commit comments

Comments
 (0)