Print text at X,Y in assembly language

Software discussion & Emulation
Post Reply
Lardo Boffin
Posts: 302
Joined: Thu Oct 24, 2019 11:47 am

Print text at X,Y in assembly language

Post 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!
TC-01 + einSDein + TM-01 + TK-02 + gotek
fatbob_gb
Posts: 25
Joined: Thu Oct 24, 2019 6:21 pm

Re: Print text at X,Y in assembly language

Post by fatbob_gb »

Setting X position to scratchpad area FB4A and Y position to FB4B should do the job.
Lardo Boffin
Posts: 302
Joined: Thu Oct 24, 2019 11:47 am

Re: Print text at X,Y in assembly language

Post 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.
TC-01 + einSDein + TM-01 + TK-02 + gotek
fatbob_gb
Posts: 25
Joined: Thu Oct 24, 2019 6:21 pm

Re: Print text at X,Y in assembly language

Post 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.
Lardo Boffin
Posts: 302
Joined: Thu Oct 24, 2019 11:47 am

Re: Print text at X,Y in assembly language

Post by Lardo Boffin »

Thanks!
TC-01 + einSDein + TM-01 + TK-02 + gotek
retrogamer
Posts: 77
Joined: Tue Jun 01, 2021 12:00 am

Re: Print text at X,Y in assembly language

Post 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 :)
Lardo Boffin
Posts: 302
Joined: Thu Oct 24, 2019 11:47 am

Re: Print text at X,Y in assembly language

Post by Lardo Boffin »

I have just received a pile of Einstein Users from Mike so will see if I have that one thanks!
TC-01 + einSDein + TM-01 + TK-02 + gotek
Post Reply