mirror of
https://github.com/mgcaret/of816.git
synced 2024-05-28 14:41:27 +00:00
optimize MAX/MIN a bit
This commit is contained in:
parent
2bb88f11a3
commit
5e1ba3dab1
|
@ -2150,7 +2150,7 @@ eword
|
||||||
dword MAX,"MAX"
|
dword MAX,"MAX"
|
||||||
jsr _scmpcom
|
jsr _scmpcom
|
||||||
bcs drop
|
bcs drop
|
||||||
jsr _swap
|
swap: jsr _swap
|
||||||
drop: inx
|
drop: inx
|
||||||
inx
|
inx
|
||||||
inx
|
inx
|
||||||
|
@ -2161,13 +2161,8 @@ eword
|
||||||
; H: ( n1 n2 -- n1|n2 ) return the smaller of n1 or n2
|
; H: ( n1 n2 -- n1|n2 ) return the smaller of n1 or n2
|
||||||
dword MIN,"MIN"
|
dword MIN,"MIN"
|
||||||
jsr _scmpcom
|
jsr _scmpcom
|
||||||
bcc drop
|
bcc MAX::drop
|
||||||
jsr _swap
|
bra MAX::swap
|
||||||
drop: inx
|
|
||||||
inx
|
|
||||||
inx
|
|
||||||
inx
|
|
||||||
NEXT
|
|
||||||
eword
|
eword
|
||||||
|
|
||||||
; common routine for unsigned comparisons
|
; common routine for unsigned comparisons
|
||||||
|
|
Loading…
Reference in New Issue
Block a user