dos33fsprogs/ootw/intro.s

306 lines
5.0 KiB
ArmAsm
Raw Normal View History

2019-01-27 02:27:20 +00:00
;=====================================
; Intro
2019-01-27 02:52:00 +00:00
.include "zp.inc"
.include "hardware.inc"
2019-01-27 02:27:20 +00:00
intro:
2019-01-27 02:52:00 +00:00
;===========================
; Enable graphics
bit LORES
bit SET_GR
bit FULLGR
;===========================
; Setup pages (is this necessary?)
lda #0
sta DRAW_PAGE
lda #1
sta DISP_PAGE
;===============================
;===============================
; Opening scene with car
;===============================
;===============================
;=============================
; Load background to $c00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(building_rle)
sta GBASH
lda #<(building_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
building_loop:
lda KEYPRESS
bpl building_loop
2019-01-27 05:20:20 +00:00
bit KEYRESET
2019-01-27 02:52:00 +00:00
2019-01-27 05:20:20 +00:00
;===============================
;===============================
; Walk into door
;===============================
;===============================
2019-01-27 02:52:00 +00:00
2019-01-27 05:20:20 +00:00
;===============================
;===============================
; Elevator going down
;===============================
;===============================
;=============================
; Load background to $c00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(elevator_rle)
sta GBASH
lda #<(elevator_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
elevator_loop:
lda KEYPRESS
bpl elevator_loop
bit KEYRESET
;===============================
;===============================
; Getting out of Elevator
;===============================
;===============================
;=============================
; Load background to $c00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(off_elevator_rle)
sta GBASH
lda #<(off_elevator_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
off_elevator_loop:
lda KEYPRESS
bpl off_elevator_loop
bit KEYRESET
;===============================
;===============================
; Keycode
;===============================
;===============================
;===============================
;===============================
; Scanner
;===============================
;===============================
;===============================
;===============================
; Spinny DNA / Key
;===============================
;===============================
2019-01-27 02:52:00 +00:00
;===============================
; Sitting at Desk
;===============================
; Peanut OS
;===============================
; Particle Accelerator Screen
2019-01-27 05:20:20 +00:00
;===============================
;===============================
; Opening Soda
;===============================
;===============================
;===============================
;===============================
; Drinking Soda
;===============================
;===============================
;=============================
; Load background to $c00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(drinking_rle)
sta GBASH
lda #<(drinking_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
drinking_loop:
lda KEYPRESS
bpl drinking_loop
bit KEYRESET
2019-01-27 02:52:00 +00:00
;===============================
; More crazy screen
;===============================
; Thunderstorm Outside
;===============================
; Tunnel 1
2019-01-27 05:20:20 +00:00
;===============================
;===============================
; Tunnel 2
;===============================
;===============================
;=============================
; Load background to $c00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(tunnel2_rle)
sta GBASH
lda #<(tunnel2_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
tunnel2_loop:
lda KEYPRESS
bpl tunnel2_loop
bit KEYRESET
;===============================
;===============================
; Zappo / Gone
;===============================
;===============================
2019-01-27 02:52:00 +00:00
2019-01-27 05:20:20 +00:00
;=============================
; Load background to $c00
2019-01-27 02:52:00 +00:00
2019-01-27 05:20:20 +00:00
lda #$0c
sta BASH
lda #$00
sta BASL ; load image off-screen $c00
lda #>(gone_rle)
sta GBASH
lda #<(gone_rle)
sta GBASL
jsr load_rle_gr
;=================================
; copy $c00 to both pages $400/$800
jsr gr_copy_to_current
jsr page_flip
jsr gr_copy_to_current
gone_loop:
lda KEYPRESS
bpl gone_loop
bit KEYRESET
2019-01-27 02:52:00 +00:00
2019-01-27 02:27:20 +00:00
rts
2019-01-27 02:52:00 +00:00
.include "gr_pageflip.s"
.include "gr_unrle.s"
.include "gr_copy.s"
.include "gr_offsets.s"
2019-01-27 02:27:20 +00:00
2019-01-27 05:20:20 +00:00
; background graphics
2019-01-27 02:27:20 +00:00
.include "intro_building.inc"
2019-01-27 05:20:20 +00:00
.include "intro_elevator.inc"
.include "intro_off_elevator.inc"
.include "intro_drinking.inc"
.include "intro_tunnel2.inc"
.include "intro_gone.inc"