1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-05 08:05:51 +00:00

Merge pull request #34 from greg-king5/lower-upper

Fixed 2 string-function return-pointers.
This commit is contained in:
Oliver Schmidt 2013-08-28 01:03:08 -07:00
commit 44a056833d
2 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,9 @@
;
; Ullrich von Bassewitz, 02.06.1998
; 1998-06-02, Ullrich von Bassewitz
; 2013-08-28, Greg King
;
; char* strlower (char* s);
; char* strlwr (char* s);
; char* __fastcall__ strlower (char* s);
; char* __fastcall__ strlwr (char* s);
;
; Non-ANSI
;
@ -19,7 +20,7 @@ _strlwr:
sta ptr1 ; Save s (working copy)
stx ptr1+1
sta ptr2
sta ptr2+1 ; save function result
stx ptr2+1 ; save function result
ldy #0
loop: lda (ptr1),y ; get character

View File

@ -1,8 +1,9 @@
;
; Ullrich von Bassewitz, 02.06.1998
; 1998-06-02, Ullrich von Bassewitz
; 2013-08-28, Greg King
;
; char* strupper (char* s);
; char* strupr (char* s);
; char* __fastcall__ strupper (char* s);
; char* __fastcall__ strupr (char* s);
;
; Non-ANSI
;
@ -19,7 +20,7 @@ _strupr:
sta ptr1 ; Save s (working copy)
stx ptr1+1
sta ptr2
sta ptr2+1 ; save function result
stx ptr2+1 ; save function result
ldy #0
loop: lda (ptr1),y ; get character