×   Main Menu ALL The 8BS News Manuals (New menu) Links Worth a Look Tools Disc and Basic Webring Site Map 8BS Guestbook Old Guest Book Me The Barnsley Rovers   
8-Bit Software

The BBC and Master Computer Public Domain Library

AAA3 POS

Submitted by Steve Fewell

Description:

Call VPOS routine to do the following:
     * Call OSBYTE #&86 to obtain the Text cursor position. After this call, X contains the horizontal position of the
        cursor (POS) and Y contains the vertical position of the cursor (VPOS).
     * Set the IWA to the 1-byte VPOS value (in Y) [bytes &2B-&2D of the IWA will be zero].

Store X (The POS value) in location &2A (now the IWA contains the POS value -> locations &2B-&2D have
already been zeroed by the VPOS routine), and exit.


Disassembly for the POS routine

AAA3   032 188 170 20 BC AA JSR &AABC VPOS
AAA6 * 134 042 86 2A STX &2A
AAA8 ` 096 60 RTS

 


 Back to 8BS
Or