registers: add struct declarations

This commit is contained in:
Zack Buhman 2024-08-30 04:26:57 -05:00
parent 46cfc93060
commit b2e8b3b1ea
3 changed files with 6 additions and 0 deletions

View File

@ -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}");')

View File

@ -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");

View File

@ -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");