342 85 7MB
English Pages 446 Year 2005
Programming The Nintendo Game Boy Advance: The Unofficial Guide
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
Programming The Nintendo Game Boy Advance: The Unofficial Guide
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
!
! "
$
! ! #
" %
&
!
&
'((""" )
'* ,
!
"
+ '
., + * /
!4
0 !-
5
7
0
!
(
!9
!
+
:;;! 8
#!
(
+
!6
12! +
" !7
8! 7
0
!3
7 "! 7
! +
( !7
+ :
5
(
" % "
,
4
/
% : :
J :
&, % :
:
:
, 0
J
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
:
/ J
% %
: 0
J
%
: K9
:
J
,
,
M0
: ,
: ,
:
0
=+A
J
, /
%
J
/
:
J +
%
%
7 "/ #
:
%
J
J
:
: : *#
/
: :
R
1 ?< @
)
-?9 & 0
A 9 - 4
'
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
0
5 40
B
-
Mode 0 (
% D
D
(
%
%
;
9MB
%
%
Mode 1 9 % %
:9 H
4
4 %
%
9
-
%
Mode 2 3%
9
-
4 %
H
%
(
%
4
B
Bitmap-Based Modes (3–5) 0 ; (
>
'
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
I (
Mode 3 -?0 =? /99
9?999999
!
# 4 K6%
$ & &
)
! %
) A %
& * "#$
& & *! & *
&
) A
& *
' A
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
6
!
6% )
A
& * @
4>
' $ &
Installing the Development Tools & *
'
& * & * A
1
& *
A
(??
B )
3# +7*
Installing HAM . .
& *
!
= 9G % 1
! .
3# +7* & *
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
% L& * @
. # 4K
4=
( % )
:7$: < "
) & *
)
& , )
' & *
-./ 0/
1/ / .!2
& * @
4D
*
& * @
49
+ )
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
&
Installing Visual HAM /
A
& *
C 3# +7*
'
(
(??
7 A
) ' & *
"
E
3# +7* / 3# +7* A & * & * "#$ A & * '
& *
. LA
& * & *
A 3(LA
& * & * C
& * 2 & * "#$
& * "#$ A
)#1
& * "#$ LA
-
E )
A
& *
3(L& * ) 3# +7* 3(L& * 3(L& *LA & * 7 "#$
A
& *
A& * 1M1 )
C & *
! ! !
. % @
A
& *% "
A C 2
"
4 F%
3 %
3 " A& * 1M1 +7* !
3 A @
& * 4 H%
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
3#
4 $
@
5
4 ;G
6
.
2
) )#1:
@
) $
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
4 ;;
7
:A
& *
/ 6J
A
& * J
A
& *
-
Configuring Visual HAM & * "#$ & * / @M=
! % &
1M1 A
& *
C
"#$
C & * "#$ )
7 @
A
& *
+ '
A
& *
& *
4 ;=
# $
8 ) 8
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
2
-
A & * ) (L L )
&
& * @
& *
4 ;4
2
) /
!
3(L& *L%
= K= ! A ' A
%
& * "#$ & * @M=
C
A
/
C
/ &
2
) )
&
& * 2
A
& * !
'
C A
& *C 1 -
C A
& * -
7
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
+ % / A
& *
-@
Running Game Boy Programs & * "#$
A
& * )#1 )-
) A @ A
" & *
1 /
' 7 8 $
2 @
4 ;K "
IA !
A
( < 8 $
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
< ' ' & * "#
%$
A ,
;G
.
) B
A
& *
A A & *
-
C . A
'
2 )
3(L
L
L
4=
Running Programs on Your GBA ) 6
-
-
5
C ) '
!
%
2
)
)
3# +7*
'
A
)
)
) ' . 5 7
Programming The Nintendo Game Boy Advance: The Unofficial Guide Copyright (c)2003 by Jonathan S. Harbour -- http://www.jharbour.com
)
'
)-
2
&
3# +7* N
C 0 8" +7* !
-
"