star
by ixitxachitl
Game:
Description:
Init: ; LDA #$15 ;\ BG1, BG3, OBJ on main screen (TM) STA $212C ; | LDA #$15 ; | BG1, BG3, OBJ on main screen should use windowing. (TMW) STA $212E ;/ LDA #$02 ;\ BG2 on sub screen (TS) STA $212D ; | LDA #$02 ; | BG2 on sub screen should use windowing. (TSW) STA $212F ;/ LDA #$20 ; Backdrop for color math STA $40 ; mirror of $2131 LDA #$12 ;\ Clip to black: Never, Prevent colot math: Outside STA $44 ;/ Add subscreen instead of fixed color: True LDA #$A0 ;\ values for enabling/inverting OBJ/Color on window 1/2 STA $43 ; | mirror of $2125 ; | Window 1 enabled on Color ; | Window 2 enabled on Color ; | Window 1 inverted on 0 ;/ Window 2 inverted on 0 REP #$20 ;\ Get into 16 bit mode LDA #$2604 ; | Register $2126 using mode 4 STA $4330 ; | 4330 = transfer mode, 4331 = register LDA #.windowTable ; | High byte and low byte of table addresse. STA $4332 ; | 4332 = low byte, 4333 = high byte SEP #$20 ; | Back to 8 bit mode LDA.b #.windowTable>>16 ; | Bank byte of table addresse. STA $4334 ;/ = bank byte LDA #$08 ;\ TSB $0D9F ;/ enable HDMA channel 3 RTL ; Return .windowTable: ; db $0C : db $FF, $00, $FF, $00 ; db $03 : db $81, $82, $FF, $00 ; db $03 : db $80, $83, $FF, $00 ; db $03 : db $7F, $84, $FF, $00 ; db $03 : db $7E, $85, $FF, $00 ; db $03 : db $7D, $86, $FF, $00 ; db $03 : db $7C, $87, $FF, $00 ; db $03 : db $7B, $88, $FF, $00 ; db $03 : db $7A, $89, $FF, $00 ; db $03 : db $79, $8A, $FF, $00 ; db $01 : db $79, $8B, $FF, $00 ; db $02 : db $78, $8B, $FF, $00 ; db $01 : db $78, $8C, $FF, $00 ; db $03 : db $77, $8C, $FF, $00 ; db $03 : db $76, $8D, $FF, $00 ; db $03 : db $75, $8E, $FF, $00 ; db $03 : db $74, $8F, $FF, $00 ; db $03 : db $73, $90, $FF, $00 ; db $03 : db $72, $91, $FF, $00 ; db $03 : db $71, $92, $FF, $00 ; db $03 : db $70, $93, $FF, $00 ; db $03 : db $6F, $94, $FF, $00 ; db $03 : db $6E, $95, $FF, $00 ; db $03 : db $6D, $96, $FF, $00 ; db $03 : db $6C, $97, $FF, $00 ; db $01 : db $6C, $98, $FF, $00 ; db $02 : db $6B, $98, $FF, $00 ; db $01 : db $6B, $99, $FF, $00 ; db $03 : db $6A, $99, $FF, $00 ; db $02 : db $69, $9A, $FF, $00 ; db $01 : db $19, $EA, $FF, $00 ; db $01 : db $1B, $E8, $FF, $00 ; db $01 : db $1C, $E7, $FF, $00 ; db $01 : db $1D, $E6, $FF, $00 ; db $01 : db $1F, $E4, $FF, $00 ; db $01 : db $20, $E3, $FF, $00 ; db $01 : db $21, $E2, $FF, $00 ; db $01 : db $23, $E0, $FF, $00 ; db $01 : db $24, $DF, $FF, $00 ; db $01 : db $26, $DD, $FF, $00 ; db $01 : db $27, $DC, $FF, $00 ; db $01 : db $28, $DB, $FF, $00 ; db $01 : db $2A, $D9, $FF, $00 ; db $01 : db $2B, $D8, $FF, $00 ; db $01 : db $2C, $D7, $FF, $00 ; db $01 : db $2E, $D5, $FF, $00 ; db $01 : db $2F, $D4, $FF, $00 ; db $01 : db $31, $D2, $FF, $00 ; db $01 : db $32, $D1, $FF, $00 ; db $01 : db $33, $D0, $FF, $00 ; db $01 : db $35, $CE, $FF, $00 ; db $01 : db $36, $CD, $FF, $00 ; db $01 : db $37, $CC, $FF, $00 ; db $01 : db $39, $CA, $FF, $00 ; db $01 : db $3A, $C9, $FF, $00 ; db $01 : db $3C, $C7, $FF, $00 ; db $01 : db $3D, $C6, $FF, $00 ; db $01 : db $3E, $C5, $FF, $00 ; db $01 : db $40, $C3, $FF, $00 ; db $01 : db $41, $C2, $FF, $00 ; db $01 : db $43, $C1, $FF, $00 ; db $01 : db $44, $BF, $FF, $00 ; db $01 : db $45, $BE, $FF, $00 ; db $01 : db $47, $BC, $FF, $00 ; db $01 : db $48, $BB, $FF, $00 ; db $01 : db $49, $BA, $FF, $00 ; db $01 : db $4B, $B8, $FF, $00 ; db $01 : db $4C, $B7, $FF, $00 ; db $01 : db $4E, $B6, $FF, $00 ; db $01 : db $4F, $B4, $FF, $00 ; db $01 : db $50, $B3, $FF, $00 ; db $01 : db $52, $B1, $FF, $00 ; db $01 : db $53, $B0, $FF, $00 ; db $01 : db $54, $AF, $FF, $00 ; db $01 : db $56, $AD, $FF, $00 ; db $01 : db $57, $AC, $FF, $00 ; db $01 : db $59, $AB, $FF, $00 ; db $03 : db $59, $AA, $FF, $00 ; db $03 : db $58, $AB, $FF, $00 ; db $03 : db $57, $AC, $FF, $00 ; db $03 : db $56, $AD, $FF, $00 ; db $03 : db $55, $AE, $FF, $00 ; db $03 : db $54, $AF, $FF, $00 ; db $03 : db $53, $B0, $FF, $00 ; db $01 : db $53, $B1, $FF, $00 ; db $02 : db $52, $B1, $FF, $00 ; db $01 : db $52, $B2, $FF, $00 ; db $02 : db $51, $B2, $FF, $00 ; db $01 : db $51, $B3, $FF, $00 ; db $01 : db $50, $B3, $FF, $00 ; db $01 : db $50, $81, $82, $B3 ; db $01 : db $50, $80, $83, $B3 ; db $01 : db $4F, $7E, $85, $B4 ; db $01 : db $4F, $7D, $86, $B4 ; db $01 : db $4F, $7C, $87, $B4 ; db $01 : db $4E, $7A, $89, $B5 ; db $01 : db $4E, $79, $8A, $B5 ; db $01 : db $4E, $78, $8B, $B5 ; db $01 : db $4D, $76, $8D, $B6 ; db $01 : db $4D, $75, $8E, $B6 ; db $01 : db $4D, $73, $90, $B6 ; db $01 : db $4C, $72, $91, $B7 ; db $01 : db $4C, $71, $92, $B7 ; db $01 : db $4C, $6F, $94, $B7 ; db $01 : db $4B, $6E, $95, $B8 ; db $01 : db $4B, $6D, $97, $B8 ; db $01 : db $4B, $6B, $98, $B8 ; db $01 : db $4A, $6A, $99, $B9 ; db $01 : db $4A, $68, $9B, $B9 ; db $01 : db $4A, $67, $9C, $B9 ; db $01 : db $49, $66, $9D, $BA ; db $01 : db $49, $64, $9F, $BA ; db $01 : db $49, $63, $A0, $BA ; db $01 : db $48, $62, $A2, $BB ; db $01 : db $48, $60, $A3, $BB ; db $01 : db $48, $5F, $A4, $BB ; db $01 : db $47, $5D, $A6, $BC ; db $01 : db $47, $5C, $A7, $BC ; db $01 : db $47, $5B, $A8, $BC ; db $01 : db $46, $59, $AA, $BD ; db $01 : db $46, $58, $AB, $BD ; db $01 : db $46, $57, $AD, $BD ; db $01 : db $46, $55, $AE, $BE ; db $01 : db $45, $54, $AF, $BE ; db $01 : db $45, $52, $B1, $BE ; db $01 : db $45, $51, $B2, $BF ; db $01 : db $44, $50, $B3, $BF ; db $01 : db $44, $4E, $B5, $BF ; db $01 : db $44, $4D, $B6, $BF ; db $01 : db $43, $4B, $B8, $C0 ; db $01 : db $43, $4A, $B9, $C0 ; db $01 : db $43, $49, $BA, $C0 ; db $01 : db $42, $47, $BC, $C1 ; db $01 : db $42, $46, $BD, $C1 ; db $01 : db $42, $45, $BE, $C1 ; db $01 : db $41, $43, $C0, $C2 ; db $01 : db $41, $42, $C1, $C2 ; db $0D : db $FF, $00, $FF, $00 ; db $00 ;back to listings