Adapted div & mod for popptr1.
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 17.06.1998
|
||||
;
|
||||
; int abs (int x);
|
||||
;
|
||||
|
||||
.export _abs
|
||||
.import negax
|
||||
|
||||
_abs: cpx #$00 ; test hi byte
|
||||
bpl L1
|
||||
jmp negax ; Negate if negative
|
||||
L1: rts
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user