castleraider
changeset 338:c1d0dbfbfa31
More progress on the ending sequence.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Sun Oct 12 19:43:54 2014 +0200 |
| parents | 1375b65e3313 |
| children | 4e2c053a8d56 |
| files | ending.oph |
| diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/ending.oph Sun Oct 12 01:35:13 2014 +0200 1.2 +++ b/ending.oph Sun Oct 12 19:43:54 2014 +0200 1.3 @@ -81,6 +81,10 @@ 1.4 adc $75 1.5 sta $78 1.6 1.7 + lda $76 ; Set the initial destination address within the row. 1.8 + adc $75 1.9 + sta $76 1.10 + 1.11 lda $75 1.12 tax ; Use the row offset as an index. 1.13 adc #8 1.14 @@ -88,7 +92,7 @@ 1.15 1.16 ldy #0 1.17 1.18 - game_completed_column_loop: 1.19 + plot_roll_loop: 1.20 1.21 ldx #4 1.22 plot_roll_restore_addresses_loop: 1.23 @@ -125,14 +129,15 @@ 1.24 inc $75 1.25 lda $75 1.26 cmp $7b 1.27 - bne game_completed_column_loop 1.28 + bne plot_roll_loop 1.29 + 1.30 + plot_roll_exit: 1.31 1.32 clc 1.33 rts 1.34 1.35 -completed_text: .byte 17,131, 28,2,16,17,5, 12, 26 1.36 - .byte 17,130, 28,3,15,16,6, 12, 26 1.37 - .byte 17,129, 28,4,14,15,7, 12, 26 1.38 +completed_text: .byte 17,131, 28,2,16,17,5, 12 1.39 + .byte 17,1, 10, " Well done!" 1.40 completed_text_end: 1.41 1.42 .alias completed_text_length [completed_text_end - completed_text]
