dos33fsprogs/games/space_bars/space_bars.s

89 lines
1.4 KiB
ArmAsm
Raw Normal View History

2018-08-01 04:17:07 +00:00
;=====================================
; Rasterbars in Space
;
2019-06-14 01:12:02 +00:00
; a cycle-counting racing-the-beam game
2018-08-01 04:17:07 +00:00
;
2018-08-01 01:04:32 +00:00
; by deater (Vince Weaver) <vince@deater.net>
2018-08-01 04:17:07 +00:00
;=====================================
2018-08-01 01:04:32 +00:00
; Zero Page
2019-06-14 01:12:02 +00:00
.include "zp.inc"
2019-06-13 20:42:25 +00:00
2019-06-14 01:12:02 +00:00
; hardware addresses/soft_switches
.include "hardware.inc"
2019-06-13 20:42:25 +00:00
2019-06-14 01:12:02 +00:00
space_bars_begin:
2019-06-13 20:42:25 +00:00
2018-08-01 04:17:07 +00:00
;==================
; show title screen
;==================
view_title:
jsr title_screen
2018-08-01 01:04:32 +00:00
2018-08-01 04:17:07 +00:00
;==================
; Display Text
;==================
2018-08-01 01:04:32 +00:00
jsr instructions
2018-08-02 03:35:23 +00:00
2018-08-01 04:17:07 +00:00
;==================
; Mode7
;==================
2018-08-01 01:04:32 +00:00
2019-06-13 20:42:25 +00:00
; TODO
2019-06-14 01:12:02 +00:00
;=============================
; EARTH: 40x192 sprites
;=============================
2019-06-13 20:42:25 +00:00
2019-06-14 01:32:14 +00:00
jsr level3_earth
2019-06-13 20:42:25 +00:00
lda GAME_OVER
bne game_over_man
2019-06-14 01:12:02 +00:00
;============================
; SATURN: Rasterbars
;============================
2018-08-01 01:04:32 +00:00
2019-06-14 01:32:14 +00:00
jsr level6_saturn
2018-08-02 04:13:40 +00:00
2018-08-01 04:17:07 +00:00
;==================
; Game Over
;==================
2019-06-13 20:42:25 +00:00
game_over_man:
2018-08-02 04:13:40 +00:00
jsr game_over
bit KEYRESET
jmp view_title
2018-08-02 04:13:40 +00:00
loop_forever:
jmp loop_forever
2018-08-01 01:04:32 +00:00
2019-06-14 01:12:02 +00:00
.include "gr_simple_clear.s"
2018-08-01 01:04:32 +00:00
2019-06-13 20:42:25 +00:00
.include "gr_offsets.s"
2018-08-01 01:04:32 +00:00
2019-06-14 01:32:14 +00:00
.include "gr_unrle.s"
.include "keypress.s"
2018-08-01 01:04:32 +00:00
.include "gr_copy.s"
2018-08-01 04:17:07 +00:00
.include "title.s"
2018-08-02 03:35:23 +00:00
.include "instructions.s"
2019-06-14 01:32:14 +00:00
.include "level6_saturn.s"
2018-08-02 03:35:23 +00:00
.include "text_print.s"
2018-08-02 04:13:40 +00:00
.include "game_over.s"
.align $100
.include "vapor_lock.s"
.include "delay_a.s"
.include "lz4_decode.s"
2018-10-08 02:59:56 +00:00
.align $100
.include "gr_putsprite.s"
2018-08-01 01:04:32 +00:00
.include "spacebars_title.inc"
2018-10-08 02:59:56 +00:00
.align $100
.include "mode7_sprites.inc"
2019-06-13 20:42:25 +00:00
.align $100
2019-06-14 01:32:14 +00:00
.include "level3_earth.s"