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:
parent
fdfa1678d4
commit
6a26b6e3b4
1 changed files with 5 additions and 2 deletions
|
@ -5,10 +5,13 @@
|
|||
; Integer compare function - used by the compare operators
|
||||
;
|
||||
|
||||
.export tosicmp
|
||||
.importzp sp, sreg
|
||||
.export tosicmp, tosicmp0
|
||||
.importzp sp, sreg
|
||||
|
||||
|
||||
tosicmp0:
|
||||
ldx #$00
|
||||
|
||||
tosicmp:
|
||||
sta sreg
|
||||
stx sreg+1 ; Save ax
|
||||
|
|
Loading…
Add table
Reference in a new issue