kensu Posted March 21, 2013 Share Posted March 21, 2013 Does anyone know how to display inverse characters when using cc65? The only method I've come across involve either using Print #6 (which even if it has an analog in cc65 is useless, since I'm loading the characters directly into screen memory using memcpy). How is this handled in assembler? Quote Link to comment Share on other sites More sharing options...
danwinslow Posted March 21, 2013 Share Posted March 21, 2013 Turn on bit 7 I think. And it only applies to gr. 0 style characters. Quote Link to comment Share on other sites More sharing options...
Synthpopalooza Posted March 21, 2013 Share Posted March 21, 2013 (edited) ATASCII > 127 makes inverse chars. For Graphics 0 it inverses the characters. For Antic 4/5 it replaces PF2 (bit pair 11) with PF3. And for Antic 6/7 (Graphics 1) it enables the high ranges (PF2-PF3) of characters. Edited March 21, 2013 by Synthpopalooza Quote Link to comment Share on other sites More sharing options...
Irgendwer Posted March 22, 2013 Share Posted March 22, 2013 (edited) Does anyone know how to display inverse characters when using cc65? You could try something like that: #define INV((a)) ((a)|128) ... char inverseString[] ={ INV('H'),INV('e'),INV('l'),INV('l'),INV('o'),INV('!'),0}; ... Edited March 22, 2013 by Irgendwer 1 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.