There are any place with references for C programing?
Posted: Sat Jun 04, 2022 12:32 pm
I want to program on the QL, using C, and perhaps do/port some of my programs/games.
I was able to compile XTC68 in my linux, I compiled the tipical "Hello World", and execute it in the sqlux emulator, even I was able to compile a complex program (xtc68 has a big problem with long paths...)
But now I want to access the hardware and/or the rom traps.
I think I was able to put the screen in 8 color mode with this:
not sure if it's ok, but works.
But when I try to read the keyboard, I was totally lost, and I can't found information on internet about how to do it?
There area any simple source code? or any tutorial that can I use to learn?
I was able to compile XTC68 in my linux, I compiled the tipical "Hello World", and execute it in the sqlux emulator, even I was able to compile a complex program (xtc68 has a big problem with long paths...)
But now I want to access the hardware and/or the rom traps.
I think I was able to put the screen in 8 color mode with this:
Code: Select all
#include <qdos.h>
void main(void){
short dm = 8;
short dt = -1;
mt_dmode (&dm,&dt);
}
But when I try to read the keyboard, I was totally lost, and I can't found information on internet about how to do it?
There area any simple source code? or any tutorial that can I use to learn?