Hi! It's a long time, that don't visit this forum, but now I decided to start programming the vic20 with the CC65 compiler.
I need a basic information, how I can clear the screen in C?
Maybe i need to use some poke addres??
Thanks!
How to clear Screen and other things.
Moderator: Moderators
-
- Vic 20 Newbie
- Posts: 16
- Joined: Thu Sep 18, 2008 2:10 pm
here is a good deal of info on the main functions available:
http://www.cc65.org/doc/funcref.html
remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic:
printf("\x93 ...... "); // clear the screeen than print something
http://www.cc65.org/doc/funcref.html
remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic:
printf("\x93 ...... "); // clear the screeen than print something
Pallas - OPByte
http://www.opbyte.it/vic20/
http://www.opbyte.it/vic20/
-
- Vic 20 Newbie
- Posts: 16
- Joined: Thu Sep 18, 2008 2:10 pm
-
- Vic 20 Newbie
- Posts: 16
- Joined: Thu Sep 18, 2008 2:10 pm
pallas wrote:here is a good deal of info on the main functions available:
http://www.cc65.org/doc/funcref.html
remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic:
printf("\x93 ...... "); // clear the screeen than print something
Thanks!!!!
you're welcome, and nice to see someone nearby working on the vic
Pallas - OPByte
http://www.opbyte.it/vic20/
http://www.opbyte.it/vic20/
-
- Vic 20 Newbie
- Posts: 16
- Joined: Thu Sep 18, 2008 2:10 pm
Be cautious about using printf() unless you really need to. It's part of stdio.h module and is quite large.pallas wrote:here is a good deal of info on the main functions available:
http://www.cc65.org/doc/funcref.html
remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic:
printf("\x93 ...... "); // clear the screeen than print something
You're better to try and keep to the conio.h functions if you can.
Yes, the conio.h functions are smaller and faster (I believe they directly run kernal routines), while the ones in stdio.h support scrolling (which you may not need).hawk wrote:Be cautious about using printf() unless you really need to. It's part of stdio.h module and is quite large.pallas wrote:here is a good deal of info on the main functions available:
http://www.cc65.org/doc/funcref.html
remember you can printf() or cprintf() the petscii chars, like the "reversed heart", as you'd do in basic:
printf("\x93 ...... "); // clear the screeen than print something
You're better to try and keep to the conio.h functions if you can.
Pallas - OPByte
http://www.opbyte.it/vic20/
http://www.opbyte.it/vic20/