mirror of
https://github.com/buhman/nds.git
synced 2025-06-18 14:35:38 -04:00
remove DB_ prefix
This commit is contained in:
parent
3e2f9fddc1
commit
46cfc93060
@ -1,42 +1,42 @@
|
||||
0x000 DB_DISPCNT 57 2D Graphics Engine B display control
|
||||
0x000 DISPCNT 57 2D Graphics Engine B display control
|
||||
0x002
|
||||
|
||||
0x008 DB_BG0CNT 81 2D Graphics Engine B BG0 control
|
||||
0x00a DB_BG1CNT 81 2D Graphics Engine B BG1 control
|
||||
0x00c DB_BG2CNT 83 2D Graphics Engine B BG2 control
|
||||
0x00e DB_BG3CNT 83 2D Graphics Engine B BG3 control
|
||||
0x010 DB_BG0HOFS 105 2D Graphics Engine B BG0 display H offset
|
||||
0x012 DB_BG0VOFS 105 2D Graphics Engine B BG0 display V offset
|
||||
0x014 DB_BG1HOFS 105 2D Graphics Engine B BG1 display H offset
|
||||
0x016 DB_BG1VOFS 105 2D Graphics Engine B BG1 display V offset
|
||||
0x018 DB_BG2HOFS 105 2D Graphics Engine B BG2 display H offset
|
||||
0x01a DB_BG2VOFS 105 2D Graphics Engine B BG2 display V offset
|
||||
0x01c DB_BG3HOFS 105 2D Graphics Engine B BG3 display H offset
|
||||
0x01e DB_BG3VOFS 105 2D Graphics Engine B BG3 display V offset
|
||||
0x020 DB_BG2PA 108 2D Graphics Engine B BG2 affine transformation parameters (same line X-direction reference shift dx)
|
||||
0x022 DB_BG2PB 108 2D Graphics Engine B BG2 affine transformation parameters (next line X-direction reference shift dmx)
|
||||
0x024 DB_BG2PC 108 2D Graphics Engine B BG2 affine transformation parameters (same line Y-direction reference shift dy)
|
||||
0x026 DB_BG2PD 108 2D Graphics Engine B BG2 affine transformation parameters (next line Y-direction reference shift dmy)
|
||||
0x028 DB_BG2X 107 2D Graphics Engine B BG2 reference start point (x coordinate)
|
||||
0x008 BG0CNT 81 2D Graphics Engine B BG0 control
|
||||
0x00a BG1CNT 81 2D Graphics Engine B BG1 control
|
||||
0x00c BG2CNT 83 2D Graphics Engine B BG2 control
|
||||
0x00e BG3CNT 83 2D Graphics Engine B BG3 control
|
||||
0x010 BG0HOFS 105 2D Graphics Engine B BG0 display H offset
|
||||
0x012 BG0VOFS 105 2D Graphics Engine B BG0 display V offset
|
||||
0x014 BG1HOFS 105 2D Graphics Engine B BG1 display H offset
|
||||
0x016 BG1VOFS 105 2D Graphics Engine B BG1 display V offset
|
||||
0x018 BG2HOFS 105 2D Graphics Engine B BG2 display H offset
|
||||
0x01a BG2VOFS 105 2D Graphics Engine B BG2 display V offset
|
||||
0x01c BG3HOFS 105 2D Graphics Engine B BG3 display H offset
|
||||
0x01e BG3VOFS 105 2D Graphics Engine B BG3 display V offset
|
||||
0x020 BG2PA 108 2D Graphics Engine B BG2 affine transformation parameters (same line X-direction reference shift dx)
|
||||
0x022 BG2PB 108 2D Graphics Engine B BG2 affine transformation parameters (next line X-direction reference shift dmx)
|
||||
0x024 BG2PC 108 2D Graphics Engine B BG2 affine transformation parameters (same line Y-direction reference shift dy)
|
||||
0x026 BG2PD 108 2D Graphics Engine B BG2 affine transformation parameters (next line Y-direction reference shift dmy)
|
||||
0x028 BG2X 107 2D Graphics Engine B BG2 reference start point (x coordinate)
|
||||
0x02a
|
||||
0x02c DB_BG2Y 107 2D Graphics Engine B BG2 reference start point (y coordinate)
|
||||
0x02c BG2Y 107 2D Graphics Engine B BG2 reference start point (y coordinate)
|
||||
0x02e
|
||||
0x030 DB_BG3PA 108 2D Graphics Engine B BG3 affine transformation parameters (same line X-direction reference shift dx)
|
||||
0x032 DB_BG3PB 108 2D Graphics Engine B BG3 affine transformation parameters (next line X-direction reference shift dmx)
|
||||
0x034 DB_BG3PC 108 2D Graphics Engine B BG3 affine transformation parameters (same line Y-direction reference shift dy)
|
||||
0x036 DB_BG3PD 108 2D Graphics Engine B BG3 affine transformation parameters (next line Y-direction reference shift dmy)
|
||||
0x038 DB_BG3X 107 2D Graphics Engine B BG3 reference start point (x coordinate)
|
||||
0x030 BG3PA 108 2D Graphics Engine B BG3 affine transformation parameters (same line X-direction reference shift dx)
|
||||
0x032 BG3PB 108 2D Graphics Engine B BG3 affine transformation parameters (next line X-direction reference shift dmx)
|
||||
0x034 BG3PC 108 2D Graphics Engine B BG3 affine transformation parameters (same line Y-direction reference shift dy)
|
||||
0x036 BG3PD 108 2D Graphics Engine B BG3 affine transformation parameters (next line Y-direction reference shift dmy)
|
||||
0x038 BG3X 107 2D Graphics Engine B BG3 reference start point (x coordinate)
|
||||
0x03a
|
||||
0x03c DB_BG3Y 107 2D Graphics Engine B BG3 reference start point (y coordinate)
|
||||
0x03c BG3Y 107 2D Graphics Engine B BG3 reference start point (y coordinate)
|
||||
0x03e
|
||||
0x040 DB_WIN0H 144 2D Graphics Engine B window 0H size
|
||||
0x042 DB_WIN1H 144 2D Graphics Engine B window 1H size
|
||||
0x044 DB_WIN0V 144 2D Graphics Engine B window 0V size
|
||||
0x046 DB_WIN1V 144 2D Graphics Engine B window 1V size
|
||||
0x048 DB_WININ 143 2D Graphics Engine B window inside
|
||||
0x04a DB_WINOUT 143 2D Graphics Engine B window outside
|
||||
0x04c DB_MOSAIC 151 2D Graphics Engine B mosaic size
|
||||
0x050 DB_BLDCNT 147 2D Graphics Engine B color special effects
|
||||
0x052 DB_BLDALPHA 149 2D Graphics Engine B alpha blending factor
|
||||
0x054 DB_BLDY 150 2D Graphics Engine B brightness conversion factor
|
||||
0x06c DB_MASTER_BRIGHT 71 Image output B master brightness
|
||||
0x040 WIN0H 144 2D Graphics Engine B window 0H size
|
||||
0x042 WIN1H 144 2D Graphics Engine B window 1H size
|
||||
0x044 WIN0V 144 2D Graphics Engine B window 0V size
|
||||
0x046 WIN1V 144 2D Graphics Engine B window 1V size
|
||||
0x048 WININ 143 2D Graphics Engine B window inside
|
||||
0x04a WINOUT 143 2D Graphics Engine B window outside
|
||||
0x04c MOSAIC 151 2D Graphics Engine B mosaic size
|
||||
0x050 BLDCNT 147 2D Graphics Engine B color special effects
|
||||
0x052 BLDALPHA 149 2D Graphics Engine B alpha blending factor
|
||||
0x054 BLDY 150 2D Graphics Engine B brightness conversion factor
|
||||
0x06c MASTER_BRIGHT 71 Image output B master brightness
|
||||
|
@ -1,2 +1,2 @@
|
||||
python format.py 0x04000000.txt graphics_engine_a > graphics_engine_a.h
|
||||
python format.py 0x04001000.txt graphics_engine_a > graphics_engine_b.h
|
||||
python format.py 0x04001000.txt graphics_engine_b > graphics_engine_b.h
|
||||
|
@ -2,80 +2,80 @@
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
|
||||
struct graphics_engine_a {
|
||||
volatile uint32_t DB_DISPCNT;
|
||||
struct graphics_engine_b {
|
||||
volatile uint32_t DISPCNT;
|
||||
volatile uint8_t _pad0[4];
|
||||
volatile uint16_t DB_BG0CNT;
|
||||
volatile uint16_t DB_BG1CNT;
|
||||
volatile uint16_t DB_BG2CNT;
|
||||
volatile uint16_t DB_BG3CNT;
|
||||
volatile uint16_t DB_BG0HOFS;
|
||||
volatile uint16_t DB_BG0VOFS;
|
||||
volatile uint16_t DB_BG1HOFS;
|
||||
volatile uint16_t DB_BG1VOFS;
|
||||
volatile uint16_t DB_BG2HOFS;
|
||||
volatile uint16_t DB_BG2VOFS;
|
||||
volatile uint16_t DB_BG3HOFS;
|
||||
volatile uint16_t DB_BG3VOFS;
|
||||
volatile uint16_t DB_BG2PA;
|
||||
volatile uint16_t DB_BG2PB;
|
||||
volatile uint16_t DB_BG2PC;
|
||||
volatile uint16_t DB_BG2PD;
|
||||
volatile uint32_t DB_BG2X;
|
||||
volatile uint32_t DB_BG2Y;
|
||||
volatile uint16_t DB_BG3PA;
|
||||
volatile uint16_t DB_BG3PB;
|
||||
volatile uint16_t DB_BG3PC;
|
||||
volatile uint16_t DB_BG3PD;
|
||||
volatile uint32_t DB_BG3X;
|
||||
volatile uint32_t DB_BG3Y;
|
||||
volatile uint16_t DB_WIN0H;
|
||||
volatile uint16_t DB_WIN1H;
|
||||
volatile uint16_t DB_WIN0V;
|
||||
volatile uint16_t DB_WIN1V;
|
||||
volatile uint16_t DB_WININ;
|
||||
volatile uint16_t DB_WINOUT;
|
||||
volatile uint16_t DB_MOSAIC;
|
||||
volatile uint16_t BG0CNT;
|
||||
volatile uint16_t BG1CNT;
|
||||
volatile uint16_t BG2CNT;
|
||||
volatile uint16_t BG3CNT;
|
||||
volatile uint16_t BG0HOFS;
|
||||
volatile uint16_t BG0VOFS;
|
||||
volatile uint16_t BG1HOFS;
|
||||
volatile uint16_t BG1VOFS;
|
||||
volatile uint16_t BG2HOFS;
|
||||
volatile uint16_t BG2VOFS;
|
||||
volatile uint16_t BG3HOFS;
|
||||
volatile uint16_t BG3VOFS;
|
||||
volatile uint16_t BG2PA;
|
||||
volatile uint16_t BG2PB;
|
||||
volatile uint16_t BG2PC;
|
||||
volatile uint16_t BG2PD;
|
||||
volatile uint32_t BG2X;
|
||||
volatile uint32_t BG2Y;
|
||||
volatile uint16_t BG3PA;
|
||||
volatile uint16_t BG3PB;
|
||||
volatile uint16_t BG3PC;
|
||||
volatile uint16_t BG3PD;
|
||||
volatile uint32_t BG3X;
|
||||
volatile uint32_t BG3Y;
|
||||
volatile uint16_t WIN0H;
|
||||
volatile uint16_t WIN1H;
|
||||
volatile uint16_t WIN0V;
|
||||
volatile uint16_t WIN1V;
|
||||
volatile uint16_t WININ;
|
||||
volatile uint16_t WINOUT;
|
||||
volatile uint16_t MOSAIC;
|
||||
volatile uint8_t _pad1[2];
|
||||
volatile uint16_t DB_BLDCNT;
|
||||
volatile uint16_t DB_BLDALPHA;
|
||||
volatile uint16_t DB_BLDY;
|
||||
volatile uint16_t BLDCNT;
|
||||
volatile uint16_t BLDALPHA;
|
||||
volatile uint16_t BLDY;
|
||||
volatile uint8_t _pad2[22];
|
||||
volatile uint16_t DB_MASTER_BRIGHT;
|
||||
volatile uint16_t MASTER_BRIGHT;
|
||||
};
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_DISPCNT)) == 0x000);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG0CNT)) == 0x008);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG1CNT)) == 0x00a);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2CNT)) == 0x00c);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3CNT)) == 0x00e);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG0HOFS)) == 0x010);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG0VOFS)) == 0x012);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG1HOFS)) == 0x014);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG1VOFS)) == 0x016);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2HOFS)) == 0x018);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2VOFS)) == 0x01a);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3HOFS)) == 0x01c);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3VOFS)) == 0x01e);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2PA)) == 0x020);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2PB)) == 0x022);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2PC)) == 0x024);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2PD)) == 0x026);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2X)) == 0x028);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG2Y)) == 0x02c);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3PA)) == 0x030);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3PB)) == 0x032);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3PC)) == 0x034);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3PD)) == 0x036);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3X)) == 0x038);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BG3Y)) == 0x03c);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WIN0H)) == 0x040);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WIN1H)) == 0x042);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WIN0V)) == 0x044);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WIN1V)) == 0x046);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WININ)) == 0x048);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_WINOUT)) == 0x04a);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_MOSAIC)) == 0x04c);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BLDCNT)) == 0x050);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BLDALPHA)) == 0x052);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_BLDY)) == 0x054);
|
||||
static_assert((offsetof (struct graphics_engine_a, DB_MASTER_BRIGHT)) == 0x06c);
|
||||
static_assert((offsetof (struct graphics_engine_b, DISPCNT)) == 0x000);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG0CNT)) == 0x008);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG1CNT)) == 0x00a);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2CNT)) == 0x00c);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3CNT)) == 0x00e);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG0HOFS)) == 0x010);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG0VOFS)) == 0x012);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG1HOFS)) == 0x014);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG1VOFS)) == 0x016);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2HOFS)) == 0x018);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2VOFS)) == 0x01a);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3HOFS)) == 0x01c);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3VOFS)) == 0x01e);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2PA)) == 0x020);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2PB)) == 0x022);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2PC)) == 0x024);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2PD)) == 0x026);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2X)) == 0x028);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG2Y)) == 0x02c);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3PA)) == 0x030);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3PB)) == 0x032);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3PC)) == 0x034);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3PD)) == 0x036);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3X)) == 0x038);
|
||||
static_assert((offsetof (struct graphics_engine_b, BG3Y)) == 0x03c);
|
||||
static_assert((offsetof (struct graphics_engine_b, WIN0H)) == 0x040);
|
||||
static_assert((offsetof (struct graphics_engine_b, WIN1H)) == 0x042);
|
||||
static_assert((offsetof (struct graphics_engine_b, WIN0V)) == 0x044);
|
||||
static_assert((offsetof (struct graphics_engine_b, WIN1V)) == 0x046);
|
||||
static_assert((offsetof (struct graphics_engine_b, WININ)) == 0x048);
|
||||
static_assert((offsetof (struct graphics_engine_b, WINOUT)) == 0x04a);
|
||||
static_assert((offsetof (struct graphics_engine_b, MOSAIC)) == 0x04c);
|
||||
static_assert((offsetof (struct graphics_engine_b, BLDCNT)) == 0x050);
|
||||
static_assert((offsetof (struct graphics_engine_b, BLDALPHA)) == 0x052);
|
||||
static_assert((offsetof (struct graphics_engine_b, BLDY)) == 0x054);
|
||||
static_assert((offsetof (struct graphics_engine_b, MASTER_BRIGHT)) == 0x06c);
|
||||
|
Loading…
Reference in New Issue
Block a user