Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #2218

Re: Accessing auxiliary memory for double lo-res graphics

Newsgroups comp.sys.apple2.programmer
Date 2016-02-13 14:12 -0800
References <227e5da3-05d9-4f80-bcbc-028760b168a9@googlegroups.com> <1mi5mj1.12u2y16835kq7N%dempson@actrix.gen.nz> <23b47f4f-2602-4404-882e-6a87c46d7128@googlegroups.com> <b9a376d3-232a-45e4-8a71-9ca075bce17f@googlegroups.com> <551683cd-cddb-467c-960e-4fcf8e2bb2ee@googlegroups.com>
Message-ID <546bd98d-2938-4e3e-b2ca-d7231695cafd@googlegroups.com> (permalink)
Subject Re: Accessing auxiliary memory for double lo-res graphics
From Mark Lemmert <mark.lemmert@gmail.com>

Show all headers | View raw


>I'd love it to work as I'm eventually going to move on to double hi-res and I assume it's very similar.  :)

Here is the second demo program I mentioned in my last post. Also I had the program descriptions backwards. The first program displays some lines with all the double Hi-Res colors. 

 
;EXAMPLE #2
;
;PROGRAM DESCRIPTION: demo Double Hi-Res. Drawn a dark blue line 2 screen bytes wide. 
;
;

			
;Turn Hi-RES ON

	LDA GRAPHICS	;TURN ON GRAPHICS MODE
	LDA HIRES	;SELECT HI-RES MODE
;	LDA	PAGE1	;SELECT PAGE 1
	LDA MIXOFF	;SELECT FULL SCREEN GRAPHICS (PAGE 1)
	
	STA STORE80	;SELECT DOUBLE HI-RES MODE
	STA COL80
	LDA AN3

START	NOP
;Clear screen using double Hi-Res Mode
	LDA MAIN
	JSR SCLEAR
	LDA AUX
	JSR	SCLEAR
;

;DRAW SOME STUFF USING LOOKUP TABLE

	

	LDX #$10
	LDY #$00
	
	LDA HI,X
	STA $77
	LDA LO,X
	STA $76


	
	LDA AUX					;AUX1
	LDA #$01
	STA ($76),Y	;PLOT
							
							BRK
	
	LDA MAIN				;MAIN1
	LDA #$22
	STA ($76),Y	;PLOT
							

	INY
	
	LDA AUX					;AUX2
	LDA #$44
	STA ($76),Y	;PLOT
	
	LDA MAIN				;MAIN2
	LDA #$08
	STA ($76),Y	;PLOT
	
	RTS

	
	
SCLEAR	NOP ;===============
;Clear Screen

	LDA #$00
	STA $26
	LDA #$20
	STA $27
CLR1 NOP
	LDY #$00
	LDA	#$00
CLR	NOP
	STA	($26), Y
	INY
	BNE CLR
	INC $27
	LDA $27
	CMP #$40
	BCC	CLR1		;is acc less than cmp
	RTS
	
	
;======DEFINE VARIBLES======
GRAPHICS 	.EQ	$C050
HIRES		.EQ	$C057
PAGE1		.EQ	$C054
MIXOFF		.EQ	$C052

STORE80		.EQ	$C001
COL80		.EQ	$C00D
AN3			.EQ	$C05E
AUX			.EQ	$C055
MAIN		.EQ	$C054

HI .HS 20.24.28.2C.30.34.38.3C.20.24.28.2C.30.34.38.3C.21.25.29.2D.31.35.39.3D.21.25.29.2D.31.35.39.3D.22.26.2A.2E.32.36.3A.3E.22.26.2A.2E.32.36.3A.3E.23.27.2B.2F.33.37.3B.3F.23.27.2B.2F.33.37.3B.3F.20.24.28.2C.30.34.38.3C.20.24.28.2C.30.34.38.3C.21.25.29.2D.31.35.39.3D.21.25.29.2D.31.35.39.3D.22.26.2A.2E.32.36.3A.3E.22.26.2A.2E.32.36.3A.3E.23.27.2B.2F.33.37.3B.3F.23.27.2B.2F.33.37.3B.3F.20.24.28.2C.30.34.38.3C.20.24.28.2C.30.34.38.3C.21.25.29.2D.31.35.39.3D.21.25.29.2D.31.35.39.3D.22.26.2A.2E.32.36.3A.3E.22.26.2A.2E.32.36.3A.3E.23.27.2B.2F.33.37.3B.3F.23.27.2B.2F.33.37.3B.3F

LO .HS 00.00.00.00.00.00.00.00.80.80.80.80.80.80.80.80.00.00.00.00.00.00.00.00.80.80.80.80.80.80.80.80.00.00.00.00.00.00.00.00.80.80.80.80.80.80.80.80.00.00.00.00.00.00.00.00.80.80.80.80.80.80.80.80.28.28.28.28.28.28.28.28.A8.A8.A8.A8.A8.A8.A8.A8.28.28.28.28.28.28.28.28.A8.A8.A8.A8.A8.A8.A8.A8.28.28.28.28.28.28.28.28.A8.A8.A8.A8.A8.A8.A8.A8.28.28.28.28.28.28.28.28.A8.A8.A8.A8.A8.A8.A8.A8.50.50.50.50.50.50.50.50.D0.D0.D0.D0.D0.D0.D0.D0.50.50.50.50.50.50.50.50.D0.D0.D0.D0.D0.D0.D0.D0.50.50.50.50.50.50.50.50.D0.D0.D0.D0.D0.D0.D0.D0.50.50.50.50.50.50.50.50.D0.D0.D0.D0.D0.D0.D0.D0

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-04 17:50 -0800
  Re: Accessing auxiliary memory for double lo-res graphics dempson@actrix.gen.nz (David Empson) - 2016-02-05 16:59 +1300
    Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-04 21:44 -0800
    Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-07 13:37 -0800
      Re: Accessing auxiliary memory for double lo-res graphics dempson@actrix.gen.nz (David Empson) - 2016-02-08 13:42 +1300
        Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-08 15:54 -0800
      Re: Accessing auxiliary memory for double lo-res graphics gids.rs@sasktel.net - 2016-02-08 14:30 -0800
        Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-08 18:13 -0800
          Re: Accessing auxiliary memory for double lo-res graphics Mark Lemmert <mark.lemmert@gmail.com> - 2016-02-13 14:08 -0800
          Re: Accessing auxiliary memory for double lo-res graphics Mark Lemmert <mark.lemmert@gmail.com> - 2016-02-13 14:12 -0800
            Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-15 14:51 -0800
          Re: Accessing auxiliary memory for double lo-res graphics gids.rs@sasktel.net - 2016-02-14 14:40 -0800
            Re: Accessing auxiliary memory for double lo-res graphics gids.rs@sasktel.net - 2016-02-14 15:05 -0800
            Re: Accessing auxiliary memory for double lo-res graphics gids.rs@sasktel.net - 2016-02-14 15:52 -0800
              Re: Accessing auxiliary memory for double lo-res graphics AppleIIGSMarc <appleiigsmarc@gmail.com> - 2016-02-15 15:14 -0800
        Re: Accessing auxiliary memory for double lo-res graphics BLuRry <brendan.robert@gmail.com> - 2016-02-24 22:07 -0800
          Re: Accessing auxiliary memory for double lo-res graphics qkumba <peter.ferrie@gmail.com> - 2016-02-25 08:22 -0800

csiph-web