From: uz Date: Fri, 14 Aug 2009 22:08:28 +0000 (+0000) Subject: Added tosicmp0, a special entry point that clears the X register. X-Git-Tag: V2.13.0rc1~250 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a26b6e3b40c64ca3dc2ef6087806f3ef13334e1;p=cc65 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 --- diff --git a/libsrc/runtime/icmp.s b/libsrc/runtime/icmp.s index c3c37e726..70bcb76bd 100644 --- a/libsrc/runtime/icmp.s +++ b/libsrc/runtime/icmp.s @@ -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