10 ; 0000: tilemap for BG1 (32x32 4bpp: 512b)
11 ; 2048: BG3-base (h/v offsets)
12 ; 8192: tile data (16k)
14 vmem_tiles_offs = 4096 ; 4k words
15 hoffs_offs = 1024 ; 2k words
29 setreg REG_BGMODE, $02 ; mode 2, 8x8 tiles
30 setreg REG_BG12NBA, $1 ; tiles at offs 8kb
31 setreg REG_TM, $1 ; main screen: BG1
44 cpx #32 ; 16 entries 2 bytes each
47 pea logo4bpp_tiles_width * logo4bpp_tiles_height / 2
59 pea logo4bpp_tilemap_rows * logo4bpp_tilemap_cols * 2
76 ; copy_vmem(vmem_offset, src, num_words)
78 rep #$30 ; 16bit accumulator and index registers
82 tsc ; and make it point to the stack
84 sep #$20 ; restore 8bit accum
93 lda #$80 ; auto incerment after wiriting high byte
111 sep #$10 ; back to 8bit index registers
147 setreg REG_VMAINC, $80
180 setreg REG_CGWSEL, $30
182 setreg REG_COLDATA, $e0
203 .byte $20 ; fast ROM, LoROM mapping
205 .byte 1 ; ROM banks 1 = 32k
207 .byte 2 ; country europe/oceania/asia
208 .byte 0 ; developer id: none
209 .byte 0 ; ROM version
210 .word $ffff ; checksum complement
217 .word 0 ; NMI (vblank)
225 .word 0 ; NMI (vblank)