mirror of
https://github.com/buhman/nds.git
synced 2025-06-18 14:35:38 -04:00
registers: add struct declarations
This commit is contained in:
parent
46cfc93060
commit
b2e8b3b1ea
@ -50,3 +50,5 @@ for line in c_source(registers):
|
||||
print('};')
|
||||
for line in c_asserts(registers):
|
||||
print(line)
|
||||
print()
|
||||
print(f'extern struct {struct_name} {struct_name} __asm("{struct_name}");')
|
||||
|
@ -466,3 +466,5 @@ static_assert((offsetof (struct graphics_engine_a, VECMTX_RESULT_5)) == 0x694);
|
||||
static_assert((offsetof (struct graphics_engine_a, VECMTX_RESULT_6)) == 0x698);
|
||||
static_assert((offsetof (struct graphics_engine_a, VECMTX_RESULT_7)) == 0x69c);
|
||||
static_assert((offsetof (struct graphics_engine_a, VECMTX_RESULT_8)) == 0x6a0);
|
||||
|
||||
extern struct graphics_engine_a graphics_engine_a __asm("graphics_engine_a");
|
||||
|
@ -79,3 +79,5 @@ 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);
|
||||
|
||||
extern struct graphics_engine_b graphics_engine_b __asm("graphics_engine_b");
|
||||
|
Loading…
Reference in New Issue
Block a user