mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
Added tosicmp0, a special entry point that clears the X register.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4005 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,10 +5,13 @@
|
|||||||
; Integer compare function - used by the compare operators
|
; Integer compare function - used by the compare operators
|
||||||
;
|
;
|
||||||
|
|
||||||
.export tosicmp
|
.export tosicmp, tosicmp0
|
||||||
.importzp sp, sreg
|
.importzp sp, sreg
|
||||||
|
|
||||||
|
|
||||||
|
tosicmp0:
|
||||||
|
ldx #$00
|
||||||
|
|
||||||
tosicmp:
|
tosicmp:
|
||||||
sta sreg
|
sta sreg
|
||||||
stx sreg+1 ; Save ax
|
stx sreg+1 ; Save ax
|
||||||
|
Reference in New Issue
Block a user