Jump to content

ISO mode


kelli217
 Share

Recommended Posts

I am of the opinion that whenever practical, text-oriented programs should support ISO mode.

But the question becomes, "When is it practical?"

Part of that question hinges on what are the tradeoffs. One thing I can think of right away is the lack of PET graphics. They're very useful in implementing user interface elements; text-mode programs using ISO mode will have to work around this.

Any others?

Link to comment
Share on other sites

Word processors. Code editors.

Those are two things that benefit from ISO mode. Word processors, because many of the symbols with diacritical marks and accents don't exist in PETSCII. 

Likewise, C source code requires the use of symbols that don't exist in PETSCII: {, }, \, and |. So we need ISO mode for C editors. However, it sure would be convenient if it was possible to display PETSCII while editing the text in C programs. So editors really need a hotkey or menu command to switch between ISO and PETSCII modes on the fly. I don't think you can really count on one mode or the other as the "best" mode, even within a single document at times. 

 

  • Like 2
Link to comment
Share on other sites

1 minute ago, kelli217 said:

Can one layer be in PETSCII mode and one layer be in ISO mode? That way, ISO characters for text could be overlaid with PET graphics for UX elements.

The 2 layers can have different tile-sets (or fonts). So yes - you could use the 2nd layer with even a custom-made tile set. It will just be a bit complicated to combine the 2 in a meaningful way.

You can see this in my "Brixx" game where the graphics for the bicks, frame and background is one layer and the high-score numbers etc is the other one.

Be aware that the Kernal functions will only work with one of the layers, I think it's always "layer 1".

  • Like 1
Link to comment
Share on other sites

1 hour ago, AndyMt said:

The 2 layers can have different tile-sets (or fonts). So yes - you could use the 2nd layer with even a custom-made tile set. It will just be a bit complicated to combine the 2 in a meaningful way.

You can see this in my "Brixx" game where the graphics for the bicks, frame and background is one layer and the high-score numbers etc is the other one.

Be aware that the Kernal functions will only work with one of the layers, I think it's always "layer 1".

Actually, it can more convenient if Layer 1 is the PETSCII layer, since then menus and otherwise "pop-ups" can have the pretty PETSCII drawing characters, while the underlying "page" on layer 0 can be selectable between ISO and PETSCII.

  • Like 1
Link to comment
Share on other sites

8 hours ago, kelli217 said:

Can one layer be in PETSCII mode and one layer be in ISO mode? That way, ISO characters for text could be overlaid with PET graphics for UX elements.

Yes, but you will have to copy the secondary character set to it's own space in VRAM. I show an example of how to do that in my last tutorial video: 

 

  • Like 3
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.

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.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use