[comp.sys.apple] ASSEMBLY ROUTINES FOR DOUBLE HI-RES GRAPHICS

UA_RLP@nuhub.acs.northeastern.EDU (Richard Pieri aka XENON - The Heavy Metal Warrior) (05/11/88)

   In message <8805091838.aa27722@SMOKE.BRL.ARPA>, Niko Schuessler asks...

>But does anyone know about assembly routines for DOUBLE HI-RES graphics
>routines?  This is what I still haven't figured out. I have HGR6, but
>they don't give entry points, or an assembly listing.

   Nibble Magazine has had several articles and programs on Double Hi-Res
   Graphics.  Since the programs are copyrighted, I can't post them on the
   net, but I've included a listing of the articles.  All of the driver
   programs are written in assembly, and all source code is well documented.

   DOUBLE HI-RES GRAPHICS I-IV:  A six-part series on Block Shape Animation
   and Pre-Shifted Shapes using Double Hi-Res Graphics.  Written by Robert R.
   Devine. July 1984-February 1985.

   AMPERDHR:  Ampersand routines for drawing lines in Double Hi-Res Graphics.
   This set of routines runs from the 16K Ram Card space in memory. Written
   by Steven Meuse.  March 1985.

   AMPERPALETTE:  A full set of Double Hi-Res Graphics drawing routines,
   Shape Tables, and DHR Screen Dump.  It also adds simple access to the
   Monitor MOVE routine, the AuxMove routine, and sound generation.  And all
   in about 2K.  This is one of the most useful DHR drivers that I've seen.
   Written by David L. Smith.  November 1987.

   HPLOTGS:  Routines similar to AMPERDHR, but for drawing in the Super-Res
   Graphics mode on the gs.  Written by Tom Dorris.  October 1987.

   Nibble Magazine's address is:         Their Phone Number is:

      Nibble/microSPARC, Inc.               (617) 371-1660
      45 Winthrop Street
      Concord, MA 01742

Disclaimer:  I am in no way related to the people at Nibble/microSPARC,
             I just like their stuff!
================================================================================
            Cthulu for President:  Why choose the lesser of Evils?
--------------------------------------------------------------------------------
Internet: UA_RLP@nuhub.acs.northeastern.edu |       ________
      or: rpieri@lynx.northeastern.edu      |      /   __   \   ____
                                            |     /   /  \  /  /   /
  USnail: Richard Pieri                     |    /   /    \/  /   / Northeastern
          14 Westdale Rd.                   |   /   /  /\    /   / University -
          Holbrook, MA 02343                |  /___/  /  \__/   / Boston,
   Other: rich-pieri@twilight.zone          |         \________/ Massachusetts
--------------------------------------------------------------------------------
Feel free to make any comments to what I've said, just say them behind my back!
================================================================================

aehl@csd4.milw.wisc.edu (Donald J Aehl) (05/12/88)

In article <8805111130.aa10333@SMOKE.BRL.ARPA> UA_RLP@nuhub.acs.northeastern.EDU (Richard Pieri aka XENON - The Heavy Metal Warrior) writes:
>
>   In message <8805091838.aa27722@SMOKE.BRL.ARPA>, Niko Schuessler asks...
>
>>But does anyone know about assembly routines for DOUBLE HI-RES graphics
>>routines?  This is what I still haven't figured out. I have HGR6, but
>>they don't give entry points, or an assembly listing.
>
>   Nibble Magazine has had several articles and programs on Double Hi-Res
>   Graphics.  Since the programs are copyrighted, I can't post them on the
>   net, but I've included a listing of the articles.  All of the driver
>   programs are written in assembly, and all source code is well documented.
>
>   DOUBLE HI-RES GRAPHICS I-IV:  A six-part series on Block Shape Animation
>   and Pre-Shifted Shapes using Double Hi-Res Graphics.  Written by Robert R.
>   Devine. July 1984-February 1985.
>
>   AMPERDHR:  Ampersand routines for drawing lines in Double Hi-Res Graphics.
>   This set of routines runs from the 16K Ram Card space in memory. Written
>   by Steven Meuse.  March 1985.
>
>   AMPERPALETTE:  A full set of Double Hi-Res Graphics drawing routines,
>   Shape Tables, and DHR Screen Dump.  It also adds simple access to the
>   Monitor MOVE routine, the AuxMove routine, and sound generation.  And all
>   in about 2K.  This is one of the most useful DHR drivers that I've seen.
>   Written by David L. Smith.  November 1987.
>
>   HPLOTGS:  Routines similar to AMPERDHR, but for drawing in the Super-Res
>   Graphics mode on the gs.  Written by Tom Dorris.  October 1987.
>
>   Nibble Magazine's address is:         Their Phone Number is:
>
>      Nibble/microSPARC, Inc.               (617) 371-1660
>      45 Winthrop Street
>      Concord, MA 01742
>
>Disclaimer:  I am in no way related to the people at Nibble/microSPARC,
>             I just like their stuff!

I like there stuff a lot, too!  I think that NIBBLE is the BEST magazine
currently published for Apple II computer porgramming (although
Call -A.P.P.L.E. is a very close second place). I have typing in many of
NIBBLE's programs (including AMPERPALETTE and HPLOTGS).

As far a Double Hires is concerned, I think that Amperpalette is a very 
good program.  I have not programmed extensively with it, but it does
all of the basic graphics commands which normal Hires does (using
ampersand routines.  Also, as with all Nibble programs, the source code
is provided so that it can be modified and used in your own programs.

I have also used CHROME, a program which was published in a 1987 issue of
COMPUTE! magazine. I don't have the magazine anymore, but I typed in the
program and It works.  It is similar to NIBBLE's program but provides a few 
extra commands.  As with all COMPUTE! programs, there is no source code
provided.  This is a really poor publication, but every once in awhile
something interesting is published in it.  Oh well.  As I recall, a 
supplement to this program was published a month or two later (called
CHROME II).  I  never entered this one in so I have no comment on it.

BEAGLE GRAPHICS (by Beagle Bros Software) is an excellent program for
Double Hires.  Everyone who wants to program in Double Hires should 
really have this program.  It supplies MANY utilities for packing screens,
using cut and past buffers for editing and animation, and also provides
support for 80 column (DOS Toolkit type) Double Hires FONTS.  I think it
costs about $40.00, but it is well worth it.

As far a Super Hires programs arew concerned...

DON'T BOTHER WITH HPLOTGS.  Don't type it in, don't use it!
This is my personal opinion of course, but it is not a very good program
simply because it messes up Linearization of the Super Hires graphics
buffer.  I have used it in some of my programs to create Super-Hires
pictures, and none of them load correctly into ANY commercial Super Hires
graphics programs (no matter what I tried to do with them.)  I'm sure
that there is an easy fix to this program, there is no reason to make it.
By the time I realized that HPLOTGS was incompatible with my programs,
NIBBLE published another program: SUPERGRAPHICS GS (Feb 1988) which was
far superior to HPLOTGS.  HPLOTGS can only plot points, while the
SUPERGRAPHICS GS supports the full implementation of the HPLOT command.
It uses ampersand routines, includes the source code and has a few
commands which deal with palette control and window regions & clipping.

For programmers who are serious about machine language level 
programming Super Hires graphics, look for Call -A.P.P.L.E. regular
column "Modular Programming in Assembly Language".  A few months back,
some modules were published which allowed simple control of the Super
Hires Graphics Buffer.  EDASM with the Linking Loader is needed to
fully appreciate this article, though.
s
n





iiihggg  !
==============================================================================
ARPA: aehl@csd4.milw.wisc.edu        USMAIL: Donald Aehl            
                                             Box #204
                                             3400 N. Maryland Ave.
					     Milwaukee, WI 53201
UUCP: ihnp4!uwmcsd1!uwm-evax!aehl    ICBM:   43 4 58 N / 87 55 52 W
==============================================================================