From 6a26b6e3b40c64ca3dc2ef6087806f3ef13334e1 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 14 Aug 2009 22:08:28 +0000 Subject: [PATCH] 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 --- libsrc/runtime/icmp.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.5