blinders

by snydej

Game:

Description:

!bg_window_settings_lo = $2123
!bg_window_settings_hi = $2124
!sprite_window_settings = $2125
!window1_left = $2126
!window1_right = $2127
!through_main = $212c
!through_sub = $212d
!main_window_enable = $212e
!sub_window_enable = $212f
!color_addition_select = $2130
!color_math = $2131
!fixed_color = $2132
!color_math_mirror = $40
!bg_window_settings_lo_mirror = $41
!bg_window_settings_hi_mirror = $42
!sprite_window_settings_mirror = $43
!color_addition_select_mirror = $44

	phb
	
	lda !mode
	cmp #$14
	bne end
	
	lda #0
	pha
	plb

	lda #%00110011
	sta !bg_window_settings_lo
	sta !bg_window_settings_lo_mirror
	lda #%00110000
	sta !bg_window_settings_hi
	sta !bg_window_settings_hi_mirror
	lda #%00000011
	sta !sprite_window_settings
	sta !sprite_window_settings_mirror
	lda #%00011111
	sta !through_main
	sta !main_window_enable
	lda #0
	sta !through_sub
	sta !sub_window_enable
	lda #%00110000
	sta !color_addition_select
	sta !color_addition_select_mirror
	
	clc
	lda $7e
	bmi +
	sbc #$18
	bpl ++
	lda #0
	bra ++
+	sbc	#$18
++	sta !window1_left

	clc
	lda  $7e
	bpl +
	adc	#$28
	bmi ++
	lda #$ff
	bra ++
+	adc #$28
++	sta !window1_right

end:
	plb
	rtl
back to listings