![]() |
Forum Index : Microcontroller and PC projects : Colour Maximite print problem
Author | Message | ||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
I'm having problems with the Maximite PRINT @(x,y) command. Running the program: prints a box 45 pixels by 8 starting from the top right hand corner as expected but the "X" is printed just to the right of the box NOT in the top right hand corner where I expected it to be printed. The LOCATE command DOES cause the "O" to be printed in the top right hand of the screen. I drew the box just to get an idea if how big the x offset is. Am I doing something wrong or is this a bug? This is version 4.5 (not 4.5C) but I see no mention of this problem. Thanks Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I don't know if it's intended, but in the data sent to a terminal, there is a <TAB> chracter just before hte 'X' 3E 20 52 55 4E 20 0A 1B 5B 32 4A 1B 5B 48 1B 5B > RUN ..[2J.[H.[ 32 4A 1B 5B 48 1B 5B 30 3B 30 66 09 58 0A 1B 5B 2J.[H.[0;0f.X..[ 33 3B 30 66 30 31 32 33 34 35 36 37 38 39 0A 3E 3;0f0123456789.> 20 Jim VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Thanks Jim, That would do it. I'll stick with the LOCATE command for now and hope Geoff fixes it with the new version. What version of CMM MMBasic are you using? Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
V5.3 beta VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Oh, I wasn't aware that Geoff had released anything on the Maximite since 4.5C. I can't find any mention of it. Bill Keep safe. Live long and prosper. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Its not an official release. The graphics is the same as V4.5C VK7JH MMedit |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Thanks Jim, I guessed that was the case. If it is a pre-release of the new version based on the Micromite software can you please report the problem to Geoff in case he doesn't see this? Bill Keep safe. Live long and prosper. |
||||
panky![]() Guru ![]() Joined: 02/10/2012 Location: AustraliaPosts: 1114 |
Bill, The problem may be in your syntax of the PRINT @ command. According to the manual, there is no comma between the co-ordinate argument and the printable data. That is, the comma is causing the actual position to effectively be one tab position further out ( as Jim indicated ). Thus, your program should be :- CLS 'LINE (0,0)-(45,8), , B PRINT @(0,10) "X" LOCATE 0,40: PRINT "0123456789" END Note there is no comma between PRINT @(0,10) and the data argument "X" (I think MMBasic ignores the space). panky ... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it! |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Thank you Panky, You are right of course. That IS the problem. I don't know where the comma came from, I swear I did RTFM several times and still didn't pick it up. Proves once again the value of the forum. Sorry to waste everyone's time Bill Keep safe. Live long and prosper. |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
I suppose it looks a little like: PRINT #1, "something" where every BASIC I've met requires the comma, which has the advantage that if you wanted to: PRINT #1, -X, -Y it works as expected, whereas if the comma wasn't required: PRINT #1 -X, -Y would be likely to try to print to channel 1-X John |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |