mirror of
https://github.com/cc65/cc65.git
synced 2026-04-25 22:18:27 +00:00
Added some 65C02 code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@484 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
+11
-6
@@ -13,13 +13,18 @@
|
||||
tosadda0:
|
||||
ldx #0
|
||||
tosaddax:
|
||||
ldy #0
|
||||
clc
|
||||
adc (sp),y ; lo byte
|
||||
clc
|
||||
.ifpc02
|
||||
adc (sp) ; 65C02 version - saves 2 cycles
|
||||
ldy #1
|
||||
.else
|
||||
ldy #0
|
||||
adc (sp),y ; lo byte
|
||||
iny
|
||||
.endif
|
||||
pha ; save it
|
||||
txa
|
||||
iny
|
||||
adc (sp),y ; hi byte
|
||||
txa
|
||||
adc (sp),y ; hi byte
|
||||
tax
|
||||
clc
|
||||
lda sp
|
||||
|
||||
Reference in New Issue
Block a user