Jump to content

Photo

Double Hi-Res Graphics


102 replies to this topic

#1 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • 56 posts

Posted Thu Aug 13, 2015 4:45 PM

Does anyone have any programming examples or

information about Double Hi-Res Graphics?

 

In BASIC from Applesoft it's not possible,

apart the Beagle Bros Graphics which

has it's own routines that they have written.

 

I have found this on the web which

can be of use for simple drawing.

http://www.atarimaga...ue89/Chrome.php

 

I am looking for arcade animation (as there are more colors).



#2 Osgeld OFFLINE  

Osgeld

    River Patroller

  • 3,482 posts
  • Location:Nashville, TN

Posted Fri Aug 14, 2015 6:06 AM

Remember there is no graphics chip so more colors, mode resolution, and more complicated routines on a already sparse system...

#3 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Fri Aug 14, 2015 7:39 PM

My apologies. I really meant that I am

looking for the workings of how double hi-res

works in software. Programming examples

or any info pointing to this direction.



#4 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Sun Aug 16, 2015 7:23 PM

My apologies. I really meant that I am
looking for the workings of how double hi-res
works in software. Programming examples
or any info pointing to this direction.



Apple IIe
#3: Double High-Resolution Graphics


ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK.INFO.TXT
ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK

PDF Page 19 and 20
http://www.applelogi...GSTECHINTRO.pdf

Maybe something here:
http://www.verycompu...d530796f6_1.htm


MarkO

#5 Iamgroot OFFLINE  

Iamgroot

    Star Raider

  • 90 posts
  • Location:Saskatchewan

Posted Mon Aug 17, 2015 11:05 AM

The Graphics Magician disk has all the software needed for drawing on the dbl-hi-res screen and includes animation routines.  The game "Black Cauldron" uses the graphics and animation routines from the Graphics Magician disk.

 

To try to understand graphics and animation in dbl-hi-res takes more than one session.  Nibble magazine has a 10 part series including animation routines that explains it pretty good.

 

Nibble magazine also published and article called "Double Stuff" including software that uses normal hi-res shape tables for animation.

 

I wrote an applesoft program that allows you to plot on the dbl-hi-res screen.  But animation is a little more complex.

 

5 HGR : POKE 49237,0: CALL 62450 : REM  clear hires screen, then Auxiliary's memory part of the hires screen

6 POKE 49246,0: PG = 49236 : REM turn on ANNunciator 3 to display dbl-hi-res screen

7 SVN = 7: HCOLOR = SVN: P5 =.5

9 GOTO 100 : REM also try GOTO 140

10 X2 = X * 4: CL = CO: TMP = 8

20 FOR I = 3 TO 0 STEP - 1:BIT = CL >= TMP:CL = CL - BIT * TMP:TMP = TMP * .5

30 X1 = X2 + I:HCOLOR = SVN * BIT: GOSUB 40: NEXT : RETURN

40 XX = X1 / SVN:H = INT (XX) * P5:XX = INT ((INT(H) + (XX - INT (XX))) * SVN + P5)

50 POKE PG + (H= INT(H)),0: HPLOT XX,Y: POKE PG,0: RETURN

100 FOR CO = 0 TO 15

110 FOR X = C0 * 8 TO CO * 8 + 7: FOR Y = 0 TO 10: GOSUB 10: NEXT : NEXT

120 NEXT: END

140 HCOLOR = 7 : Y = 1: FOR X1 = 0 TO 559 : Y = INT ( X1 / 3): GOSUB 40 : NEXT : REM this plots 560 points diagonally in black/white mode



#6 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Mon Aug 17, 2015 4:21 PM

ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK.INFO.TXT
ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK

Thanks for the links Marko.

I am unable to goto the above links as it does not display

anything that I can read. Is there another way I can

access this?



#7 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Mon Aug 17, 2015 4:51 PM

 

ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK.INFO.TXT
ftp://ftp.cuhk.edu.hk/pub/oldies/apple2/unsorted/DHR.BAS.SHK

Thanks for the links Marko.

I am unable to goto the above links as it does not display

anything that I can read. Is there another way I can

access this?

 

 

.SHK is a SHrinKit Archive. 

 

The .TXT is a regular Text File...

 

CiderPress will UnPack it as well as some other Archivers.

 

MarkO



#8 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Tue Aug 18, 2015 5:15 PM

 

To try to understand graphics and animation in dbl-hi-res takes more than one session.  Nibble magazine has a 10 part series including animation routines that explains it pretty good.

 

Nibble magazine also published and article called "Double Stuff" including software that uses normal hi-res shape tables for animation.

 

 

Yes it would be great if you could access these articles. The only way I am aware is that

you have to buy the magazines as a bundle.



#9 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Tue Aug 18, 2015 5:17 PM

 

.SHK is a SHrinKit Archive. 

 

The .TXT is a regular Text File...

 

CiderPress will UnPack it as well as some other Archivers.

 

MarkO

 

When I download the text file it just displays random letters. ( I am using a PC obviously) So I

do not want to approach the .shk file in case that also happens.



#10 magnusfalkirk OFFLINE  

magnusfalkirk

    Chopper Commander

  • 177 posts
  • Location:Western Oklahoma

Posted Wed Aug 19, 2015 12:06 PM

 

When I download the text file it just displays random letters. ( I am using a PC obviously) So I

do not want to approach the .shk file in case that also happens.

That's strange, because when I click on the link I get a readable article that I copied to my laptop computer.



#11 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Wed Aug 19, 2015 3:51 PM

 

Yes it would be great if you could access these articles. The only way I am aware is that

you have to buy the magazines as a bundle.

 

You can buy the Nibble Magazines, a Year at a Time, directly from the Editor, Mike Harvey. 

 

I have bought 1983 & 1985 and the Sourer Assembler and MacroSoft Compiler.

 

MarkO



#12 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Wed Aug 19, 2015 4:04 PM

When I download the text file it just displays random letters. ( I am using a PC obviously) So I
do not want to approach the .shk file in case that also happens.

 
 
CiderPress is a Windows Application.   I get regular Text with Windows 7, Windows 81, and Mac OS X 10.10.4.
 


Also, According to the Nibble Disk Archive, 1988 has the "Double Hi-Res Display".

GOTO the Page in the Previous Link, and Download the "The Stoddard Major Nibble Programs Collection (in a zip file)".

MarkO

Edited by MarkO, Wed Aug 19, 2015 4:04 PM.


#13 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Wed Aug 19, 2015 4:20 PM

That's strange, because when I click on the link I get a readable article that I copied to my laptop computer.

Really.What does it say?



#14 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Wed Aug 19, 2015 4:21 PM

 
 
CiderPress is a Windows Application.   I get regular Text with Windows 7, Windows 81, and Mac OS X 10.10.4.
 


Also, According to the Nibble Disk Archive, 1988 has the "Double Hi-Res Display".

GOTO the Page in the Previous Link, and Download the "The Stoddard Major Nibble Programs Collection (in a zip file)".

MarkO

 

Excellent. This is great. That's for the tip.



#15 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Wed Aug 26, 2015 8:29 PM

Really.What does it say?

                            Double Hires Subroutines
                                  Written by
                               Allen Watson III

From an Article in "Apple Orchard" magazine January 1984.

Assembled by Rick Fincher using the ORCA/M assembler by Hayden Software.


NOTE:

These routines are for the Apple //e with 128K, Apple //c, Laser 128 or other
Apple //e compatibles with 128K.

Your extended 80 col card must have the jumper installed that connects pin 50
and 55 of the Auxiliary Slot of the Apple IIe.  The Apple Extended 80 col card
comes with the jumper connected, I have a Titan Technologies Neptune board that
has the jumper pins but the jumper is not installed.  All you have to do is wrap
a piece of wire around the two posts so that there is a good connection.  Also
Titan technologies will send you the jumper (a small clip that fits over the two
pins) free of charge if you have one of their cards. Before you buy an extended
memory card be sure that there is a jumper on it.


ANOTHER NOTE:

Your Apple IIe must have a revision B motherboard to use the double hires
graphics.  To see if yours does, open it up and look for the part number of the
mother board along the back edge- it should be 820-0064-B.  If your number ends
in "A" you have a revision A board that you can have replaced free of charge by
your Apple dealer.  All you have to do is state that you have a need for the new
board, which of course you do if you want to do double Hires graphics!  It seems
that the IIe had already entered production before Apple discovered that Double
Hires was possible, so some of the earlier IIe machines have the old board.  The
jumper connects the annunciator to a circuit that forces the machine out of the
interleaving mode so that regular hires graphics are possible with the 80 col
card turned on. There weren't any soft switches left for this so Apple used the
anunciator to do this via the jumper on the extra memory card.

WARNING: DON'T USE AN EXTENDED 80 COL CARD WITH THE JUMPER INSTALLED ON A
REVISION A BOARD, YOUR COMPUTER WON'T WORK IF YOU DO.


LOCATION:

These routines were assembled at $6000 (Hex) and don't work when moved unless
they are re-assembled at a new location.  A listing of the assembler file was
uploaded to make this possible (see Machine Language below).  You can set LOMEM
to 25660 to move your program variables above the routines to give you a little
more room.


HOW TO USE:

To use the subroutines save the file on this board in the General download
section called DHIRES.BIN2 as a binary file and then use the FROM.BINARY or BLU
to unpack it.  It will create a file called DHIRES.SUBS on your disk.  BRUN this
file from Basic to prepare to use the double hires commands, or, if you are
using the routines from a Basic program, have your program BRUN this file.  Two
Basic programs that use these routines and this doc file will also be created.

Now we are ready to go.


TO USE THE ROUTINES FROM THE KEYBOARD OR APPLESOFT:

Use the following ampersand(&) commands.

1. &DG                  This initializes the double hires display.

2. &PEN                 This sets the line width to 1 for either black or white
                        drawing with 560 dot horizontal resolution. If you try
                        to draw in color in this mode you get bizarre effects.

3. &BRUSH               This sets the the line width to 4 for 16 color drawing.

4. &HUE = c             This set the drawing color where c is a number from 
                        0 to 15 representing the 16 LoRes colors. A number of
                        128 or greater sets reverse drawing.

5. &BKGND               This sets the entire background to whatever 
                        color has been selected by the &HUE= command.

6. &DOT AT x,y          This draws a dot of the current color and line width at
                        the x,y position where x is between 0 and 559 and y is
                        between 0 and 191.

7. &LINE TO x,y         This draws a line from either the last dot plotted or
                        the end of the last line drawn to the x,y position
                        where x and y are within the limits mentioned above.


RESOLUTION:

Colored lines are actually four dots wide so their resolution is no greater than
in the regular hires mode, but you have 16 colors to choose from and no
interference effects from mixing colors.  The &PEN command lets you draw with
true 560x192 resolution in black or white.  To get the best effects you can draw
outlines in black or white and then fill an area with color (See the demo
programs).


UNDESIRABLE EFFECTS:

Colored dots and lines can be drawn at any coordinate in the 560x192 range but
if you draw a colored dot past an x coordinate of 556 (Four dots from the right
of the screen) it will overlap to the extreme left of the screen on the same
scan line.  This is because colored dots are actually 4 dots wide and drawing
past 556 does not give enough room for the four dots to be drawn without wraping
around to the other side of the screen.  This does not occur when using & PEN
and a color of 0 or 15 (Black or white).


ERRORS:

Attempts to draw outside the 560x192 range, i.e. x between 0 and 559 and y
between 0 and 191, will cause a syntax error and a beep, just like with regular
hires.  So will a misspelling of the Ampersand commands, although they are
pretty tolerant of spaces between words of mult-word commands.


PROGRAMS USING DOUBLE HIRES:

I have also uploaded two demo programs that were also in Apple Orchard.  One is
called DHIRES.CUBE and the other DHIRES.COLORS. The first is a stack of 3-D
cubes drawn in all of the 16 colors.  The second is is a color wheel that shows
all 16 colors in swatches in order with the dark colors in the outer ring, the
medium colors in the middle ring (these are the regular hires colors) and the
light colors in the center ring.


MACHINE LANGUAGE:

If you wish to use these routines from assembly language either see a copy of
the magazine article or contact me on the NCSU Apple Users Group BBS
(919-783-9010) and I will be happy to send you a list of the entry points for
each function. I have also uploaded a copy of the assembler text listing.  The
original magazine listing used the Apple EDASM but I have ORCA/M so I made the
necessary changes.  The ORCA/M listing is what is on the board, but I'll send
you a copy of the EDASM listing if you want it or will help you convert it if I
can.


#16 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Fri Aug 28, 2015 7:33 PM

Mark O

Thanks for posting.


Edited by whiteplanet, Fri Aug 28, 2015 7:33 PM.


#17 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Sat Aug 29, 2015 7:22 PM

Mark O

Thanks for posting.

 

 

Not a Problem... 

 

I have been interested in doing some Double Hi-Res graphics myself...

 

So I have been collecting some links and utils...

 

 

MarkO



#18 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Tue Sep 1, 2015 9:41 AM

AUG-2015 Open Apple has a Segment on Double Hi-Res.
 
I haven't listened to it yet, so I don't know what Info is there, but since Quinn Dunki is one of the Hosts, she might have some "Brilliant Insight" into Double Hi-Res.
 
MarkO

#19 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Wed Sep 2, 2015 11:10 PM

Marko

 

Thanks for the tip. Will look it up.



#20 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Sun Sep 6, 2015 9:48 PM

And.....  This Just In, from SpeedyG..

 

upload of the pages related to
hires graphics
sound at the apple II
ampersand routines
macro routines
and several related topics.

 

 

MarkO



#21 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Sun Sep 6, 2015 11:53 PM

SpeedyG's Article is from the MAR-1985 Nibble Magazine, Page 58, ( PDF Page 60 )...

 

MarkO



#22 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Wed Sep 9, 2015 12:07 AM

AUG-2015 Open Apple has a Segment on Double Hi-Res.
 
I haven't listened to it yet, so I don't know what Info is there, but since Quinn Dunki is one of the Hosts, she might have some "Brilliant Insight" into Double Hi-Res.
 
MarkO

 

Mark O

 

I have just listened to the podcast. Unfortunately there is no brilliant insight into double-hires graphics

in this edition. Just admitting how difficult it is to program and there wasn't much software

released for it. Will look at other notes.



#23 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Wed Sep 9, 2015 7:33 PM

 

Mark O

 

I have just listened to the podcast. Unfortunately there is no brilliant insight into double-hires graphics

in this edition. Just admitting how difficult it is to program and there wasn't much software

released for it. Will look at other notes.

 

 

OK...  I am just listening to the POD Cast right now...

 

MarkO



#24 MarkO OFFLINE  

MarkO

    Dragonstomper

  • 798 posts
  • Location:Albany, Oregon, USA, North Western Hemisphere, Planet Tera

Posted Sat Sep 12, 2015 3:42 PM

Update on SpeedyG's Apple Box DE Page...

 

A LOT MORE High-Res and Double-High-Res info..

 

See the Guide on AppleFritter..

 

 

MarkO



#25 whiteplanet OFFLINE  

whiteplanet

    Star Raider

  • Topic Starter
  • 56 posts

Posted Mon Sep 14, 2015 12:29 AM

Yes. Great notes.





Reply to this topic



  


0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users