mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-30 12:29:38 +00:00
waterfall: better document count
This commit is contained in:
parent
9f17e366dd
commit
093bc751de
|
@ -17,7 +17,7 @@ WATERFALL: waterfall.o
|
||||||
ld65 -o WATERFALL waterfall.o -C ../linker_scripts/apple2_1000.inc
|
ld65 -o WATERFALL waterfall.o -C ../linker_scripts/apple2_1000.inc
|
||||||
|
|
||||||
waterfall.o: waterfall.s gr_copy.s \
|
waterfall.o: waterfall.s gr_copy.s \
|
||||||
waterfall_page1.inc waterfall_page2.inc
|
waterfall_page1.inc waterfall_page2.inc tfv_sprites.inc
|
||||||
ca65 -o waterfall.o waterfall.s -l waterfall.lst
|
ca65 -o waterfall.o waterfall.s -l waterfall.lst
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
56
waterfall/tfv_sprites.inc
Normal file
56
waterfall/tfv_sprites.inc
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
bird_rider_stand_right:
|
||||||
|
.byte $6,$7
|
||||||
|
.byte $00,$dd,$bd,$00,$00,$00
|
||||||
|
.byte $00,$dd,$db,$00,$dd,$90
|
||||||
|
.byte $00,$00,$22,$02,$dd,$00
|
||||||
|
.byte $0d,$dd,$d2,$22,$dd,$00
|
||||||
|
.byte $00,$00,$0d,$82,$8d,$00
|
||||||
|
.byte $00,$00,$00,$99,$00,$00
|
||||||
|
.byte $00,$00,$00,$99,$90,$00
|
||||||
|
; 00=22 0X=3 X0=2 XX=15
|
||||||
|
; = 33 + Y*(52)+ [30A + 64B + 69C + 54D]-Y
|
||||||
|
; = 33 + 7*52 + 30*22 + 64*3 + 69*2 + 54*15 - 7
|
||||||
|
; = 2190
|
||||||
|
|
||||||
|
bird_rider_walk_right:
|
||||||
|
.byte $6,$7
|
||||||
|
.byte $00,$dd,$bd,$00,$00,$00
|
||||||
|
.byte $00,$dd,$db,$00,$dd,$90
|
||||||
|
.byte $00,$00,$22,$02,$dd,$00
|
||||||
|
.byte $0d,$dd,$d2,$22,$dd,$00
|
||||||
|
.byte $00,$00,$0d,$82,$8d,$00
|
||||||
|
.byte $00,$00,$00,$99,$00,$00
|
||||||
|
.byte $00,$00,$99,$00,$99,$00
|
||||||
|
; 00=22 0X=3 X0=1 XX=16
|
||||||
|
; = 33 + Y*(52)+ [30A + 64B + 69C + 54D]-Y
|
||||||
|
; = 33 + 7*52 + 30*22 + 64*3 + 69*1 + 54*16 - 7
|
||||||
|
; = 2175
|
||||||
|
|
||||||
|
bird_rider_stand_left:
|
||||||
|
.byte $6,$7
|
||||||
|
.byte $00,$00,$00,$bd,$dd,$00
|
||||||
|
.byte $90,$dd,$00,$db,$dd,$00
|
||||||
|
.byte $00,$dd,$02,$22,$00,$00
|
||||||
|
.byte $00,$dd,$22,$d2,$dd,$0d
|
||||||
|
.byte $00,$8d,$82,$0d,$00,$00
|
||||||
|
.byte $00,$00,$99,$00,$00,$00
|
||||||
|
.byte $00,$90,$99,$00,$00,$00
|
||||||
|
; 00=22 0X=3 X0=2 XX=15
|
||||||
|
; = 33 + Y*(52)+ [30A + 64B + 69C + 54D]-Y
|
||||||
|
; = 33 + 7*52 + 30*22 + 64*3 + 69*2 + 54*15 - 7
|
||||||
|
; = 2190
|
||||||
|
|
||||||
|
bird_rider_walk_left:
|
||||||
|
.byte $6,$7
|
||||||
|
.byte $00,$00,$00,$bd,$dd,$00
|
||||||
|
.byte $90,$dd,$00,$db,$dd,$00
|
||||||
|
.byte $00,$dd,$02,$22,$00,$00
|
||||||
|
.byte $00,$dd,$22,$d2,$dd,$0d
|
||||||
|
.byte $00,$8d,$82,$0d,$00,$00
|
||||||
|
.byte $00,$00,$99,$00,$00,$00
|
||||||
|
.byte $00,$99,$00,$99,$00,$00
|
||||||
|
; 00=22 0X=3 X0=1 XX=16
|
||||||
|
; = 33 + Y*(52)+ [30A + 64B + 69C + 54D]-Y
|
||||||
|
; = 33 + 7*52 + 30*22 + 64*3 + 69*1 + 54*16 - 7
|
||||||
|
; = 2175
|
||||||
|
|
|
@ -78,9 +78,6 @@ waterfall_demo:
|
||||||
bit SET_GR ; 4
|
bit SET_GR ; 4
|
||||||
bit FULLGR ; 4
|
bit FULLGR ; 4
|
||||||
|
|
||||||
jsr wait_until_keypressed
|
|
||||||
|
|
||||||
|
|
||||||
;=============================
|
;=============================
|
||||||
; Load graphic page1
|
; Load graphic page1
|
||||||
|
|
||||||
|
@ -103,8 +100,6 @@ waterfall_demo:
|
||||||
; GR part
|
; GR part
|
||||||
bit PAGE0
|
bit PAGE0
|
||||||
|
|
||||||
jsr wait_until_keypressed
|
|
||||||
|
|
||||||
|
|
||||||
;==============================
|
;==============================
|
||||||
; setup graphics for vapor lock
|
; setup graphics for vapor lock
|
||||||
|
@ -236,20 +231,33 @@ page1_loop: ; delay 115+(7 loop)+4 (bit)+4(extra)
|
||||||
;======================================================
|
;======================================================
|
||||||
; We have 4550 cycles in the vblank, use them wisely
|
; We have 4550 cycles in the vblank, use them wisely
|
||||||
;======================================================
|
;======================================================
|
||||||
; do_nothing should be 4550+1 -2-9 -7= 4533
|
; do_nothing should be 4550
|
||||||
|
; +1 fallthrough from above
|
||||||
|
; -2 display loop setup
|
||||||
|
; -6 jsr to do_nothing
|
||||||
|
; -10 check for keypress
|
||||||
|
; =============
|
||||||
|
; 4533
|
||||||
|
|
||||||
jsr do_nothing ; 6
|
jsr do_nothing ; 6
|
||||||
|
|
||||||
|
; lda #4 ; 4
|
||||||
|
; sta DRAW_PAGE ; 3
|
||||||
|
; jsr gr_copy_to_current ; 6+ 9292
|
||||||
|
;=========
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
lda KEYPRESS ; 4
|
lda KEYPRESS ; 4
|
||||||
bpl no_keypress ; 3
|
bpl no_keypress ; 3
|
||||||
jmp run_forever
|
jmp all_done
|
||||||
no_keypress:
|
no_keypress:
|
||||||
|
|
||||||
jmp display_loop ; 3
|
jmp display_loop ; 3
|
||||||
|
|
||||||
|
|
||||||
run_forever:
|
all_done:
|
||||||
jmp run_forever
|
jmp all_done
|
||||||
|
|
||||||
|
|
||||||
;=================================
|
;=================================
|
||||||
|
@ -325,4 +333,4 @@ gr_offsets:
|
||||||
|
|
||||||
.include "waterfall_page1.inc"
|
.include "waterfall_page1.inc"
|
||||||
.include "waterfall_page2.inc"
|
.include "waterfall_page2.inc"
|
||||||
|
.include "tfv_sprites.inc"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user