Converted local project to demo structure.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -8s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -8s
This commit is contained in:
parent
fd67884bee
commit
56e74ee085
21 changed files with 257 additions and 249 deletions
38
src/ahello-m80/0module.mk
Normal file
38
src/ahello-m80/0module.mk
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
AHELLO_M80_MOD := ahello-m80
|
||||
AHELLO_M80_SRC := $(PATH_SRC)/$(AHELLO_M80_MOD)
|
||||
AHELLO_M80_BIN := $(PATH_BIN)/$(AHELLO_M80_MOD)
|
||||
BUILD_HELP += \\n\\t* $(AHELLO_M80_BIN)/ahello.com\\n\\t* ahello-m80-run\\n\\t* ahello-m80-assert
|
||||
|
||||
$(AHELLO_M80_BIN):
|
||||
$(call mb_mkdir,$(AHELLO_M80_BIN))
|
||||
$(call mb_mkdir,$(AHELLO_M80_BIN)/utils)
|
||||
$(call mb_msxhub_get_macro80,$(AHELLO_M80_BIN)/utils)
|
||||
$(call mb_msxhub_get_z80asmuk,$(AHELLO_M80_BIN)/utils)
|
||||
|
||||
$(AHELLO_M80_BIN)/%.mac: $(AHELLO_M80_SRC)/%.mac | $(AHELLO_M80_BIN)
|
||||
$(call mb_unix2dos,$<,$@)
|
||||
|
||||
$(AHELLO_M80_BIN)/ahello.rel: $(AHELLO_M80_BIN)/ahello.mac
|
||||
$(call mb_autoexec_safe_cmd,$(AHELLO_M80_BIN),m80 =ahello/Z)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_M80_BIN))
|
||||
|
||||
$(AHELLO_M80_BIN)/ahello.hex: $(AHELLO_M80_BIN)/ahello.rel
|
||||
$(call mb_autoexec_safe_cmd,$(AHELLO_M80_BIN),l80 ahello$(MB_COMMA)ahello/N/X/Y/E)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_M80_BIN))
|
||||
|
||||
$(AHELLO_M80_BIN)/ahello.com: $(AHELLO_M80_BIN)/ahello.hex
|
||||
$(call mb_autoexec_safe_cmd,$(AHELLO_M80_BIN),hextocom ahello)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_M80_BIN))
|
||||
|
||||
.PHONY: ahello-m80-run
|
||||
ahello-m80-run: $(AHELLO_M80_BIN)/ahello.com
|
||||
$(call mb_autoexec_show_gui80,$(AHELLO_M80_BIN))
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_M80_BIN))
|
||||
|
||||
.PHONY: ahello-m80-assert
|
||||
ahello-m80-assert: $(AHELLO_M80_BIN)/ahello.com
|
||||
$(call mb_delete,$(AHELLO_M80_BIN)/ahello.out)
|
||||
$(call mb_autoexec_safe_test,$(AHELLO_M80_BIN),ahello > ahello.out)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_M80_BIN))
|
||||
grep "M80: Hello world..." $(AHELLO_M80_BIN)/ahello.out
|
||||
20
src/ahello-m80/ahello.mac
Normal file
20
src/ahello-m80/ahello.mac
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
title M80 CP/M Hello world
|
||||
.Z80
|
||||
|
||||
WRITESTR EQU 9h
|
||||
BDOS EQU 5h
|
||||
|
||||
ASEG
|
||||
ORG 0100H
|
||||
|
||||
MAIN:
|
||||
LD C,WRITESTR
|
||||
LD DE,TXT_HELLO
|
||||
CALL BDOS
|
||||
RET
|
||||
|
||||
TXT_HELLO:
|
||||
DB "M80: Hello world...$"
|
||||
|
||||
END
|
||||
DSEG
|
||||
29
src/ahello-sdcc/0module.mk
Normal file
29
src/ahello-sdcc/0module.mk
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
AHELLO_SDCC_MOD := ahello-sdcc
|
||||
AHELLO_SDCC_SRC := $(PATH_SRC)/$(AHELLO_SDCC_MOD)
|
||||
AHELLO_SDCC_BIN := $(PATH_BIN)/$(AHELLO_SDCC_MOD)
|
||||
BUILD_HELP += \\n\\t* $(AHELLO_SDCC_BIN)/ahello.com\\n\\t* ahello-sdcc-run\\n\\t* ahello-sdcc-assert
|
||||
|
||||
$(AHELLO_SDCC_BIN):
|
||||
$(call mb_mkdir,$(AHELLO_SDCC_BIN))
|
||||
|
||||
$(AHELLO_SDCC_BIN)/%.rel: $(AHELLO_SDCC_SRC)/%.asm | $(AHELLO_SDCC_BIN)
|
||||
$(call mb_sdcc_compile_asm,$<,$@)
|
||||
|
||||
$(AHELLO_SDCC_BIN)/ahello.hex: $(AHELLO_SDCC_BIN)/ahello.rel
|
||||
$(call mb_sdcc_link_asm_dos,$<,$@)
|
||||
|
||||
$(AHELLO_SDCC_BIN)/ahello.com: $(AHELLO_SDCC_BIN)/ahello.hex
|
||||
$(call mb_sdcc_hex2bin,$<,$@)
|
||||
|
||||
.PHONY: ahello-sdcc-run
|
||||
ahello-sdcc-run: $(AHELLO_SDCC_BIN)/ahello.com
|
||||
$(call mb_autoexec_show_gui80,$(AHELLO_SDCC_BIN))
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_SDCC_BIN))
|
||||
|
||||
.PHONY: ahello-sdcc-assert
|
||||
ahello-sdcc-assert: $(AHELLO_SDCC_BIN)/ahello.com
|
||||
$(call mb_delete,$(AHELLO_SDCC_BIN)/ahello.out)
|
||||
$(call mb_autoexec_safe_test,$(AHELLO_SDCC_BIN),ahello > ahello.out)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_SDCC_BIN))
|
||||
grep "SDCC: Hello world..." $(AHELLO_SDCC_BIN)/ahello.out
|
||||
42
src/ahello-sdcc/ahello.asm
Normal file
42
src/ahello-sdcc/ahello.asm
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
|
||||
DOS .equ 0x5
|
||||
_CONOUT .equ 0x02
|
||||
|
||||
.area _CODE
|
||||
JP START
|
||||
|
||||
.db 0x0D ; type hello.com
|
||||
.db 0x0D,0x0A
|
||||
.str "Example hello world executable."
|
||||
.db 0x0D,0x0A
|
||||
.db 0x1A ; end txt
|
||||
|
||||
START:
|
||||
LD HL,#TXT_HELLO
|
||||
CALL PUT_TXT
|
||||
LD HL,#TXT_HELLO_SRC
|
||||
CALL PUT_TXT
|
||||
RET
|
||||
|
||||
PUT_TXT:
|
||||
LD A,(HL)
|
||||
CP #0x1D
|
||||
RET Z
|
||||
LD E,A
|
||||
LD C,#2
|
||||
PUSH HL
|
||||
CALL DOS
|
||||
POP HL
|
||||
INC HL
|
||||
JR PUT_TXT
|
||||
|
||||
TXT_HELLO:
|
||||
.str "SDCC: Hello world..."
|
||||
.db 0x1D
|
||||
|
||||
TXT_HELLO_SRC:
|
||||
.str "from asm."
|
||||
.db 0x0D,0x0A
|
||||
.db 0x1D
|
||||
|
||||
.area _DATA
|
||||
20
src/assert-all/0module.mk
Normal file
20
src/assert-all/0module.mk
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
BUILD_HELP += \\n\\t* assert-all \(Run all asertion tests\)\\n\\t* assert-all-video \(Merges all videos\)
|
||||
ASSERT_ALL_DEPS := \
|
||||
ahello-m80-assert \
|
||||
ahello-sdcc-assert \
|
||||
dist-qa-dos1-assert \
|
||||
dist-qa-dos2-assert \
|
||||
dist-qa-msx1-assert \
|
||||
dist-qa-msxhub-assert
|
||||
|
||||
.PHONY: assert-all
|
||||
assert-all: | $(ASSERT_ALL_DEPS)
|
||||
@echo === All assertions completed
|
||||
|
||||
.PHONY: assert-all-video
|
||||
assert-all-video: | assert-all
|
||||
@echo === Build session video listing
|
||||
ls -1tr bin/*-omsx/videos/msxbuild-*.avi | awk -F "bin/" -v s="file '" -v e="'" '{print s$$2e}' > bin/video-merge.lst
|
||||
ffmpeg -v quiet -y -f concat -i bin/video-merge.lst -c copy bin/video-session.avi
|
||||
@echo === Concatted video completed
|
||||
25
src/dist-qa-dos1/0module.mk
Normal file
25
src/dist-qa-dos1/0module.mk
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
DIST_QA_DOS1 := $(PATH_BIN)/dist-qa-dos1
|
||||
DIST_QA_DOS1_DEPS := $(subst dist,dist-qa-dos1,$(DIST_DEPS))
|
||||
BUILD_HELP += \\n\\t* dist-qa-dos1-run\\n\\t* dist-qa-dos1-assert
|
||||
|
||||
$(DIST_QA_DOS1):
|
||||
$(call mb_mkdir,$(DIST_QA_DOS1))
|
||||
$(call mb_msxhub_get_dos1_boot,$(DIST_QA_DOS1))
|
||||
|
||||
$(DIST_QA_DOS1)/%: bin/dist/% | $(DIST_QA_DOS1) $(DIST_DEPS)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: dist-qa-dos1-run
|
||||
dist-qa-dos1-run: | $(DIST_QA_DOS1_DEPS)
|
||||
$(call mb_autoexec_show_gui80,$(DIST_QA_DOS1))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1))
|
||||
|
||||
.PHONY: dist-qa-dos1-assert
|
||||
dist-qa-dos1-assert: | $(DIST_QA_DOS1_DEPS)
|
||||
$(call mb_autoexec_write_default,$(DIST_QA_DOS1))
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1),ahello1)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1),ahello2)
|
||||
$(call mb_autoexec_append_exit,$(DIST_QA_DOS1))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1))
|
||||
|
||||
28
src/dist-qa-dos2/0module.mk
Normal file
28
src/dist-qa-dos2/0module.mk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
DIST_QA_DOS2 := $(PATH_BIN)/dist-qa-dos2
|
||||
DIST_QA_DOS2_DEPS := $(subst dist,dist-qa-dos2,$(DIST_DEPS))
|
||||
BUILD_HELP += \\n\\t* dist-qa-dos2-run\\n\\t* dist-qa-dos2-assert
|
||||
|
||||
$(DIST_QA_DOS2):
|
||||
$(call mb_mkdir,$(DIST_QA_DOS2))
|
||||
$(call mb_msxhub_get_dos2_boot,$(DIST_QA_DOS2))
|
||||
|
||||
$(DIST_QA_DOS2)/%: bin/dist/% | $(DIST_QA_DOS2) $(DIST_DEPS)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: dist-qa-dos2-run
|
||||
dist-qa-dos2-run: | $(DIST_QA_DOS2_DEPS)
|
||||
$(call mb_autoexec_show_gui80,$(DIST_QA_DOS2))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_DOS2))
|
||||
|
||||
.PHONY: dist-qa-dos2-assert
|
||||
dist-qa-dos2-assert: | $(DIST_QA_DOS2_DEPS)
|
||||
$(call mb_delete,$(DIST_QA_DOS2)/ahello1.out)
|
||||
$(call mb_delete,$(DIST_QA_DOS2)/ahello2.out)
|
||||
$(call mb_autoexec_write_default,$(DIST_QA_DOS2))
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS2),ahello1 > ahello1.out)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS2),ahello2 > ahello2.out)
|
||||
$(call mb_autoexec_append_exit,$(DIST_QA_DOS2))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_DOS2))
|
||||
grep "M80: Hello world..." $(DIST_QA_DOS2)/ahello1.out
|
||||
grep "SDCC: Hello world..." $(DIST_QA_DOS2)/ahello2.out
|
||||
28
src/dist-qa-msx1/0module.mk
Normal file
28
src/dist-qa-msx1/0module.mk
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
DIST_QA_MSX1_MACHINE ?= Canon_V-20
|
||||
DIST_QA_MSX1 := $(PATH_BIN)/dist-qa-msx1
|
||||
DIST_QA_MSX1_DEPS := $(subst dist,dist-qa-msx1,$(DIST_DEPS))
|
||||
BUILD_HELP += \\n\\t* dist-qa-msx1-run\\n\\t* dist-qa-msx1-assert
|
||||
|
||||
$(DIST_QA_MSX1):
|
||||
$(call mb_mkdir,$(DIST_QA_MSX1))
|
||||
|
||||
$(DIST_QA_MSX1)/%: bin/dist/% | $(DIST_QA_MSX1) $(DIST_DEPS)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: dist-qa-msx1-run
|
||||
dist-qa-msx1-run: | $(DIST_QA_MSX1_DEPS)
|
||||
$(call mb_autoexec_show_gui40,$(DIST_QA_MSX1))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_MSX1),$(DIST_QA_MSX1_MACHINE))
|
||||
|
||||
.PHONY: dist-qa-msx1-assert
|
||||
dist-qa-msx1-assert: | $(DIST_QA_MSX1_DEPS)
|
||||
$(call mb_delete,$(DIST_QA_MSX1)/ahello1.out)
|
||||
$(call mb_delete,$(DIST_QA_MSX1)/ahello2.out)
|
||||
$(call mb_autoexec_write_default,$(DIST_QA_MSX1),40)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_MSX1),ahello1 > ahello1.out,33)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_MSX1),ahello2 > ahello2.out,66,99)
|
||||
$(call mb_autoexec_append_exit,$(DIST_QA_MSX1))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_MSX1),$(DIST_QA_MSX1_MACHINE))
|
||||
grep "M80: Hello world..." $(DIST_QA_MSX1)/ahello1.out
|
||||
grep "SDCC: Hello world..." $(DIST_QA_MSX1)/ahello2.out
|
||||
55
src/dist-qa-msxhub/0module.mk
Normal file
55
src/dist-qa-msxhub/0module.mk
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
|
||||
DIST_QA_MSXHUB_MACHINE ?= Boosted_MSX2+_JP
|
||||
DIST_QA_MSXHUB := $(PATH_BIN)/dist-qa-msxhub
|
||||
DIST_QA_MSXHUB_DEPS := $(subst dist,dist-qa-msxhub,$(DIST_DEPS))
|
||||
BUILD_HELP += \\n\\t* dist-qa-msxhub-run\\n\\t* dist-qa-msxhub-assert
|
||||
|
||||
$(DIST_QA_MSXHUB):
|
||||
$(call mb_mkdir,$(DIST_QA_MSXHUB))
|
||||
$(call mb_mkdir,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_dos2_utils,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_nextor_utils,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_macro80,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_z80asmuk,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_wbass2,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_konpass,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_pmarc,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_lhpack,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_lhext,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_gunzip,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_tunzip,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_popcom,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_make,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_adir,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_turbo,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_baskom,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_binldr,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_dmphex,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_zd,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_msxdos2t,$(DIST_QA_MSXHUB)/utils)
|
||||
$(call mb_msxhub_get_gfxage,$(DIST_QA_MSXHUB)/utils)
|
||||
|
||||
$(DIST_QA_MSXHUB)/%: bin/dist/% | $(DIST_QA_MSXHUB) $(DIST_DEPS)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: dist-qa-msxhub-run
|
||||
dist-qa-msxhub-run: | $(DIST_QA_MSXHUB_DEPS)
|
||||
$(call mb_autoexec_show_gui80,$(DIST_QA_MSXHUB),dir/w)
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_MSXHUB),$(DIST_QA_MSXHUB_MACHINE))
|
||||
|
||||
.PHONY: dist-qa-msxhub-assert
|
||||
dist-qa-msxhub-assert: | $(DIST_QA_MSXHUB_DEPS)
|
||||
$(call mb_delete,$(DIST_QA_MSXHUB)/ahello1.out)
|
||||
$(call mb_delete,$(DIST_QA_MSXHUB)/ahello2.out)
|
||||
$(call mb_delete,$(DIST_QA_MSXHUB)/utils.out)
|
||||
$(call mb_autoexec_write_default,$(DIST_QA_MSXHUB),80)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_MSXHUB),ahello1 > ahello1.out)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_MSXHUB),ahello2 > ahello2.out)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_MSXHUB),dir utils > utils.out)
|
||||
$(call mb_autoexec_append_cmd,$(DIST_QA_MSXHUB),dir/w)
|
||||
$(call mb_autoexec_append_exit,$(DIST_QA_MSXHUB))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_MSXHUB),$(DIST_QA_MSXHUB_MACHINE))
|
||||
grep "M80: Hello world..." $(DIST_QA_MSXHUB)/ahello1.out
|
||||
grep "SDCC: Hello world..." $(DIST_QA_MSXHUB)/ahello2.out
|
||||
grep "KONPASS COM" $(DIST_QA_MSXHUB)/utils.out
|
||||
grep "MAKE COM" $(DIST_QA_MSXHUB)/utils.out
|
||||
25
src/dist/0module.mk
vendored
Normal file
25
src/dist/0module.mk
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
DIST_MOD := dist
|
||||
DIST_SRC := src/$(DIST_MOD)
|
||||
DIST_BIN := $(PATH_BIN)/$(DIST_MOD)
|
||||
DIST_OUT := $(PATH_BIN)/$(DIST_MOD).tar.gz
|
||||
DIST_DEPS := $(DIST_BIN)/readme.txt $(DIST_BIN)/ahello1.com $(DIST_BIN)/ahello2.com
|
||||
BUILD_HELP += \\n\\t* $(DIST_OUT)\\n\\t* dist-prepare
|
||||
|
||||
$(DIST_BIN):
|
||||
$(call mb_mkdir,$(DIST_BIN))
|
||||
|
||||
$(DIST_BIN)/readme.txt: $(DIST_SRC)/readme.txt | $(DIST_BIN)
|
||||
$(call mb_unix2dos,$<,$@)
|
||||
|
||||
$(DIST_BIN)/ahello1.com: bin/ahello-m80/ahello.com | $(DIST_BIN)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
$(DIST_BIN)/ahello2.com: bin/ahello-sdcc/ahello.com | $(DIST_BIN)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: dist-prepare
|
||||
dist-prepare: | $(DIST_DEPS)
|
||||
|
||||
$(DIST_OUT): | dist-prepare
|
||||
$(call mb_create_dist,$(DIST_OUT),$(DIST_BIN))
|
||||
2
src/dist/readme.txt
vendored
Normal file
2
src/dist/readme.txt
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
Test readme
|
||||
Loading…
Add table
Add a link
Reference in a new issue