You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tiles are always indexed using an 8-bit integer, but the addressing method may differ:
51
+
52
+
- The "**$8000 method**" uses \$8000 as its base pointer and uses an unsigned addressing, meaning that tiles 0-127 are in block 0, and tiles 128-255 are in block 1.
53
+
- The "**$8800 method**" uses \$9000 as its base pointer and uses a signed addressing, meaning that tiles 0-127 are in block 2, and tiles -128 to -1 are in block 1; or, to put it differently, "$8800 addressing" takes tiles 0-127 from block 2 and tiles 128-255 from block 1.
56
54
55
+
(You can notice that block 1 is shared by both addressing methods)
57
56
58
-
Tiles are always indexed using an 8-bit integer, but the addressing
59
-
method may differ. The "$8000 method" uses \$8000 as its base pointer
60
-
and uses an unsigned addressing, meaning that tiles 0-127 are in block
61
-
0, and tiles 128-255 are in block 1. The "$8800 method" uses \$9000 as
62
-
its base pointer and uses a signed addressing, meaning that tiles 0-127
63
-
are in block 2, and tiles -128 to -1 are in block 1, or to put it differently,
64
-
"$8800 addressing" takes tiles 0-127 from block 2
65
-
and tiles 128-255 from block 1. (You can notice that block 1 is shared
66
-
by both addressing methods)
57
+
Objects always use "$8000 addressing", but the BG and Window can use either mode, controlled by [LCDC bit 4](<#LCDC.4 — BG and Window tile data area>).
67
58
68
-
Objects always use "$8000 addressing", but the BG and Window can use either
69
-
mode, controlled by [LCDC bit 4](<#LCDC.4 — BG and Window tile data area>).
59
+
## Data format
70
60
71
61
Each tile occupies 16 bytes, where each line is represented by 2 bytes:
0 commit comments