Skip to content

Commit e67dc89

Browse files
committed
Add tests
1 parent 25f74fd commit e67dc89

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

tests/functional/asm_tokens.asm

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
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+
ZXBASIC_USER_DATA_END:
20+
__MAIN_PROGRAM__:
21+
#line 0
22+
ld a, {{macro_value}}
23+
#line 1
24+
ld hl, 0
25+
ld b, h
26+
ld c, l
27+
__END_PROGRAM:
28+
di
29+
ld hl, (__CALL_BACK__)
30+
ld sp, hl
31+
exx
32+
pop hl
33+
exx
34+
pop iy
35+
pop ix
36+
ei
37+
ret
38+
__CALL_BACK__:
39+
DEFW 0
40+
END

tests/functional/asm_tokens.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
asm
2+
ld a, {{macro_value}}
3+
end asm
4+

0 commit comments

Comments
 (0)