GroovyBee Posted March 24, 2016 Share Posted March 24, 2016 Heres a quick and dirty example of using an assembly language macro to create a packed string and a function to display it on screen. The string can contain upper and lower case letters, digits etc. and is restricted to the first 8 foreground colours for the GROM font. Screenshot:- The source code:- BString.bas The ROM:- BString.rom If you put the ROM into a hex file editor you can see that the strings are packed in a human readable format. Any questions or problems, let me know. Enjoy! @nanochess: Feel free to include the example in the next release of IntyBASIC. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted March 24, 2016 Share Posted March 24, 2016 I've spotted a comment started with ; when testing with IntyBASIC Edit: also added along your 4-pixel wide font thread to the IntyBASIC compiler resources thread. 1 Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted March 24, 2016 Author Share Posted March 24, 2016 I've spotted a comment started with ; when testing with IntyBASIC Grrr! Well spotted! I'll fix that in a moment. Edit: also added along your 4-pixel wide font thread to the IntyBASIC compiler resources thread. Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted March 24, 2016 Author Share Posted March 24, 2016 This is the source code with the compiler warning fixed :- BString.bas 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.