; qq.asm ; ASM dialect is for crasm/z80, producing Intel HEX. ; Compile using "crasm -o qq.hex qq.asm" and transfer ; to CP/M system for final conversion to COM file using LOAD.COM ; ; A simple demonstration of using BDOS calls 2 C_WRITE ; and 9 C_WRITESTR to put something on the console. ; Also, forms a very simple template for setting up ASM for CP/M ;) CPU Z80 OUTPUT HEX CONOUT EQU 2 STROUT EQU 9 BDOS EQU 5 * = $100 START LD E, 'q' LD C, CONOUT CALL BDOS LD DE, message LD C, STROUT CALL BDOS RET message asc "Testing 123$"