Added old gfx and converted to generated autoexec.bat's
This commit is contained in:
parent
9c9419844d
commit
f4f007bd9c
20 changed files with 62 additions and 57 deletions
|
|
@ -6,27 +6,34 @@ GFX_SRC_FILES := $(call rwildcard, $(PATH_SRC)/$(GFX_NAME), *.ge5)
|
|||
GFX_BIN_FILES := $(patsubst $(PATH_SRC)/$(GFX_NAME)/%.ge5,$(GFX_BIN)/%.zop,$(GFX_SRC_FILES))
|
||||
BUILD_HELP += \\n\\t* gfx / test-gfx
|
||||
|
||||
# TODO: add unittot.ge5
|
||||
#
|
||||
#10 SCREEN 5 : SETPAGE 1,1
|
||||
#20 BLOAD"units.ge5",S : COLOR=RESTORE
|
||||
#30 SETPAGE 2,2
|
||||
#40 BLOAD"2row.ge5",S
|
||||
#50 SETPAGE 1,1
|
||||
#60 COPY (0,0)-(256,32),2 TO (0,208),1
|
||||
#70 BSAVE"unit.pop",&H8000,&HFFFF,S
|
||||
#80 _SYSTEM("pop.bat")
|
||||
#
|
||||
|
||||
$(GFX_BIN):
|
||||
$(call mb_mkdir,$(GFX_BIN))
|
||||
|
||||
# TODO: add unittot.ge5
|
||||
|
||||
#1 SCREEN 5 : SETPAGE 1,1
|
||||
#2 BLOAD"units.ge5",S : COLOR=RESTORE
|
||||
#3 SETPAGE 2,2
|
||||
#4 BLOAD"2row.ge5",S
|
||||
#5 SETPAGE 1,1
|
||||
#6 COPY (0,0)-(256,32),2 TO (0,208),1
|
||||
#7 BSAVE"unit.pop",&H8000,&HFFFF,S
|
||||
|
||||
$(GFX_BIN)/%.zop: $(GFX_SRC)/%.ge5 | $(GFX_BIN)
|
||||
cp $< $@;
|
||||
unix2dos -n $(GFX_SRC)/autoexec.bat $(GFX_BIN)/autoexec.bat;
|
||||
@echo "basic conv.bas\r" >> $(GFX_BIN)/autoexec.bat;
|
||||
|
||||
$(GFX_BIN)/popcom.com: $(GFX_BIN)
|
||||
test -f $(GFX_BIN)/popcom.com || $(CMD_WGET) -O $(GFX_BIN)/popcom.com https://msxhub.com/api/POPCOM/1.00-1/get/POPCOM/popcom.com
|
||||
|
||||
$(GFX_BIN)/%.zop: $(GFX_SRC)/%.ge5 | $(GFX_BIN) $(GFX_BIN)/popcom.com
|
||||
cp $< $(GFX_BIN)
|
||||
$(call mb_autoexec_write_default,$(GFX_BIN))
|
||||
$(call mb_autoexec_append_cmd,$(GFX_BIN),omsxctl fail_after 60 seconds fail_basic_script 126 > NUL)
|
||||
#add-gui-debug; $(call mb_autoexec_append_cmd,$(GFX_BIN),omsxctl set renderer SDL > NUL)
|
||||
$(call mb_autoexec_append_echo,$(GFX_BIN),Running basic conversion step)
|
||||
$(call mb_autoexec_append_cmd,$(GFX_BIN),basic conv.bas)
|
||||
|
||||
@echo "10 SCREEN 5 : SETPAGE 1,1\r" > $(GFX_BIN)/conv.bas;
|
||||
@echo "20 BLOAD\"$(notdir $@)\",S : COLOR=RESTORE\r" >> $(GFX_BIN)/conv.bas;
|
||||
@echo "20 BLOAD\"$(notdir $<)\",S : COLOR=RESTORE\r" >> $(GFX_BIN)/conv.bas;
|
||||
@echo "30 BSAVE\"$(notdir $@)\",&H0000,&H7FFF,S\r" >> $(GFX_BIN)/conv.bas;
|
||||
@echo "40 _SYSTEM(\"pop.bat\")\r" >> $(GFX_BIN)/conv.bas;
|
||||
|
||||
|
|
@ -35,17 +42,14 @@ $(GFX_BIN)/%.zop: $(GFX_SRC)/%.ge5 | $(GFX_BIN)
|
|||
@echo "popcom $(notdir $@)\r" >> $(GFX_BIN)/pop.bat;
|
||||
@echo "echo \"All done..................\"\r" >> $(GFX_BIN)/pop.bat;
|
||||
@echo "omsxctl exit\r" >> $(GFX_BIN)/pop.bat;
|
||||
|
||||
$(call mb_openmsx_dos2, $(GFX_BIN))
|
||||
ls -la $(GFX_BIN)/$(notdir $@);
|
||||
dd if=$(GFX_BIN)/$(notdir $@) of=$(GFX_BIN)/$(notdir $@).out bs=1 skip=10;
|
||||
cp $(GFX_BIN)/$(notdir $@).out $(GFX_BIN)/$(notdir $@);
|
||||
|
||||
test-gfx: gfx
|
||||
unix2dos -n $(GFX_SRC)/autoexec.bat $(GFX_BIN)/autoexec.bat;
|
||||
echo "omsxctl set renderer SDL\r" >> $(GFX_BIN)/autoexec.bat;
|
||||
echo "omsxctl set throttle on\r" >> $(GFX_BIN)/autoexec.bat;
|
||||
echo "omsxctl set speed 200\r" >> $(GFX_BIN)/autoexec.bat;
|
||||
$(call mb_openmsx_dos2, $(GFX_BIN))
|
||||
$(call mb_autoexec_open_gui,$(GFX_BIN))
|
||||
$(call mb_autoexec_append_echo,$(GFX_BIN),Selecting 7Mhz speed.)
|
||||
$(call mb_autoexec_append_cmd,$(GFX_BIN),omsxctl set speed 200 > NUL)
|
||||
$(call mb_openmsx_dos2,$(GFX_BIN))
|
||||
|
||||
gfx: $(GFX_BIN_FILES)
|
||||
echo All GFX are compressed.
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
mode 80
|
||||
echo === Test fail_after
|
||||
omsxctl fail_after 300 seconds build_gfx
|
||||
echo === Start program
|
||||
BIN
src/gfx/org/balken4.zop
Executable file
BIN
src/gfx/org/balken4.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/brief.zop
Executable file
BIN
src/gfx/org/brief.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/dome.zop
Executable file
BIN
src/gfx/org/dome.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/logo.zop
Executable file
BIN
src/gfx/org/logo.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/menu.zop
Executable file
BIN
src/gfx/org/menu.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/page5.zop
Executable file
BIN
src/gfx/org/page5.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/paragon.zop
Executable file
BIN
src/gfx/org/paragon.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/presents.zop
Executable file
BIN
src/gfx/org/presents.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/st_menu1.zop
Executable file
BIN
src/gfx/org/st_menu1.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/st_menu2.zop
Executable file
BIN
src/gfx/org/st_menu2.zop
Executable file
Binary file not shown.
BIN
src/gfx/org/unittot.zop
Executable file
BIN
src/gfx/org/unittot.zop
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue