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