nebpehtira Posted July 7, 2021 Share Posted July 7, 2021 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! Quote Link to comment Share on other sites More sharing options...
danwinslow Posted July 7, 2021 Share Posted July 7, 2021 Typically this is achievable if the devices in question use (or at least respond to) the E: and S: handlers in a standard way. If they do not, then it becomes much more difficult. 1 Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted July 7, 2021 Share Posted July 7, 2021 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. 1 Quote Link to comment Share on other sites More sharing options...
nebpehtira Posted July 7, 2021 Author Share Posted July 7, 2021 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 Quote Link to comment Share on other sites More sharing options...
dmsc Posted July 7, 2021 Share Posted July 7, 2021 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! 2 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.