BDOS Get Buffer not working

60 views
Skip to first unread message

Robb Bates

unread,
Nov 20, 2025, 4:48:29 PM (8 days ago) Nov 20
to RC2014-Z80
I'm writing a program that is meant to use BDOS function 10, Get console buffer.  In the CPM3 Programmer's guide it says you can pre-load the input buffer, set mx and nc and when you call BDOS 10, it should allow you to get a line of text with the text from the input buffer already filled out.

I'm thinking that this only works on CPM3 and not CPM2.2.  I'm running ZPM3, which I'm making an assumption that is a Z-system based on CPM3.  I may be wrong.

Does anyone know of a reason why my attempts may not work?

Robb

Peter Onion

unread,
Nov 20, 2025, 5:14:06 PM (8 days ago) Nov 20
to RC2014-Z80
I'm running Z3PLUS.  If you send some code I'll give it a try.

PeterO

Wayne Warthen

unread,
Nov 20, 2025, 5:46:12 PM (8 days ago) Nov 20
to RC2014-Z80
I am attaching a sample program that demonstrates this.  I checked and it is working on ZPM3 for me.

You are correct that only CPM3 (and it's workalikes such as ZPM3) will allow a pre-initialized string.

Thanks, Wayne



coninp.asm

Robb Bates

unread,
Nov 23, 2025, 10:38:20 PM (5 days ago) Nov 23
to RC2014-Z80
Ah, I see it now.  I wasn't using the DMA as the buffer.  That's the trick it looks like.
Reply all
Reply to author
Forward
0 new messages