🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #23820

Re: Info-Atari16 Digest V86 #32

#23820
From: sgstree Samuel Streeper
Date: Sat, 06 Dec 1986 04:58
19 lines
1355 bytes
To the person who asked about how to save the cursor position:

The wrong way - if you output esc-j esc-k (save cursor immediately followed
by restore cursor), you will find that upon return d0 has cursor x 
coordinate, and d1 has cursor y coordinate.

A better way:
(pointed out to me by jwahar bammi)
After line-a initialization register a0 points to the line a variables.
Assuming that a0 has that pointer,

	move.w -28(a0),d0
	move.w -26(a0),d1

will leave x in d0, y in d1. I wish I could find documentation on the line
a variables. Can any one help out? For example, I have noticed that
the mouse coordinates may be found at -602(a0) and -600(a0).
Are these stable?
                             Samuel Streeper
Technical Details
Message-ID: <8612060458.AA20395@polyslo.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!sgstree@cad.Berkeley.EDU@polyslo.UUCP
References: <8612051550.AA07403@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!sgstree@cad.Berkeley.EDU@polyslo.UUCP
From: sgstree@cad.Berkeley.EDU@polyslo.UUCP (Samuel Streeper)
Newsgroups: comp.sys.atari.st
Subject: Re: Info-Atari16 Digest V86 #32
Message-ID: <8612060458.AA20395@polyslo.UUCP>
Date: Fri, 5-Dec-86 23:58:49 EST
Article-I.D.: polyslo.8612060458.AA20395
Posted: Fri Dec  5 23:58:49 1986
Date-Received: Sun, 7-Dec-86 04:25:20 EST
References: <8612051550.AA07403@ucbvax.Berkeley.EDU>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 19