Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2385

programming • How to implement simple input/output? (in C with vbcc)

$
0
0
Hi everyone!

I am using C with vbcc to implement support for the BBC in my Cross-Lib framework (https://github.com/Fabrizio-Caruso/CROSS-LIB).

I must admit I know almost nothing about the BBC.
So far I have managed to figure out how to display and redefine characters at desired positions in mode 2 by using escape codes that do the same things as the VDU command. It works but I get some garbage/glitch at the bottom of the screen (source code and glitch snapshot in the attachments).

How can I read the joystick and/or the keyboard. Are there memory locations I could just "peek" to poll the joystick and/or keyboard?
Could anyone here please point me to some C code examples ? Or provide information about anything that can be done in C to read the keyboard/joystick state?

Has anyone here managed to use vbcc to do anything on the bbc?

Thanks in advance for any help

Fabrizio

Statistics: Posted by Fabrizio — Sat Nov 02, 2024 1:22 am



Viewing all articles
Browse latest Browse all 2385

Trending Articles