Added examples folder

master
Marco Maccaferri 2018-12-26 08:31:15 +01:00
rodzic 5e9ce419af
commit 8551fa2c23
4 zmienionych plików z 77 dodań i 0 usunięć

Wyświetl plik

@ -224,6 +224,12 @@
<fileset dir="lib" includes="jssc-2.8.0.jar"/>
</copy>
<copy todir="${work}/${folder}/examples">
<fileset dir="examples">
<include name="**/*.ASM"/>
</fileset>
</copy>
<copy todir="${work}/${folder}">
<fileset file="LICENSE"/>
<fileset file="LICENSE.glass"/>

6
examples/.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,6 @@
/*.LST
/*.BIN
/*.HEX
/*.lst
/*.bin
/*.hex

Wyświetl plik

@ -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

Wyświetl plik

@ -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