How to print characters on the screen? Which Lib?

Amstrad CPC and NC systems
Post Reply
Fabrizio
Member
Posts: 114
Joined: Tue Jul 11, 2017 9:28 pm

How to print characters on the screen? Which Lib?

Post by Fabrizio »

Hi

I am trying to port my open source multi-platform game
https://github.com/Fabrizio-Caruso/ASCII-CHASE

to as many 8-bit targets as possible, possibly *all* 8-bit targets with enough RAM (about 28k).
I have managed so far to cover all 6502 reasonable cases and I have started with the Z80 targets by completing
a first port to the Spectrum. Once I am done with Z80 I will move to 6809 targets (with CMOC)...
Now I am aiming at the Amstrad CPC.

At first I will be using plain ANSI C but I need some extra functions for input and output:
(1) How do I print a character on the screen at position (x,y) ? Are there any examples? Should I use poke to video memory?
(2) How can I read the keyboard input without waiting for a key press? What should I include and use?

Fabrizio
Post Reply