dos33fsprogs/mode7_demo/mode7_demo.s

98 lines
1.6 KiB
ArmAsm
Raw Normal View History

.include "zp.inc"
;================================
; Clear screen and setup graphics
;================================
jsr set_gr_page0
bit FULLGR
jsr clear_screens_notext ; clear top/bottom of page 0/1
2017-12-18 03:03:20 +00:00
lda #$4
sta DRAW_PAGE
lda #<demo_rle
sta GBASL
lda #>demo_rle
sta GBASH
; Load offscreen
lda #<$c00
sta BASL
lda #>$c00
sta BASH
jsr load_rle_gr
demo_loop:
2017-12-18 04:06:49 +00:00
;==========
; Fade in
;==========
jsr fade_in
2017-12-18 04:06:49 +00:00
;==========================================
; Make sure page0 and page1 show same image
;==========================================
jsr gr_copy_to_current
;===================
; Scroll the message
;===================
; Scroll "BY DEATER... A VMW PRODUCTION"
lda #>deater_scroll
sta INH
lda #<deater_scroll
sta INL
lda #40 ; scroll at bottom of screen
sta CV
jsr gr_scroll
; Scroll "* APPLE ][ FOREVER *"
lda #>a2_scroll
sta INH
lda #<a2_scroll
sta INL
jsr gr_scroll
2017-12-18 04:06:49 +00:00
;=============
; Fade out
;=============
jsr fade_out
jmp demo_loop
;===============================================
; External modules
;===============================================
.include "../asm_routines/gr_unrle.s"
.include "../asm_routines/hlin_clearscreen.s"
.include "../asm_routines/gr_setpage.s"
2017-12-18 03:03:20 +00:00
.include "../asm_routines/pageflip.s"
2017-12-18 03:35:21 +00:00
.include "../asm_routines/gr_fade.s"
2017-12-18 04:06:49 +00:00
.include "../asm_routines/gr_copy.s"
2017-12-18 05:40:13 +00:00
.include "../asm_routines/gr_scroll.s"
.include "mode7_demo_backgrounds.inc"
2017-12-18 04:06:49 +00:00
;===============================================
; Variables
;===============================================
.include "deater.scrolltext"
.include "a2.scrolltext"
2017-12-18 04:06:49 +00:00