add min/max
This commit is contained in:
parent
751e1cbb73
commit
3b561a76c6
|
@ -174,6 +174,12 @@
|
|||
@x16-gt ( x* y* -> x<y^ ) x16-cmp #01 EQU JMP2r
|
||||
@x16-gteq ( x* y* -> x<y^ ) x16-cmp [ #ff NEQ ] JMP2r
|
||||
|
||||
@x16-min ( x* y* -> min[x, y]* )
|
||||
OVR2 OVR2 x16-lt JMP SWP2 POP2 JMP2r
|
||||
|
||||
@x16-max ( x* y* -> max[x, y]* )
|
||||
OVR2 OVR2 x16-gt JMP SWP2 POP2 JMP2r
|
||||
|
||||
@x16-is-whole ( x* -> bool^ )
|
||||
NIP #00 EQU JMP2r
|
||||
|
||||
|
|
Loading…
Reference in New Issue