forked from amberisvibin/chibi-pc09
copy all local files to repo
cp/m files, sprites, circuit design
This commit is contained in:
28
emu/z80pack-1.9/z80src/z80main.asm
Normal file
28
emu/z80pack-1.9/z80src/z80main.asm
Normal file
@@ -0,0 +1,28 @@
|
||||
TITLE 'Test programm for Z80-Disassembler'
|
||||
|
||||
;==========================================================================
|
||||
; Test programm for Z80-Disassembler
|
||||
;==========================================================================
|
||||
|
||||
LD SP,STACK ; initialize stack for simulator
|
||||
LD HL,Z80OPS ; start address for disassembler
|
||||
LD (DADR),HL
|
||||
LOOP:
|
||||
CALL DISSCR ; disassemble one screen full
|
||||
HALT ; stop simulation
|
||||
JP LOOP ; next run
|
||||
|
||||
PRTSTR: ; print 0 terminated string
|
||||
LD A,(HL) ; next char -> A
|
||||
OR A ; 0 ?
|
||||
RET Z ; yes, done
|
||||
OUT (0),A ; no, print it
|
||||
INC HL ; increase pointer to string
|
||||
JP PRTSTR ; process next char
|
||||
|
||||
INCLUDE z80dis.asm
|
||||
INCLUDE z80ops.asm
|
||||
|
||||
DEFS 100H
|
||||
STACK:
|
||||
END
|
||||
Reference in New Issue
Block a user