Added some 65C02 code.

git-svn-id: svn://svn.cc65.org/cc65/trunk@484 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-11-27 22:59:03 +00:00
parent 5be5b3763b
commit b4163d0e4e
11 changed files with 149 additions and 80 deletions

View File

@@ -11,13 +11,18 @@
tosanda0:
ldx #$00
tosandax:
ldy #0
.ifpc02
and (sp) ; 65C02 version, saves 2 cycles and 1 byte
ldy #1
.else
ldy #0
and (sp),y
sta ptr4
iny
txa
and (sp),y
iny
.endif
pha
txa
and (sp),y
tax
lda ptr4
pla
jmp addysp1 ; drop TOS, set condition codes