kopia lustrzana https://github.com/maccasoft/z80-tools
Added examples folder
rodzic
5e9ce419af
commit
8551fa2c23
|
@ -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"/>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
/*.LST
|
||||
/*.BIN
|
||||
/*.HEX
|
||||
/*.lst
|
||||
/*.bin
|
||||
/*.hex
|
|
@ -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
|
|
@ -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
|
Ładowanie…
Reference in New Issue