1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

Added an entry point that clears the high word of rhs.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4027 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-08-16 16:38:52 +00:00
parent 3aa4d74b18
commit bfc8bd6d74

View File

@ -7,11 +7,16 @@
; ;
; EAX = EAX - TOS ; EAX = EAX - TOS
; ;
.export tosrsubeax .export tosrsub0ax, tosrsubeax
.import addysp1 .import addysp1
.importzp sp, sreg, tmp1 .importzp sp, sreg, tmp1
tosrsubeax: tosrsub0ax:
ldy #$00
sty sreg
sty sreg+1
tosrsubeax:
ldy #0 ldy #0
sec sec
sbc (sp),y ; byte 0 sbc (sp),y ; byte 0