CDOS assembly program help

29 views
Skip to first unread message

Chris LaFond

unread,
Aug 11, 2025, 11:20:21 PMAug 11
to Cromemco
Hello everyone,

I am attempting to write a simple hello world program with the Cromemco
Macro assembler. I am having a problem with outputting a string and I am
hoping someone could clarify.

Here is some code:

LD    C,09H    ; set up to print buffer

LD    DE,MSG    ; load string address to DE register

CALL    05H     ; call CDOS

MSG:    DB    'Hello,World!',0


the code works but keeps outputting characters past the hello world
string. From what I have read it will keep reading until it hits a null
character (Which I think is 00H)

Could someone hold my hand and tell me how to add a null character to
the end of the string?

Thanks!

curt mayer

unread,
Aug 11, 2025, 11:22:05 PMAug 11
to crom...@googlegroups.com
It's not a null that ends a string for this bdos call.  It's a dollar sign.

--
You received this message because you are subscribed to the Google Groups "Cromemco" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cromemco+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cromemco/a052fd04-eb2d-4a69-b9e2-938af7f1c8c8%40gmail.com.

Roger Hanscom

unread,
Aug 11, 2025, 11:26:48 PMAug 11
to crom...@googlegroups.com
Hi CHris --

If you are using CP/M 68k, I think it wants a '$' as end of string (just like Z80 CP/M??).  Easy enough to experiment with.

Roger

Chris LaFond

unread,
Aug 12, 2025, 12:38:45 AMAug 12
to crom...@googlegroups.com

Thanks for the quick response.

Doing this works:

DB 'Hello,World!$'

So my next step was a carriage return and line feed.

CR:    EQU    0DH

LF:    EQU    0AH

DB    'Hello, World!',CR,LF,'$'

Is this the correct way to add CR-LF to the end of the string?

You guys are awesome! Thank you so much for the help.

Aron Hoekstra

unread,
Aug 12, 2025, 12:43:03 AMAug 12
to crom...@googlegroups.com
yep just don't forget to add:

CR: EQU 0DH ;CARRIAGE RETURN
LF: EQU 0AH ;LINE FEED


Aron Hoekstra

unread,
Aug 12, 2025, 12:43:29 AMAug 12
to crom...@googlegroups.com
nevermind i see you already had it! haha

Bill Mahoney

unread,
Aug 12, 2025, 6:19:01 PMAug 12
to crom...@googlegroups.com
Hi Cromemco fans! 

Hey, I am trying to rid myself of Cox Cable and go somewhere else. Who actually handles the mailing list these days? Sorry to blast this to everyone but I’d like to continue to “listen in” (particularly on the IDE drive conversation!) but who do we ask now to change an email account? 

You can answer directly to avoid clutter for everyone else - bi...@billmahoney.com

Thanks

Bill

Mike Stein

unread,
Aug 16, 2025, 7:22:38 PMAug 16
to crom...@googlegroups.com
Looks like this has been taken care of, correct?

m

--
You received this message because you are subscribed to the Google Groups "Cromemco" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cromemco+u...@googlegroups.com.

Bill Mahoney

unread,
Aug 17, 2025, 5:51:22 PMAug 17
to crom...@googlegroups.com

It seems so, the last few notes about ordering the IDE boards have appeared “in the right place”. I’m interested to see how it goes. (I was a part-owner in an embedded systems manufacturing company and if I was still a part-owner I’d offer to do the SMT.)

Thanks! 



Mike Stein

unread,
Aug 19, 2025, 10:42:07 PMAug 19
to crom...@googlegroups.com
Excellent; Marcus and I share management of the group but I've been away for a few weeks. Looks like he took care of it.

m

Reply all
Reply to author
Forward
0 new messages