Jump to content
IGNORED

[IntyBASIC] Creating and printing packed strings


Recommended Posts

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:-

post-21935-0-46155800-1458842836_thumb.gif

 

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...