-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
176 additions
and
54 deletions.
There are no files selected for viewing
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
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 +1 @@ | ||
2024.1 | ||
2024.3 |
Submodule orix-sdk
updated
44 files
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
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
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
; Code to test XMAINARGS | ||
|
||
.include "telestrat.inc" | ||
.include "../../dependencies/orix-sdk/macros/SDK_mainargs.mac" | ||
.include "../../dependencies/orix-sdk/macros/SDK_print.mac" | ||
.include "../../dependencies/orix-sdk/macros/SDK_conio.mac" | ||
|
||
.segment "STARTUP" | ||
.segment "INIT" | ||
.segment "ONCE" | ||
|
||
.segment "CODE" | ||
_main: | ||
|
||
userzp := $80 | ||
|
||
start_adress: | ||
argv := userzp ; 2 bytes | ||
argc := userzp + 2 ; 1 byte | ||
|
||
initmainargs argv, argc, 0 | ||
|
||
|
||
nop | ||
lda argc | ||
cmp #$03 | ||
bne @no_arg | ||
nop | ||
nop | ||
|
||
nop | ||
|
||
nop | ||
getmainarg #1, (argv) | ||
BRK_TELEMON XWSTR0 | ||
crlf | ||
nop | ||
nop | ||
|
||
nop | ||
|
||
nop | ||
getmainarg #2, (argv) | ||
BRK_TELEMON XWSTR0 | ||
crlf | ||
|
||
rts | ||
nop | ||
@no_arg: | ||
print str_there_not_two_arg | ||
lda #$01 | ||
ldy #$00 | ||
rts | ||
|
||
str_there_not_two_arg: | ||
.asciiz "There is not 2 arg" | ||
|
||
|
||
lda #$41 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/submit | ||
echo Mainarg test | ||
mainarg ici "part1 part2" | ||
#on error echo error |
Oops, something went wrong.