home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-06-04 | 3.5 KB | 124 lines | [04] ASCII Text (0x0000) |
- ; MSCROLL.SC1
- ;
- ; DOUBLE HIRES ROUTINES - DRAW BOARD FOR DANCING NOTES
- ;
- INITHGR STA $C050 ;TEXT OFF
- STA $C057 ;HI RES ON
- STA $C052 ;FULL SCREEN GRAPHICS
- STA $C054 ;PAGE 1
- JSR CLEARSCR
- JSR DRAWGRID
- RTS
- ;
- DONEHGR STA $C051 ;TEXT ON
- STA $C056 ;HIRES OFF
- STA $C00C ;80COL OFF
- STA $C054 ;PAGE 1
- RTS
- ;
- CLEARSCR LDA #$20
- STA ZPTR+1
- LDA #$00
- STA ZPTR
- CLEARSC1 LDA #$00
- LDY #$00
- CLEARSC2 STA (ZPTR),Y
- INY
- BNE CLEARSC2
- INC ZPTR+1
- LDA ZPTR+1
- CMP #$40
- BCC CLEARSC1
- RTS
- ;
- DRAWGRID LDY #176
- JSR HORIZLN
- LDA #$A0
- LDX #39
- BLANKSCR STA $C055
- STA $0650,X
- STA $06D0,X
- STA $0750,X
- STA $07D0,X
- STA $C054
- STA $0650,X
- STA $06D0,X
- STA $0750,X
- STA $07D0,X
- DEX
- BPL BLANKSCR
- RTS
- ;
- ;
- ; HORIZLN - DRAWS HORIZ LINE ACROSS SCREEN. SET Y=VERTICAL COORDINATE
- ;
- HORIZLN JSR SETY
- JSR HORIZLN1
- RTS
- HORIZLN1 LDA #$7F
- LDY #39
- HORIZLN2 STA (ZPTR),Y
- DEY
- BPL HORIZLN2
- RTS
- ;
- ; SETY - GIVEN Y COORD, SET BASE ADDRESS FOR POKING BYTES ON THAT LINE
- ;
- SETY LDA HGRLINEL,Y
- STA ZPTR
- LDA HGRLINEH,Y
- STA ZPTR+1
- RTS
- ;
- ; HIGH RES VERTICAL COORDINATE ADDRESSES
- ;
- HGRLINEH DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $20,$24,$28,$2C,$30,$34,$38,$3C
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $21,$25,$29,$2D,$31,$35,$39,$3D
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $22,$26,$2A,$2E,$32,$36,$3A,$3E
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- DFB $23,$27,$2B,$2F,$33,$37,$3B,$3F
- HGRLINEL DFB $00,$00,$00,$00,$00,$00,$00,$00
- DFB $80,$80,$80,$80,$80,$80,$80,$80
- DFB $00,$00,$00,$00,$00,$00,$00,$00
- DFB $80,$80,$80,$80,$80,$80,$80,$80
- DFB $00,$00,$00,$00,$00,$00,$00,$00
- DFB $80,$80,$80,$80,$80,$80,$80,$80
- DFB $00,$00,$00,$00,$00,$00,$00,$00
- DFB $80,$80,$80,$80,$80,$80,$80,$80
- DFB $28,$28,$28,$28,$28,$28,$28,$28
- DFB $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
- DFB $28,$28,$28,$28,$28,$28,$28,$28
- DFB $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
- DFB $28,$28,$28,$28,$28,$28,$28,$28
- DFB $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
- DFB $28,$28,$28,$28,$28,$28,$28,$28
- DFB $A8,$A8,$A8,$A8,$A8,$A8,$A8,$A8
- DFB $50,$50,$50,$50,$50,$50,$50,$50
- DFB $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
- DFB $50,$50,$50,$50,$50,$50,$50,$50
- DFB $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
- DFB $50,$50,$50,$50,$50,$50,$50,$50
- DFB $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
- DFB $50,$50,$50,$50,$50,$50,$50,$50
- DFB $D0,$D0,$D0,$D0,$D0,$D0,$D0,$D0
- ;
-