; SPDX-License-Identifier: MIT ; Bank 3: the play kernel for the bottom floor (the brick wall). Line numbers below are ; play-area lines (0-169); Y = 170 - line. Cycle counts are the cycle at which ; the instruction ends, counted from the end of the line's WSYNC. .segment "BANK3" .org $9000 .scope low TOLOGIC = ToLogic3 .include "shared.s" .include "gen/low.inc" .include "hud.s" ; Bank 3 entry (from the stub): the HUD, then the floor. Entry: jmp HudStart ; --------------------------------------------------------------------------- ; Bottom floor: five set-up lines with nothing to position. FloorSetup: ldx #4 GUARD 8 L_l: sta WSYNC ; ends 56..60 dex bne L_l sta WSYNC lda #C_BG0 sta COLUBK lda #C_WALL0 sta COLUPF lda #$F0 sta PF0 ldy #PLAYH KY .set ::PLAYH EMPTY 8 ; lines 0-7 BRICK_E ; 8 BRICK_ROW bricks+0, C_ROW0, 6 ; 9-16 BRICK_ROW bricks+1, C_ROW1, 6 ; 17-24 BRICK_ROW bricks+2, C_ROW2, 6 ; 25-32 BRICK_ROW bricks+3, C_ROW3, 6 ; 33-40 BRICK_ROW bricks+4, C_ROW4, 6 ; 41-48 BRICK_ROW bricks+5, C_ROW5, 6 ; 49-56 BRICK_T C_WALL0 ; 57 EMPTY 1 ; 58 RELEASE ; 59 EMPTY 92 ; 60-151 BATBAND ; 152-169 jmp KernelEnd .endscope KernelLow = low::Entry .assert low::Font = $9000, error, "Font must start bank 3"