This commit is contained in:
mrdudz
2025-06-23 17:09:06 +02:00
parent 4863a3e29b
commit 5fc15a7a60
204 changed files with 915 additions and 912 deletions

View File

@@ -5,31 +5,31 @@
;
.export lsubeq0sp, lsubeqysp
.importzp sp, sreg
.importzp c_sp, sreg
lsubeq0sp:
ldy #0
lsubeqysp:
sec
eor #$FF
adc (sp),y
sta (sp),y
adc (c_sp),y
sta (c_sp),y
pha ; Save low byte
iny
txa
eor #$FF
adc (sp),y
sta (sp),y
adc (c_sp),y
sta (c_sp),y
tax
iny
lda (sp),y
lda (c_sp),y
sbc sreg
sta (sp),y
sta (c_sp),y
sta sreg
iny
lda (sp),y
lda (c_sp),y
sbc sreg+1
sta (sp),y
sta (c_sp),y
sta sreg+1
pla
rts