File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11__OR32: ; Performs logical operation A AND B
2- ; between DEHL and TOP of the stack.
3- ; Returns A = 0 (False) or A = FF (True)
2+ ; between DEHL and TOP of the stack.
3+ ; Returns A = 0 (False) or A = FF (True)
44
5- ld a, h
6- or l
7- or d
8- or e
5+ ld a, h
6+ or l
7+ or d
8+ or e
99
10- pop hl ; Return address
10+ pop hl ; Return address
11+ pop de
12+ ex ( sp ) , hl
1113
12- pop de
13- or d
14- or e
15-
16- pop de
17- or d
18- or e ; A = 0 only if DEHL and TOP of the stack = 0
19-
20- jp (hl) ; Faster "Ret"
14+ or d
15+ or e
16+ or h
17+ or l
2118
19+ #ifdef NORMALIZE_BOOLEAN
20+ ; Ensure it returns 0 or 1
21+ ret z
22+ ld a , 1
23+ #endif
24+ ret
2225
Original file line number Diff line number Diff line change @@ -68,20 +68,21 @@ __CALL_BACK__:
6868 DEFW 0
6969#line 1 "or32.asm"
7070__OR32: ; Performs logical operation A AND B
71- ; between DEHL and TOP of the stack.
72- ; Returns A = 0 (False) or A = FF (True)
73- ld a , h
74- or l
75- or d
76- or e
77- pop hl ; Return address
78- pop de
79- or d
80- or e
81- pop de
82- or d
83- or e ; A = 0 only if DEHL and TOP of the stack = 0
84- jp (hl) ; Faster "Ret"
71+ ; between DEHL and TOP of the stack.
72+ ; Returns A = 0 (False) or A = FF (True)
73+ ld a , h
74+ or l
75+ or d
76+ or e
77+ pop hl ; Return address
78+ pop de
79+ ex ( sp ) , hl
80+ or d
81+ or e
82+ or h
83+ or l
84+ #line 24 "/zxbasic/library-asm/or32.asm"
85+ ret
8586#line 58 "or32.bas"
8687ZXBASIC_USER_DATA:
8788_a:
You can’t perform that action at this time.
0 commit comments