Programming Cautions; Rom Registration Data; Initial Data; Sou_Trn Default Data - Nintendo GAME BOY Programming Manual

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

Game Boy Programming Manual

5. PROGRAMMING CAUTIONS

5.1 ROM Registration Data

To use SGB functions (system commands), the following values must be stored at the ROM
addresses indicated.
146h

5.2 Initial Data

When writing programs that use the system commands of SGB and SGB2, use the initialization
routine of the game program to send the following 8 packets of default data to the register file.
INIT1
DEFB
INIT2
DEFB
INIT3
DEFB
INIT4
DEFB
INIT5
DEFB
INIT6
DEFB
INIT7
DEFB
INIT8
DEFB
5.3 SOU_TRN initial data
When using the
SOU_TRN
the register file before
STI
DB
$79, $00, $09, $00, $0B
DB
$AD, $C2, $02, $C9, $09, $D0, $1A, $A9, $01, $8D, $00
ST2
DB
$79, $0B, $09, $00, $0B
DB
$42, $AF, $DB, $FF, $00, $F0, $05, $20, $73, $C5, $80
ST3
DB
$79, $16, $09, $00, $0B
DB
$03, $20, $76, $C5, $A9, $31, $8D, $00, $42, $68, $68
ST4
DB
$79, $21, $09, $00, $01
DB
$60, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
ST5
DB
$79, $00, $08, $00, $03
DB
$4C, $00, $09, $00, $00, $00, $00, $00, $00, $00, $00
03h
and
14Bh
$79,$5D,$08,$00,$0B,$8C,$D0,$F4,$60,$00,$00,$00,$00,$00,$00,$00
$79,$52,$08,$00,$0B,$A9,$E7,$9F,$01,$C0,$7E,$E8,$E8,$E8,$E8,$E0
$79,$47,$08,$00,$0B,$C4,$D0,$16,$A5,$CB,$C9,$05,$D0,$10,$A2,$28
$79,$3C,$08,$00,$0B,$F0,$12,$A5,$C9,$C9,$C8,$D0,$1C,$A5,$CA,$C9
$79,$31,$08,$00,$0B,$0C,$A5,$CA,$C9,$7E,$D0,$06,$A5,$CB,$C9,$7E
$79,$26,$08,$00,$0B,$39,$CD,$48,$0C,$D0,$34,$A5,$C9,$C9,$80,$D0
$79,$1B,$08,$00,$0B,$EA,$EA,$EA,$EA,$EA,$A9,$01,$CD,$4F,$0C,$D0
$79,$10,$08,$00,$0B,$4C,$20,$08,$EA,$EA,$EA,$EA,$EA,$60,$EA,$EA
system command, send the following 5 packets of
is used.
SOU_TRN
33h
186
default data to
SOU_TRN

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents