Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #745 > unrolled thread
| Started by | krussell.co@gmail.com |
|---|---|
| First post | 2013-07-15 10:59 -0700 |
| Last post | 2013-07-15 17:43 -0700 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.sys.apple2.programmer
Get character at position in 80-column mode krussell.co@gmail.com - 2013-07-15 10:59 -0700
Re: Get character at position in 80-column mode D Finnigan <dog_cow@macgui.com> - 2013-07-15 21:32 +0000
Re: Get character at position in 80-column mode BLuRry <brendan.robert@gmail.com> - 2013-07-15 17:43 -0700
| From | krussell.co@gmail.com |
|---|---|
| Date | 2013-07-15 10:59 -0700 |
| Subject | Get character at position in 80-column mode |
| Message-ID | <d18c6b7c-d170-417f-9d37-09a8d8c290f9@googlegroups.com> |
Hi there, There was a post here about getting a character at a given position on the screen in 40-column mode using SCRN. How can I get a character at a given position in 80-column mode? I can find nothing about this anywhere. I'm programming in Applesoft BASIC. Thanks for any help!
[toc] | [next] | [standalone]
| From | D Finnigan <dog_cow@macgui.com> |
|---|---|
| Date | 2013-07-15 21:32 +0000 |
| Message-ID | <dog_cow-1373923961@macgui.com> |
| In reply to | #745 |
krussell.co wrote: > Hi there, > > There was a post here about getting a character at a given position on the > screen in 40-column mode using SCRN. How can I get a character at a given > position in 80-column mode? I can find nothing about this anywhere. On page 188 of The New Apple II User's Guide: "one may use PEEK(36) to find the current cursor column. Likewise, to find the current cursor row, use PEEK(37). It will return a number between 0 and 23, representing top and bottom of the screen, respectively." Works in 40 and 80 columns. -- ]DF$ Apple II Book: http://macgui.com/newa2guide/ Usenet: http://macgui.com/usenet/ <-- get posts by email! Apple II Web & Blog hosting: http://a2hq.com/
[toc] | [prev] | [next] | [standalone]
| From | BLuRry <brendan.robert@gmail.com> |
|---|---|
| Date | 2013-07-15 17:43 -0700 |
| Message-ID | <72d4c802-f4cd-493a-abd7-c2295dce6a89@googlegroups.com> |
| In reply to | #747 |
On Monday, July 15, 2013 4:32:43 PM UTC-5, D Finnigan wrote: > krussell.co wrote: > > > Hi there, > > > > > > There was a post here about getting a character at a given position on the > > > screen in 40-column mode using SCRN. How can I get a character at a given > > > position in 80-column mode? I can find nothing about this anywhere. > > > > On page 188 of The New Apple II User's Guide: > > > > "one may use PEEK(36) to find the current cursor column. Likewise, to find > > the current cursor row, use PEEK(37). It will return a number between 0 and > > 23, representing top and bottom of the screen, respectively." > > > > Works in 40 and 80 columns. > > > > -- > > ]DF$ > > Apple II Book: http://macgui.com/newa2guide/ > > Usenet: http://macgui.com/usenet/ <-- get posts by email! > > Apple II Web & Blog hosting: http://a2hq.com/ You can probably make use of the 80STORE and PAGE2 switches to read only the AUX video memory when doing SCRN. In which case, if int(x/2) = (x/2) then (set up aux) else (set up main).... afterwards use scrn on int(x/2),y and it *should* work as long as the page2/80store switches don't change. -B
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.apple2.programmer
csiph-web