Fix generation of GLOBAL asm constructors

This commit is contained in:
jaby 2024-09-28 17:48:06 +02:00
parent 14b760dd54
commit 54b12b13e9
1 changed files with 5 additions and 2 deletions

View File

@ -46,10 +46,13 @@ namespace JabyEngine {
}; };
#pragma pack(pop) #pragma pack(pop)
// Required so GCC does not create guards for the ReverbON reference
#define __eon_declaration __new_declare_io_port(EchoIO, 0x1F801D98)
static auto& Voice = __new_declare_io_port_array(struct Voice, VoiceCount, 0x1F801C00); static auto& Voice = __new_declare_io_port_array(struct Voice, VoiceCount, 0x1F801C00);
static auto& PMON = __new_declare_io_port(PitchModulationIO, 0x1F801D90); static auto& PMON = __new_declare_io_port(PitchModulationIO, 0x1F801D90);
static auto& NON = __new_declare_io_port(NoiseIO, 0x1F801D94); static auto& NON = __new_declare_io_port(NoiseIO, 0x1F801D94);
static auto& EON = __new_declare_io_port(EchoIO, 0x1F801D98); static auto& EON = __eon_declaration;
static auto& SRAMTransferAdr = __new_declare_io_port(SRAMAdrIO, 0x1F801DA6); static auto& SRAMTransferAdr = __new_declare_io_port(SRAMAdrIO, 0x1F801DA6);
static auto& ControlRegister = __new_declare_io_port(ControlRegisterIO, 0x1F801DAA); static auto& ControlRegister = __new_declare_io_port(ControlRegisterIO, 0x1F801DAA);
static auto& DataTransferControl = __new_declare_io_port(DataTransferControlIO, 0x1F801DAC); static auto& DataTransferControl = __new_declare_io_port(DataTransferControlIO, 0x1F801DAC);
@ -81,7 +84,7 @@ namespace JabyEngine {
static inline auto& Left = __new_declare_io_port(SimpleVolumeIO, 0x1F801D84); static inline auto& Left = __new_declare_io_port(SimpleVolumeIO, 0x1F801D84);
static inline auto& Right = __new_declare_io_port(SimpleVolumeIO, 0x1F801D86); static inline auto& Right = __new_declare_io_port(SimpleVolumeIO, 0x1F801D86);
}; };
static inline auto& On = EON; static inline auto& On = __eon_declaration;
static inline auto& WorkAreaAdr = __new_declare_io_port(SRAMAdrIO, 0x1F801DA2); static inline auto& WorkAreaAdr = __new_declare_io_port(SRAMAdrIO, 0x1F801DA2);
}; };
} }