1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Bug fixes from Maciej and Dirk

git-svn-id: svn://svn.cc65.org/cc65/trunk@235 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-07-30 09:28:54 +00:00
parent 47d9d11fc9
commit dcb557517e
3 changed files with 19 additions and 10 deletions

View File

@ -1,12 +1,12 @@
;
; Maciej 'YTM/Alliance' Witkowiak
; Maciej 'YTM/Elysium' Witkowiak
;
; 22.12.99
; 22.12.99, 29.07.2000
; void CmpFString (char length, char *dest, char* source);
.import DoubleSPop
.import DoubleSPop, SetPtrXY
.import popa
.export _CmpFString
@ -15,4 +15,5 @@
_CmpFString:
jsr DoubleSPop
jsr popa
jsr SetPtrXY
jmp CmpFString

View File

@ -1,12 +1,12 @@
;
; Maciej 'YTM/Alliance' Witkowiak
; Maciej 'YTM/Elysium' Witkowiak
;
; 22.12.99
; 22.12.99, 29.07.2000
; void CopyFString (char length, char *dest, char* source);
.import DoubleSPop
.import DoubleSPop, SetPtrXY
.import popa
.export _CopyFString
@ -15,4 +15,5 @@
_CopyFString:
jsr DoubleSPop
jsr popa
jsr SetPtrXY
jmp CopyFString

View File

@ -1,12 +1,13 @@
;
; Maciej 'YTM/Alliance' Witkowiak
; Maciej 'YTM/Elysium' Witkowiak
;
; 22.12.99
; 22.12.99, 29.07.2000
.import popax
.importzp ptr3, ptr4
.export DoubleSPop
.export SetPtrXY
.include "../inc/geossym.inc"
@ -16,6 +17,12 @@ DoubleSPop:
jsr popax
sta ptr3
stx ptr3+1
lda #ptr4
ldx #ptr3
; rts
;
; SetPtrXY can be sometimes executed twice, but even this way it is few cycles
; faster...
SetPtrXY:
ldx #ptr4
ldy #ptr3
rts