Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions tests/functional/dimconst7.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
org 32768
__START_PROGRAM:
di
push ix
push iy
exx
push hl
exx
ld hl, 0
add hl, sp
ld (__CALL_BACK__), hl
ei
ld hl, 0
ld b, h
ld c, l
__END_PROGRAM:
di
ld hl, (__CALL_BACK__)
ld sp, hl
exx
pop hl
exx
pop iy
pop ix
ei
ret
__CALL_BACK__:
DEFW 0
ZXBASIC_USER_DATA:
_a:
DEFW (_c.__DATA__ + 11)
_c:
DEFW __LABEL0
_c.__DATA__.__PTR__:
DEFW _c.__DATA__
_c.__DATA__:
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
DEFB 00h
__LABEL0:
DEFW 0001h
DEFW 0004h
DEFB 01h
; Defines DATA END --> HEAP size is 0
ZXBASIC_USER_DATA_END:
; Defines USER DATA Length in bytes
ZXBASIC_USER_DATA_LEN EQU ZXBASIC_USER_DATA_END - ZXBASIC_USER_DATA
END
4 changes: 4 additions & 0 deletions tests/functional/dimconst7.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

DIM c(3, 3) as UBYTE
DIM a as Uinteger = @c(2, 3)

1 change: 1 addition & 0 deletions zxb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@

from outfmt import CodeEmitter # noqa
from .zxb import main # noqa
import api # noqa