-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 6502 codegen error for mixed case register params and normal params
- Loading branch information
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
%import textio | ||
%zeropage basicsafe | ||
|
||
main { | ||
|
||
sub start() { | ||
str minString1 = 1234 | ||
str minString2 = func() | ||
func($11,$22,$33,$44) | ||
} | ||
|
||
sub func() -> str { | ||
return "zz" | ||
sub func(ubyte arg1, ubyte arg2 @R1, ubyte arg3 @R2, ubyte arg4) { | ||
txt.print_ubhex(arg1, false) | ||
txt.print_ubhex(arg2, false) | ||
txt.print_ubhex(arg3, false) | ||
txt.print_ubhex(arg4, false) | ||
} | ||
} |