Jump to content
IGNORED

Making an "80 column agnostic" utility


Recommended Posts

Hi All,

 

I'm putting together ideas for a utility in Atari Basic that will need an 80 column display, but would like it to be hardware agnostic (i.e. not fussy about either XEP-80 or VBXE board etc.). Is this even a possibility? If anyone could point me towards documentation / examples for Atari Basic code that deals with hardware driven 80 col displays, would be super grateful :)

 

Thanks!

 

 

Link to comment
Share on other sites

I just published such a utility:

 

As Dan says, the main thing is that the user has the right handler loaded. Then your program can just PEEK RMARGN to find out how wide the screen is.

 

I did find that this doesn't work with the enhanced screen mode in Altirra, so there may be other drivers that don't set RMARGN properly.

  • Like 1
Link to comment
Share on other sites

1 hour ago, Kaj de Vos said:

I just published such a utility:

 

As Dan says, the main thing is that the user has the right handler loaded. Then your program can just PEEK RMARGN to find out how wide the screen is.

 

I did find that this doesn't work with the enhanced screen mode in Altirra, so there may be other drivers that don't set RMARGN properly.

fantastic work, and good advice! Thank you :)

Link to comment
Share on other sites

i!

11 hours ago, nebpehtira said:

Hi All,

 

I'm putting together ideas for a utility in Atari Basic that will need an 80 column display, but would like it to be hardware agnostic (i.e. not fussy about either XEP-80 or VBXE board etc.). Is this even a possibility? If anyone could point me towards documentation / examples for Atari Basic code that deals with hardware driven 80 col displays, would be super grateful :)

 

Thanks!

 

As others have said, if you don't access the video memory directly and only use standard I/O to the "E:" driver, your program just work in 80 column mode.

 

The FastBasic editor is written in BASIC, and adapts to any number of columns: https://github.com/dmsc/fastbasic/blob/master/src/editor.bas

 

Have Fun!

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