Page 1 of 1

Print text at X,Y in assembly language

Posted: Sat Oct 14, 2023 2:31 pm
by Lardo Boffin
Hello all

Anyone know how to PRINT text at a specified X,Y location in assembly?

I can see built in routines to do graphics and print text at the current cursor position but have not found how to set the cursor position.

Thanks!

Re: Print text at X,Y in assembly language

Posted: Sun Oct 15, 2023 9:33 pm
by fatbob_gb
Setting X position to scratchpad area FB4A and Y position to FB4B should do the job.

Re: Print text at X,Y in assembly language

Posted: Mon Oct 16, 2023 8:04 am
by Lardo Boffin
fatbob_gb wrote:
Sun Oct 15, 2023 9:33 pm
Setting X position to scratchpad area FB4A and Y position to FB4B should do the job.
Thanks!

Is there a source of this type of information somewhere? I have the manuals that came with my Tatung and a copy of the Einstein Assembly Language course but thats it.

Re: Print text at X,Y in assembly language

Posted: Mon Oct 16, 2023 1:26 pm
by fatbob_gb
I found the scratchpad definitions in the Einstein Compendium here: "https://mikesretrotech.co.uk/userfiles/ ... n/manuals/".

I could have sworn that I had once read a list of them in a Magazine with better descriptions of them all but now I cant locate them at all.

Re: Print text at X,Y in assembly language

Posted: Mon Oct 16, 2023 2:29 pm
by Lardo Boffin
Thanks!

Re: Print text at X,Y in assembly language

Posted: Fri Nov 03, 2023 1:34 pm
by retrogamer
The MCAL routines for MOS 1.21 are listed in Tatung Einstein User Vol. 1 No. 4 September 1985. This is a complete list with a full explanation of each call. It’s an interesting read. For example, writing a character to the screen advances the cursor automatically, but there is an alternative command that avoids scrolling which would be useful for instance if the cursor is at the bottom right of the screen.

Further discussion of all MCALs is also in ‘Albert Revealed’. This document also includes a full list of the scratchpad locations.

Enjoy :)

Re: Print text at X,Y in assembly language

Posted: Sat Nov 04, 2023 11:32 am
by Lardo Boffin
I have just received a pile of Einstein Users from Mike so will see if I have that one thanks!