-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check that block address leaves room for program startup logic
- Loading branch information
Showing
5 changed files
with
49 additions
and
51 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
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,50 +1,18 @@ | ||
%zeropage basicsafe | ||
%option no_sysinit | ||
|
||
main { | ||
sub func() -> ubyte { | ||
cx16.r0++ | ||
return cx16.r0L | ||
} | ||
; EXAMPLE external command source code | ||
|
||
sub start() { | ||
bool[256] @shared cells | ||
word starw | ||
byte bb | ||
uword uw | ||
ubyte ub | ||
|
||
starw = (240-64 as word) + func() | ||
%launcher none | ||
%option no_sysinit | ||
%zeropage basicsafe | ||
%encoding iso | ||
%import textio | ||
%address $4000 | ||
|
||
for starw in 50 downto 10 { | ||
cx16.r0++ | ||
} | ||
for starw in cx16.r0L downto 10 { | ||
cx16.r0++ | ||
} | ||
|
||
for ub in 0 to len(cells)-1 { | ||
cx16.r0++ | ||
} | ||
for ub in cx16.r0L to len(cells)-1 { | ||
cx16.r0++ | ||
} | ||
for bb in 50 downto 10 { | ||
cx16.r0++ | ||
} | ||
for bb in cx16.r0sL downto 10 { | ||
cx16.r0++ | ||
} | ||
main $4030 { | ||
%option force_output | ||
|
||
for starw in 500 downto 10 { | ||
cx16.r0++ | ||
} | ||
for uw in 50 downto 10 { | ||
cx16.r0++ | ||
} | ||
for uw in 500 downto 10 { | ||
cx16.r0++ | ||
} | ||
sub start() { | ||
txt.print("external command\n") | ||
sys.exit(0) | ||
} | ||
} | ||
|