Compress the main $e000 code too
This commit is contained in:
parent
1855439e85
commit
1744e67286
14
.gitignore
vendored
14
.gitignore
vendored
|
|
@ -2,9 +2,13 @@
|
|||
loader/build
|
||||
loader/tools/cc1541/cc1541
|
||||
|
||||
loader/samples/minexample/*.bak
|
||||
loader/samples/minexample/*.o
|
||||
loader/samples/minexample/*.zx0.prg
|
||||
loader/samples/minexample/*.lz.prg
|
||||
loader/samples/minexample/*.tmp
|
||||
loader/samples/minexample/**/*.bak
|
||||
loader/samples/minexample/**/*.o
|
||||
loader/samples/minexample/**/*.zx0.prg
|
||||
loader/samples/minexample/**/*.lz.prg
|
||||
loader/samples/minexample/**/*.tmp
|
||||
loader/samples/minexample/main.zx0
|
||||
loader/samples/minexample/song0.bin
|
||||
loader/samples/minexample/song1.bin
|
||||
loader/samples/minexample/font.prg
|
||||
loader/samples/minexample/test/*.prg
|
||||
|
|
|
|||
|
|
@ -164,9 +164,7 @@ $(LOADER): $(LOADERCFG)
|
|||
|
||||
assemble: $(ASSEMBLE)
|
||||
|
||||
$(SOURCE): $(LOADER) ;
|
||||
|
||||
$(ASSEMBLE): $(SOURCE)
|
||||
$(ASSEMBLE): $(SOURCE) $(LOADER) main.zx0
|
||||
$(MKDIR) $(BUILDDIR)
|
||||
$(MKDIR) $(INTERMDIR)
|
||||
ifeq ($(_PLATFORM_),c64)
|
||||
|
|
@ -180,14 +178,14 @@ endif
|
|||
|
||||
diskimage: $(DISKIMAGE)
|
||||
|
||||
$(DISKIMAGE): $(ASSEMBLE) $(CC1541) $(ZX0PRGS) $(LZPRGS) font.bin
|
||||
$(DISKIMAGE): $(ASSEMBLE) $(CC1541) $(ZX0PRGS) $(LZPRGS) font.prg
|
||||
$(RM) $@
|
||||
$(CC1541) -n "otomata labs" -i " 2025" \
|
||||
-f "ys2intro" -w $< \
|
||||
-f "song0" -w song0.zx0.prg \
|
||||
-f "song1" -w song1.zx0.prg \
|
||||
-f "badguy" -w badguy.zx0.prg \
|
||||
-f "font" -w font.bin \
|
||||
-f "font" -w font.prg \
|
||||
-f "intrbmp" -w title_320-prepared.zx0.prg \
|
||||
-f "tower" -w tower.zx0.prg \
|
||||
-f "towerbm" -w tower_beam.zx0.prg \
|
||||
|
|
@ -229,6 +227,12 @@ $(ZX02):
|
|||
$(PRINTF) "\000\220" | $(CAT) - $@.tmp > $@
|
||||
$(RM) $@.tmp
|
||||
|
||||
main.zx0: main.asm
|
||||
$(RM) $@
|
||||
$(AS) -t c64 -C bin.cfg -o $@.tmp $<
|
||||
$(ZX02) $@.tmp $@
|
||||
$(RM) $@.tmp
|
||||
|
||||
song0.bin: ys2_fixed_drums.fur
|
||||
cd $(FURC64) && ./convert.sh $(abspath $<)
|
||||
cp $(FURC64)/asm/song.bin $@
|
||||
|
|
@ -237,6 +241,9 @@ song1.bin: ys2_lilia_sid.fur
|
|||
cd $(FURC64) && ./convert.sh $(abspath $<)
|
||||
cp $(FURC64)/asm/song.bin $@
|
||||
|
||||
font.prg: test/main.asm font.bin #test/logo.bin test/txtbg.bin
|
||||
$(AS) -t c64 -C test/bin.cfg -o $@ $<
|
||||
|
||||
clean:
|
||||
-$(RM) $(ZX0PRGS) $(LZPRGS)
|
||||
-$(RM) *.o $(ASSEMBLE) $(DISKIMAGE)
|
||||
|
|
|
|||
11
loader/samples/minexample/bin.cfg
Normal file
11
loader/samples/minexample/bin.cfg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
MEMORY {
|
||||
ZP: file = "", start = $0002, size = $00FE, define = yes;
|
||||
MAIN: file = %O, start = $E000, size = $1FFA;
|
||||
}
|
||||
SEGMENTS {
|
||||
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
||||
CODE: load = MAIN, type = rw;
|
||||
RODATA: load = MAIN, type = ro, optional = yes;
|
||||
DATA: load = MAIN, type = rw, optional = yes;
|
||||
BSS: load = MAIN, type = bss, optional = yes, define = yes;
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
11
loader/samples/minexample/test/bin.cfg
Normal file
11
loader/samples/minexample/test/bin.cfg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
MEMORY {
|
||||
ZP: file = "", start = $0002, size = $00FE, define = yes;
|
||||
MAIN: file = %O, start = $0BFE, size = $C402;
|
||||
}
|
||||
SEGMENTS {
|
||||
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
||||
CODE: load = MAIN, type = rw;
|
||||
RODATA: load = MAIN, type = ro, optional = yes;
|
||||
DATA: load = MAIN, type = rw, optional = yes;
|
||||
BSS: load = MAIN, type = bss, optional = yes, define = yes;
|
||||
}
|
||||
10
loader/samples/minexample/test/main.asm
Normal file
10
loader/samples/minexample/test/main.asm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.zeropage
|
||||
|
||||
.segment "CODE"
|
||||
|
||||
.word $0c00
|
||||
.incbin "font.bin"
|
||||
.res 12
|
||||
|
||||
entry:
|
||||
jmp *
|
||||
Loading…
Reference in a new issue