Hi everyone,
Does anyone know if there is a way of getting an immediate keypress from the user in MBASIC (~version 4) in CP/M?
I'm aware of (and using) INPUT to get a character, or sequence of characters, from the user - but this requires a Carriage Return before control is handed back to the program. I need a function like INKEY (or INKEY$) to repeatedly scan the keyboard buffer for a keypress, then pass control back to the program to act on that keypress.
Basically I'm testing out the tone generator I've built in my FPGA which handles video output for my DIY Z80 computer. I can scale through the notes easily enough with a for...next loop, but I'd like to play a note based on the key the user is pressing - and this requires something like INKEY which I can't seem to find (or its equivalent) in MBASIC. Does anyone know if such a function exists in MBASIC?
I guess I could (and probably should) switch to BBCBASIC...
Does anyone know if there is a way of getting an immediate keypress from the user in MBASIC (~version 4) in CP/M?
I'm aware of (and using) INPUT to get a character, or sequence of characters, from the user - but this requires a Carriage Return before control is handed back to the program. I need a function like INKEY (or INKEY$) to repeatedly scan the keyboard buffer for a keypress, then pass control back to the program to act on that keypress.
Basically I'm testing out the tone generator I've built in my FPGA which handles video output for my DIY Z80 computer. I can scale through the notes easily enough with a for...next loop, but I'd like to play a note based on the key the user is pressing - and this requires something like INKEY which I can't seem to find (or its equivalent) in MBASIC. Does anyone know if such a function exists in MBASIC?
I guess I could (and probably should) switch to BBCBASIC...