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

@@ -7,7 +7,7 @@
.export tosudiv0ax, tosudiveax, getlop, udiv32
.import addysp1
.importzp sp, sreg, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.importzp c_sp, sreg, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4
.macpack cpu
@@ -39,21 +39,21 @@ getlop: sta ptr3 ; Put right operand in place
sta ptr4+1
.if (.cpu .bitand ::CPU_ISET_65SC02)
lda (sp)
lda (c_sp)
ldy #1
.else
ldy #0 ; Put left operand in place
lda (sp),y
lda (c_sp),y
iny
.endif
sta ptr1
lda (sp),y
lda (c_sp),y
sta ptr1+1
iny
lda (sp),y
lda (c_sp),y
sta sreg
iny
lda (sp),y
lda (c_sp),y
sta sreg+1
jmp addysp1 ; Drop parameters