Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2 > #16614
| From | Benoit0123 <bgilon@free.fr> |
|---|---|
| Newsgroups | comp.sys.apple2 |
| Subject | Re: How do I access the HGR screen from Assembly? |
| Date | 2013-10-28 07:20 +0000 |
| Organization | Mac GUI |
| Message-ID | <benoit0123-1382944810@macgui.com> (permalink) |
| References | <039ba9d3-4960-4e48-a416-e0477f426b20@googlegroups.com> <0925033c-4c17-4242-a209-50e54be0ab48@googlegroups.com> |
ep88theman wrote: > On Sunday, October 27, 2013 5:22:10 PM UTC-7, gid...@sasktel.net wrote: >> On Sunday, 27 October 2013 15:16:47 UTC-6, Antoine Vignau wrote: >> >> > Learn softswitches >> >> >> >> > c050 >> >> > c052/c053 >> >> > c054/c055 >> >> > c057 >> >> >> >> > Av >> >> >> >> >> >> >> >> Better yet. Learn Applesoft entry points. >> >> >> >> $F3D8 - HGR2 >> >> $F3E2 - HGR >> >> $F605 - XDRAW >> >> $F661 - DRAW >> >> $F6E9 - HCOLOR >> >> $F6FD - HPLOT >> >> $F721 - ROT >> >> $F727 - SCALE > > > Just realized there's a programmers group as well, probably should have > posted this there. > > So the applesoft HGR routine worked to clear the HGR screen, but how do I > use the HPLOT routine example. Do I load the column value to Y (e.g. LDY > #$0004) and the row to the accumulator and then "JRE $F6FD "? Cause that > didn't work. Tried different colors. What's the secret to plotting on > the > HGR screen from assembly? > Have you tried MYCOLOR = 7 COORDXFROM = 260 COORDYFROM = 100 JSR $F3E2 ;Set HGR page 1, displays page 1, draws into page 1 LDX #MYCOLOR JSR $F6F0 ;Calls HCOLOR with color index in X reg. LDX #COORDXFROM LDY #>COORDXFROM LDA #COORDYFROM JSR $F457 ;Calls HPLOT to plot pixel on current page LDA #COORDXTO LDX #>COORDXTO LDY #COORDYTO JSR $F53A ;Calls HLINE to plot a line to "TO" pixel coordinates Applesoft ROM being selected in bank $E0-$FF Otherwise for details upon hires graphics "from the author's mouth", here is a link to reference data: http://www.lulu.com/shop/bill-martens-and-brian-wiser/the-wozpak-special-edition-steve-wozniaks-apple-1-apple-computers/paperback/product-21145348.html#ratingsReview Otherwise I believe that there is an archive of "call apple: all about applesoft" which gives details upon Hires plotting routines within Applesoft and thus to help authors optimize the calls for graphic primitives within the ROM. HTHATS, BenoƮt
Back to comp.sys.apple2 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How do I access the HGR screen from Assembly? ep88theman@gmail.com - 2013-10-27 12:34 -0700
Re: How do I access the HGR screen from Assembly? Marco Verpelli <mverpelli@libero.it> - 2013-10-27 13:31 -0700
Re: How do I access the HGR screen from Assembly? Antoine Vignau <antoine.vignau@laposte.net> - 2013-10-27 14:16 -0700
Re: How do I access the HGR screen from Assembly? gids.rs@sasktel.net - 2013-10-27 17:22 -0700
Re: How do I access the HGR screen from Assembly? Steve Nickolas <usotsuki@buric.co> - 2013-10-28 00:40 +0000
Re: How do I access the HGR screen from Assembly? ep88theman@gmail.com - 2013-10-27 18:01 -0700
Re: How do I access the HGR screen from Assembly? Benoit0123 <bgilon@free.fr> - 2013-10-28 07:20 +0000
Re: How do I access the HGR screen from Assembly? Benoit0123 <bgilon@free.fr> - 2013-10-28 07:21 +0000
Re: How do I access the HGR screen from Assembly? gids.rs@sasktel.net - 2013-10-29 21:35 -0700
Re: How do I access the HGR screen from Assembly? D Finnigan <dog_cow@macgui.com> - 2013-10-28 20:23 +0000
Re: How do I access the HGR screen from Assembly? D Finnigan <dog_cow@macgui.com> - 2013-10-28 15:40 +0000
Re: How do I access the HGR screen from Assembly? Cyril Thibout <info@pulsar-informatique.com> - 2013-10-29 09:39 -0700
Re: How do I access the HGR screen from Assembly? Egan Ford <datajerk@gmail.com> - 2013-10-29 16:10 -0600
Re: How do I access the HGR screen from Assembly? Antoine Vignau <antoine.vignau@laposte.net> - 2013-10-29 19:06 -0700
csiph-web