From d4b45d2ec82325b1e353631324064e24d06d7e5a Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sun, 7 Oct 2018 17:43:13 -0400 Subject: [PATCH] space_bars: getting closer --- space_bars/Makefile | 2 +- space_bars/game.s | 26 ++++++++------------------ space_bars/screen_split.s | 2 +- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/space_bars/Makefile b/space_bars/Makefile index 41b9481c..cd9c6dab 100644 --- a/space_bars/Makefile +++ b/space_bars/Makefile @@ -17,7 +17,7 @@ SPACE_BARS: space_bars.o space_bars.o: space_bars.s instructions.s game.s \ game_over.s gr_copy.s text_print.s title.s \ - spacebars_title.inc \ + spacebars_title.inc screen_split.s \ vapor_lock.s delay_a.s lz4_decode.s SB_BACKGROUNDC.BIN.lz4 ca65 -o space_bars.o space_bars.s -l space_bars.lst diff --git a/space_bars/game.s b/space_bars/game.s index 7e03830b..c3f5b7d8 100644 --- a/space_bars/game.s +++ b/space_bars/game.s @@ -38,17 +38,12 @@ game: ;============================= ; Load graphic page0 - lda #$0c - sta BASH - lda #$00 - sta BASL ; load image to $c00 + lda #8 + sta DRAW_PAGE + lda #22 + jsr clear_gr -; lda #fs -; sta GBASH -; jsr load_rle_gr lda #4 sta DRAW_PAGE @@ -64,17 +59,12 @@ game: ;============================= ; Load graphic page1 - lda #$0c - sta BASH - lda #$00 - sta BASL ; load image to $c00 -; lda #fs -; sta GBASH -; jsr load_rle_gr + lda #8 + sta DRAW_PAGE + lda #44 + jsr clear_gr ;=================== ; copy to page3 diff --git a/space_bars/screen_split.s b/space_bars/screen_split.s index 4d69349d..478eee2c 100644 --- a/space_bars/screen_split.s +++ b/space_bars/screen_split.s @@ -210,7 +210,7 @@ split_36: ss_multiples: ; .byte 0,0,23,46,69,92,115,138,161,184 - .byte 184,161,138,115,92,69,46,23,0,0 + .byte 184,184,161,138,115,92,69,46,23,0 ; 6 4 25+16+8+16 NNNNNNNN ; 7 6 25+15+10+15 LNNNNNN