Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library-asm/usr_str.asm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ USR_STR:
and 11011111b ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
adc a, 144 ; It was a letter
add a, 144 ; It was a letter
sub 'A'

LOCAL CONT
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/fastcall0.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ USR_STR:
and 11011111b ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
adc a, 144 ; It was a letter
add a, 144 ; It was a letter
sub 'A'
LOCAL CONT
CONT:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/spfill.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ USR_STR:
and 11011111b ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
adc a, 144 ; It was a letter
add a, 144 ; It was a letter
sub 'A'
LOCAL CONT
CONT:
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/usr0.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ USR_STR:
and 11011111b ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
adc a, 144 ; It was a letter
add a, 144 ; It was a letter
sub 'A'
LOCAL CONT
CONT:
Expand Down
7 changes: 7 additions & 0 deletions tests/runtime/usr_str.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

PRINT USR "a"
PRINT USR "A"
PRINT USR "\a"
PRINT USR "\A"