




BG,XvCgɎgp郁(VRAM)͗prɂĐ؂ւ邱Ƃł悤ɂȂĂ܂B
iǂ炩ƂƋ̍ۂ̂Bj
VRAM̃AhX͈ȉ̒ʂɂȂĂ܂B


DISPCNT  0x04000000  4byte

  31  30  29  28  27  26  25  24  23  22  21  20  19  18  17  16

OEBE    SB        CB    OHBB  TB   VRM   DSP  

              15  14  13  12  11  10   9   8   7   6   5   4   3   2   1   0
            
            OWW1W0OBB3B2B1B0FBOMDMTM3D   MOD    
            
 OE  :A+B  OBJ gpbg        (0=gp, 1=gp)
 BE  :A+B  BG gpbg         (0=gp, 1=gp)
 SB  :A    Screen Base             (in 64K steps) (merged with 2K step in BGxCNT)
 CB  :A    Character Base          (in 64K steps) (merged with 16K step in BGxCNT)
 OH  :A+B  OBJ Processing during H-Blank (was located in Bit5 on GBA)
 BB  :A    Bitmap OBJ 1D-Boundary  (see Bit5-6)
 TB  :A+B  Tile OBJ 1D-Boundary    (see Bit4)
 VRM :A    VRAM block              (0..3=VRAM A..D) (For Capture & above Display Mode=2)
 DSP :A+B  Display Mode            (Engine A: 0..3, Engine B: 0..1, GBA: Green Swap)
 OW  :A+B  OBJ Window Display Flag (0=Off, 1=On)
 W1  :A+B  Window 1 Display Flag   (0=Off, 1=On)
 W0  :A+B  Window 0 Display Flag   (0=Off, 1=On)
 OB  :A+B  Screen Display OBJ      (0=Off, 1=On)
 B3  :A+B  Screen Display BG3      (0=Off, 1=On)
 B2  :A+B  Screen Display BG2      (0=Off, 1=On)
 B1  :A+B  Screen Display BG1      (0=Off, 1=On)
 B0  :A+B  Screen Display BG0      (0=Off, 1=On)
 FB  :A+B  Forced Blank            (1=Allow access to VRAM,Palette,OAM)
 OM  :A+B  Bitmap OBJ Mapping      (0=2D; max 128KB, 1=1D; max 128KB..256KB)
 DM  :A+B  Bitmap OBJ 2D-Dimension (0=128x512 dots, 1=256x256 dots)
 TM  :A+B  Tile OBJ Mapping        (0=2D; max 32KB, 1=1D; max 32KB..256KB)
 3D  :A    BG0 2D/3D Selection     (instead CGB Mode) (0=2D, 1=3D)
 MOD :A+B  BG Mode
              Mode  BG0      BG1      BG2      BG3
              0     Text/3D  Text     Text     Text
              1     Text/3D  Text     Text     Affine
              2     Text/3D  Text     Affine   Affine
              3     Text/3D  Text     Text     Extended
              4     Text/3D  Text     Affine   Extended
              5     Text/3D  Text     Extended Extended
              6     3D       -        Large    -

!!!BGxCNT

!!TEXT MODE
  
   SIZ  DA        SBB       CPMS     CBB       PRI  
  
 SIZ : Screen Size (0-3)
 EP  : Display Area Overflow (0=Transparent, 1=Wraparound; BG2CNT/BG3CNT only)
 SBB : Screen Base Block     (0-31, in units of 2 KBytes) (=BG Map Data)
 CP  : Colors/Palettes       (0=16/16, 1=256/1)
 MS  : Mosaic                (0=Disable, 1=Enable)
     : Not used (must be zero)
 CBB : Character Base Block  (0-15, in units of 16 KBytes) (=BG Tile Data)
 PRI : BG Priority           (0-3, 0=Highest)


 bgcnt-size  text     rotscal    bitmap   large bmp
 0           256x256  128x128    128x128  512x1024
 1           512x256  256x256    256x256  1024x512
 2           256x512  512x512    512x256  -
 3           512x512  1024x1024  512x512  -

!!Affine ́H

!!EXTEND MODE
! rot/scale bitmap mix mode
  
   SIZ  DA        BBB        0MS        MD   PRI  
  
 SIZ : Screen Size (0-3)
 DA  : Display Area Overflow (0=Transparent, 1=Wraparound; BG2CNT/BG3CNT only)
 BBB : Bitmap Base Block     (0-31, in units of 16 KBytes)
 RB  : See below.
 MS  : Mosaic                (0=Disable, 1=Enable)
     : Not used (must be zero)
 MD  : See below.
 PRI : BG Priority           (0-3, 0=Highest)


 RB   MD          g ]^gk[h I
 0    CharBaseLsb rot/scal with 16bit bgmap entries (Text+Affine mixup)
 1    0           rot/scal 256 color bitmap
 1    1           rot/scal direct color bitmap

	


OBJ ATTRIBUTE 0x07000000

ROT/SCALE[hONOFFɂĐݒ肷eقȂB

* m[}[h(ROT/SCALEtO OFF)̏ꍇ
    
   0 SHP  CPMS MOD  OD 0          Y(0-255)            
    
   1 SIZ  HFVF                        X(0-511)            
    
   2   PAL          PRI                IDX(0-1023)            
    
   3                             PRM                              
    
  SHP : OBJ ̌`             (0=lp,1=`,2=c`,3=֎~)
  CP  : F^pbg         (0=16F/16pbg, 1=256F/1pbg)
  MS  : OBJ UCN           (0=Off, 1=On)
  MOD : OBJ [h             (0=ʏ, 1=, 2=OBJEBhE, 3=֎~)
  OD  : OBJ \             (0=\, 1=\)  (bit8  0 ̎)
  Y   : Y W                 (0-255)
  SIZ : OBJTCY              (0..3, OBJ ̌`ɂقȂ )
                                TCY  lp          c
                                  0      8x 8    16x 8     8x16
                                  1     16x16    32x 8     8x32
                                  2     32x32    32x16    16x32
                                  3     64x64    64x32    32x64
  HF  : ]               (0=Normal, 1=Mirrored)   (When bit8 is 0)
  VF  : ]               (0=Normal, 1=Mirrored)   (When bit8 is 0)
  X   : X W                 (0-511)
  PAL : pbgԍ           (0-15)  (256F/1pbg͖gp)
  PRI : BGƂ̃vCIeB   (0-3; 0 ō)
  IDX : ^Cԍ             (0-1023)
  PRM : 


* ROT/SCALE[hON ̏ꍇ
    
   0 SHP  CPMSMOD   DS 1              Y               
    
   1 SIZ         SEL                      X(0-511)            
    
   2   PAL          PRI                   IDX(0-1023)         
    
   3                             PRM                              
    

  DS  : 2{\tO       (0=ʏ, 1=2{\)
  SEL :  ]/gk p[^ԍ (0-31)
        ( OAMɒ`Ă 32̉]/gk p[^̂
          1I܂B)


























