From: Jon Langseth Date: Mon, 23 Jan 2017 18:04:21 +0000 (+0100) Subject: Adding the first bit of code I got working^^ X-Git-Url: https://git.defcon.no/?p=z80cpm;a=commitdiff_plain;h=be18c7abf71c5f87e5d9075dbf0366b15e6d69a4 Adding the first bit of code I got working^^ --- diff --git a/qq.asm b/qq.asm new file mode 100644 index 0000000..a0d3dfa --- /dev/null +++ b/qq.asm @@ -0,0 +1,26 @@ +; qq.asm +; ASM dialect is for crasm/z80, producing Intel HEX. +; Compile using "crasm -o tiktok.hex tiktok.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$"