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!
Print text at X,Y in assembly language
-
- Posts: 302
- Joined: Thu Oct 24, 2019 11:47 am
Print text at X,Y in assembly language
TC-01 + einSDein + TM-01 + TK-02 + gotek
Re: Print text at X,Y in assembly language
Setting X position to scratchpad area FB4A and Y position to FB4B should do the job.
-
- Posts: 302
- Joined: Thu Oct 24, 2019 11:47 am
Re: Print text at X,Y in assembly language
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
Re: Print text at X,Y in assembly language
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.
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.
-
- Posts: 302
- Joined: Thu Oct 24, 2019 11:47 am
-
- Posts: 77
- Joined: Tue Jun 01, 2021 12:00 am
Re: Print text at X,Y in assembly language
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
Further discussion of all MCALs is also in ‘Albert Revealed’. This document also includes a full list of the scratchpad locations.
Enjoy
-
- Posts: 302
- Joined: Thu Oct 24, 2019 11:47 am
Re: Print text at X,Y in assembly language
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