+Karl G Posted February 28, 2020 Share Posted February 28, 2020 I'm not having luck working with the full ascii characterset in 160A mode. I modified the "hello world" sample to change the displaymode and changed my string lengths accordingly, but the text lines end up garbled or missing: The code for the modified sample file is below, and also zipped up and attached with the included atascii.png. displaymode 160A rem **background color... BACKGRND=$0 rem **set the height of characters and sprites... set zoneheight 8 rem **import the characterset png... incgraphic atascii.png 160A rem **set color of 320A text palette 0... P0C2=$0F : P0C1=$0F : P0C3=$0F rem **set the current character set... characterset atascii rem **set the letters represent each graphic character... alphachars ASCII clearscreen plotchars 'Hello World!' 0 0 0 plotchars 'It`s good to be here' 0 0 1 plotchars '12345678901234567890' 0 0 4 main drawscreen goto main hello160a.zip Quote Link to comment Share on other sites More sharing options...
+Karl G Posted February 28, 2020 Author Share Posted February 28, 2020 D'oh! I just realized that I forgot to set doublewide. That makes it look slightly better, but still not right: Quote Link to comment Share on other sites More sharing options...
+SmittyB Posted February 28, 2020 Share Posted February 28, 2020 I've found the placement of the double wide command in the code can change how things like this behave. Maybe try experimenting with calling it earlier or later. 1 1 Quote Link to comment Share on other sites More sharing options...
+Karl G Posted February 28, 2020 Author Share Posted February 28, 2020 Thanks @SmittyB - you were correct. When I put "set doublewide on" before displaymode instead of after, it worked fine. This should probably be added to the documentation for the benefit of other clueless newbies like myself. Quote Link to comment Share on other sites More sharing options...
RevEng Posted February 28, 2020 Share Posted February 28, 2020 https://www.randomterrain.com/7800basic.html#program_configuration "7800basic has a series of “set” commands you may use to customize the 7800basic environment configuration. These should be called close to the top of your program, and each particular set command should only be called once." Quote Link to comment Share on other sites More sharing options...
+Karl G Posted February 28, 2020 Author Share Posted February 28, 2020 In my revised version, it was line #2 after the displaymode line. If displaymode should come after the set commands, then maybe it would be useful to say so explicitly. Definitely not a criticism - just trying to think of what could help others who might be similarly confused. Quote Link to comment Share on other sites More sharing options...
RevEng Posted February 28, 2020 Share Posted February 28, 2020 Ok. I'll update the manual so it says that set commands should happen before regular statements, at the top. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted March 1, 2020 Author Share Posted March 1, 2020 Oh, and one more minor request - it would be nice if the included atascii.png file eventually contained the 4 printable ASCII characters after "z". It did work as expected when I e.g. added a pipe symbol to the correct position, and included a pipe in my plotchars line, though. Quote Link to comment Share on other sites More sharing options...
RevEng Posted March 1, 2020 Share Posted March 1, 2020 Yep, sounds good. 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.