forth: remove unused (fbr) and (bbr)

This commit is contained in:
Virgil Dupras 2020-03-28 13:12:07 -04:00
parent c1693c6256
commit a17da42021
2 changed files with 1 additions and 49 deletions

Binary file not shown.

View File

@ -690,12 +690,6 @@ CSKIP:
ld de, BR ld de, BR
call .HLPointsDE call .HLPointsDE
jr z, .isNum jr z, .isNum
ld de, FBR
call .HLPointsDE
jr z, .isBranch
ld de, BBR
call .HLPointsDE
jr z, .isBranch
ld de, LIT ld de, LIT
call .HLPointsDE call .HLPointsDE
jr nz, .isWord jr nz, .isWord
@ -707,9 +701,6 @@ CSKIP:
.isNum: .isNum:
; skip by 4 ; skip by 4
inc hl inc hl
; continue to isBranch
.isBranch:
; skip by 3
inc hl inc hl
; continue to isWord ; continue to isWord
.isWord: .isWord:
@ -730,7 +721,7 @@ CSKIP:
cp d ; Z has our answer cp d ; Z has our answer
ret ret
.fill 29 .fill 45
.db "," .db ","
.dw $-CSKIP .dw $-CSKIP
@ -1069,45 +1060,6 @@ CMP:
push bc push bc
jp next jp next
.fill 80
; This word's atom is followed by 1b *relative* offset (to the cell's addr) to
; where to branch to. For example, The branching cell of "IF THEN" would
; contain 3. Add this value to RS.
.db "(fbr)"
.dw $-CMP
.db 5
; STABLE ABI
; Offset: 073e
.out $
FBR:
.dw nativeWord
push de
ld hl, (IP)
ld a, (hl)
call addHL
ld (IP), hl
pop de
jp next
.db "(bbr)"
.dw $-FBR
.db 5
; STABLE ABI
; Offset: 0757
.out $
BBR:
.dw nativeWord
ld hl, (IP)
ld d, 0
ld e, (hl)
or a ; clear carry
sbc hl, de
ld (IP), hl
jp next
; To allow dict binaries to "hook themselves up", we always end such binary
; with a dummy, *empty* entry. Therefore, we can have a predictable place for
; getting a prev label.
.db "_bend" .db "_bend"
.dw $-CMP .dw $-CMP
.db 5 .db 5