Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:53 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Colour Maximite print problem

Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 04:54am 13 Mar 2019
Copy link to clipboard 
Print this post

I'm having problems with the Maximite PRINT @(x,y) command. Running the program:

  Quote  CLS
LINE (0,0)-(45,8), , B
PRINT @(0,0), "X"
LOCATE 0,0: PRINT "O"


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: Australia
Posts: 6283
Posted: 05:52am 13 Mar 2019
Copy link to clipboard 
Print this post

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'
  Quote   CLS
'LINE (0,0)-(45,8), , B
PRINT @(0,10), "X"
LOCATE 0,40: PRINT "0123456789"
END



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: Australia
Posts: 1642
Posted: 06:09am 13 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 06:33am 13 Mar 2019
Copy link to clipboard 
Print this post

V5.3 beta
VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 06:46am 13 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 07:01am 13 Mar 2019
Copy link to clipboard 
Print this post

Its not an official release.
The graphics is the same as V4.5C

VK7JH
MMedit
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 07:12am 13 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1114
Posted: 08:41am 13 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 09:19am 13 Mar 2019
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4044
Posted: 07:58am 14 Mar 2019
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025