25-09-2021, 10:16 PM
(25-09-2021, 08:08 PM)snake Wrote: Does anyone have assembly code for a Hello World program that will run on a Microbee?
Somebody does!
The constants and prefixes may vary according to the assembler you're using.
e.g. The # - indicates an immediate value & the % indicates a hexadecimal number
Code:
VDU EQU %F000
START:
LD HL,#CMSG_HELLO
LD DE,#VDU
LD BC,#CMSGENDED_HELLO - CMSG_HELLO
LDIR
RET
CMSG_HELLO:
DB "Hello, World"
CMSGENDED_HELLO: