]> git.defcon.no Git - z80cpm/blob - qq.asm
An experiment in reading files on CP/M
[z80cpm] / qq.asm
1 ; qq.asm
2 ; ASM dialect is for crasm/z80, producing Intel HEX.
3 ; Compile using "crasm -o qq.hex qq.asm" and transfer
4 ; to CP/M system for final conversion to COM file using LOAD.COM
5 ;
6 ; A simple demonstration of using BDOS calls 2 C_WRITE
7 ; and 9 C_WRITESTR to put something on the console.
8 ; Also, forms a very simple template for setting up ASM for CP/M ;)
9 CPU Z80
10 OUTPUT HEX
11
12 CONOUT EQU 2
13 STROUT EQU 9
14 BDOS EQU 5
15
16 * = $100
17 START LD E, 'q'
18 LD C, CONOUT
19 CALL BDOS
20
21 LD DE, message
22 LD C, STROUT
23 CALL BDOS
24 RET
25
26 message asc "Testing 123$"