diff --git a/build.xml b/build.xml index 824d78a..1f84965 100644 --- a/build.xml +++ b/build.xml @@ -224,6 +224,12 @@ + + + + + + diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..c1a0522 --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1,6 @@ +/*.LST +/*.BIN +/*.HEX +/*.lst +/*.bin +/*.hex diff --git a/examples/HELLOBIN.ASM b/examples/HELLOBIN.ASM new file mode 100644 index 0000000..f3080f8 --- /dev/null +++ b/examples/HELLOBIN.ASM @@ -0,0 +1,34 @@ +; +; Hello World .BIN for MONITOR environment +; +; Upload as Intel HEX then type G5000 to run. +; + +; --------------------------------------------------------------------------- +; Constant definitions + +CHPUT .EQU 08H + +; --------------------------------------------------------------------------- +; Compilation address + + .ORG 5000H + +; --------------------------------------------------------------------------- +; Program code entry point + +EXECUTE + LD HL, HELLOWORLD +LOOP LD A, (HL) + AND A + RET Z + CALL CHPUT + INC HL + JR LOOP + +; --------------------------------------------------------------------------- +; Data + +HELLOWORLD .DB "Hello world!", 13, 10, 0 + + .END diff --git a/examples/HELLOCPM.ASM b/examples/HELLOCPM.ASM new file mode 100644 index 0000000..04338fe --- /dev/null +++ b/examples/HELLOCPM.ASM @@ -0,0 +1,31 @@ +; +; Hello World .COM for CP/M environment +; +; Upload as CP/M binary then type HELLOCPM to run. +; + +; --------------------------------------------------------------------------- +; Constant definitions + +BDOS .EQU 05H +STROUT .EQU 09H + +; --------------------------------------------------------------------------- +; Compilation address, standard CP/M entry point + + .ORG 0100H + +; --------------------------------------------------------------------------- +; Program code entry point + +EXECUTE LD DE, HELLOWORLD + LD C, STROUT + CALL BDOS + RET + +; --------------------------------------------------------------------------- +; Data + +HELLOWORLD .DB "Hello world!", 13, 10, "$" + + .END