-
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
16 changed files
with
124 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
compile: | ||
png2sp1sprite ./build/cat_sprites.png -i sprite_protar -f 32 > ./build/misifu.asm | ||
zcc +zx -v -startup=31 -DWFRAMES=3 -clib=sdcc_iy -Cz--screen=screen.scr -SO3 --max-allocs-per-node200000 @zproject.lst -pragma-include:zpragma.inc -o alley -create-app | ||
echo "Done" | ||
zcc +zx -v -m -startup=31 -clib=sdcc_iy -SO3 --max-allocs-per-node200000 @zproject.lst -pragma-include:zpragma.inc -o alley | ||
ls *.bin | ||
appmake +zx -b screen.scr --org 16384 --noloader --blockname screen -o screen.tap | ||
appmake +zx -b alley_CODE.bin --org 24500 --noloader --blockname code -o code.tap | ||
appmake +zx -b alley_BANK_6.bin --org 49152 --noloader --blockname bank6 -o bank6.tap | ||
touch alley.tap | ||
rm alley.tap | ||
cat loader.tap screen.tap code.tap bank6.tap > alley.tap |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,6 +1,61 @@ | ||
SECTION BANK_7_DATA | ||
SECTION BANK_6 | ||
|
||
|
||
PUBLIC _cartoon0 | ||
_cartoon0: | ||
BINARY "intro.scr" | ||
|
||
|
||
SECTION code_crt_common ;; place very low in memory, out of top 16k | ||
|
||
PUBLIC enable_bank_n | ||
|
||
enable_bank_n: | ||
|
||
; return address | ||
|
||
pop hl | ||
|
||
; move stack pointer | ||
|
||
ld (temp_sp),sp | ||
ld sp,0 | ||
|
||
; enable bank | ||
|
||
and 0x07 | ||
or 0x10 | ||
|
||
ld bc,0x7ffd | ||
out (c),a | ||
|
||
; return | ||
|
||
jp (hl) | ||
|
||
temp_sp: defw 0 | ||
|
||
; | ||
|
||
PUBLIC restore_bank_0 | ||
|
||
restore_bank_0: | ||
|
||
; return address | ||
|
||
pop hl | ||
|
||
; restore stack pointer | ||
|
||
ld sp,(temp_sp) | ||
|
||
; restore bank 0 | ||
|
||
ld a,0x10 | ||
|
||
ld bc,0x7ffd | ||
out (c),a | ||
|
||
; return | ||
|
||
jp (hl) |
Binary file not shown.
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,11 @@ | ||
10 BORDER 0: PAPER 0 | ||
20 CLEAR VAL "24499" | ||
25 POKE VAL "23739",VAL "111" | ||
30 LOAD ""SCREEN$ | ||
40 LOAD ""CODE | ||
45 POKE VAL "23388",VAL "22" | ||
50 OUT VAL "32765",PEEK VAL "23388" | ||
60 LOAD ""CODE | ||
65 POKE VAL "23388",VAL "16" | ||
70 OUT VAL "32765",PEEK VAL "23388" | ||
80 RANDOMIZE USR VAL "24500" |
Binary file not shown.
Binary file not shown.
Binary file not shown.