Harry Potter Posted December 25, 2021 Share Posted December 25, 2021 Hi! I'm almost done with MadLibAtari. The last thing I need is to print the story's title in reverse. The program calls the revers() cc65 function to turn on reverse mode then aux_print() then revers() to turn off reverse mode, and aux_print() reads a byte from aux memory and prints it using putchar() until NULL is found. However, the string prints in normal video. How do I print in reverse video? Quote Link to comment Share on other sites More sharing options...
danwinslow Posted December 26, 2021 Share Posted December 26, 2021 https://www.atariarchives.org/c3ba/appendixa.php https://www.atariarchives.org/c2bag/page009.php I found these in 15 seconds using the phrase "atari inverse characters print" in google. Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted December 26, 2021 Share Posted December 26, 2021 Just do something like this #include <stdio.h> #include <string.h> char st[]={"hello world"}; void main(void) { int i; printf("%s\n",st); for(i=0;i<strlen(st);i++) *(st+i)=*(st+i)+128; printf("%s\n",st); } Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted December 26, 2021 Author Share Posted December 26, 2021 Thank you. Quote Link to comment Share on other sites More sharing options...
Eric Rousseau Posted February 7, 2022 Share Posted February 7, 2022 Thanks Danwinslow for the infos. I saved them and will look at it soon when I'll get back to my Atari project... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.