From be18c7abf71c5f87e5d9075dbf0366b15e6d69a4 Mon Sep 17 00:00:00 2001 From: Jon Langseth Date: Mon, 23 Jan 2017 19:04:21 +0100 Subject: [PATCH] Adding the first bit of code I got working^^ --- qq.asm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 qq.asm 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$" -- 2.39.2