Nintendo DMG-01 - Game Boy Console Manual page 131

Manual
Table of Contents

Advertisement

TM
Game Boy
CPU Manual
19. Set Attribute from ATF ($15)
The data for 45 Attribute files is transfered with
this command. Each ATtribute File is 90 bytes so
90x45 or 4050 bytes of data are transfered. Each
attribute file uses 5 bytes per 8x8 horizontal
line (20 x 4 char/byte x 2 bits/palette) to
describe the color palettes of a line.
Example ATF data:
DB $ff,$00,$00,$00,$02
DB $ff,$00,$00,$00,$02
DB $ff,$00,$00,$00,$02
.....
DB $ff,$00,$00,$00,$02
The above ATtribute File would set the SGB color
palette selection to 3 for the first 4 columns
of the main game action window. The last column
would have SGB color palette 2 selected. All the
other columns would have palette 0 selected.
20. Set Data from ATF ($16) (data)
Transfer specified ATtribute File to GameBoy window.
data:
%/xyyyyyy
x - 0
yyyyyy = ATtribute File number ($00-$2c)
21. GameBoy Window Mask ($17) (data)
data:
$00 = Off
$01 = Transfers VRAM to SNES until cancelled.
by DP
= No Change, 1 = Cancel mask after xfer ATF
; Line #1
; Line #2
; Line #3
; Line #18
4.5. Commands
Page 131

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Game boy

Table of Contents