Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request boriel-basic#578 from boriel/fix/usr_str
Browse files Browse the repository at this point in the history
fix: fixes USR_STR using old binary constant format
  • Loading branch information
boriel committed Oct 24, 2021
2 parents e8a58bc + 739ee4d commit f2b39de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/arch/zx48k/library-asm/usr_str.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ USR_STR:

inc hl
ld a, (hl) ; Only the 1st char is needed
and 11011111b ; Convert it to UPPER CASE
and %11011111 ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
add a, 144 ; It was a letter
Expand Down Expand Up @@ -71,4 +71,3 @@ USR_ERROR:
ENDP

pop namespace

3 changes: 1 addition & 2 deletions src/arch/zxnext/library-asm/usr_str.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ USR_STR:

inc hl
ld a, (hl) ; Only the 1st char is needed
and 11011111b ; Convert it to UPPER CASE
and %11011111 ; Convert it to UPPER CASE
sub 144 ; CODE(UDG "A")
jr nc, CONT
add a, 144 ; It was a letter
Expand Down Expand Up @@ -71,4 +71,3 @@ USR_ERROR:
ENDP

pop namespace

0 comments on commit f2b39de

Please sign in to comment.