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:
commit
44a056833d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user