Skip to content

Commit 180688b

Browse files
committed
added __frameset_b
1 parent 0394937 commit 180688b

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

src/crt/frameset_b.src

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.assume adl=1
2+
3+
.section .text
4+
.global __frameset_b
5+
.type __frameset_b, @function
6+
7+
; TODO: merge into __frameset.src once compiler starts emitting __frameset_b
8+
__frameset_b:
9+
; framesets -A bytes (1 to 256 bytes)
10+
; framesets 256 bytes if A is zero
11+
scf
12+
sbc hl, hl
13+
ld l, a
14+
; __frameset:
15+
pop de
16+
push ix
17+
ld ix, 0
18+
add ix, sp
19+
add hl, sp
20+
ld sp, hl
21+
ex de, hl
22+
jp (hl)

0 commit comments

Comments
 (0)