25-09-2021, 08:08 PM
Does anyone have assembly code for a Hello World program that will run on a Microbee?
|
25-09-2021, 08:08 PM
Does anyone have assembly code for a Hello World program that will run on a Microbee?
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
26-09-2021, 01:53 AM
zasm is also working under MacOS using Sublime Text
https://k1.spdns.de/Develop/Projects/zas...ributions/
26-09-2021, 03:00 PM
05-10-2021, 12:20 PM
VDU: EQU $F200
START: LD HL,CMSG_HELLO LD DE,VDU LD BC,CMSGENDED_HELLO - CMSG_HELLO LDIR RET CMSG_HELLO: db 'Hello World' CMSGENDED_HELLO: This code is giving me boxes on the screen instead of the characters, any suggestions?
06-10-2021, 07:21 PM
---------------------------
ChickenMan
07-10-2021, 01:56 AM
The $F200 is only the place on the screen that the output will start from.
I'm assuming that snake wants to start further down the screen than the top left corner $F000. My concern is, where is the assembler getting the start address for the program itself to reside at, I don't see an origin address. For auto running under Basic it would need to be $0900 from memory. Without an origin the compiler my default to $0000 which is no good for the Microbee Basic. But I will stand corrected here as A) I am not familiar with the assembler / compiler that snake is using. B) I'm super rusty when it comes to machine level programming. Ernest
07-10-2021, 02:59 AM
Correct!
I was using ORG 400H and it needed to be ORG 900H because it was loading from basic. Thanks to - Quote:Quote:Ewan J. Wordsworth |
|
|