C Language
//
// SMAPI BIOS Header
//
typedef struct {
BYTE SMBHDR_SIG]4[ ; // Signature
BYTE SMBHDR_VER ; // Major version
BYTE SMBHDR_VER_VER ; // Minor version
BYTE SMBHDR_LEN ; // Length
BYTE SMBHDR_CHKSUM ; // Checksum
WORD SMBHDR_INFO ; // Information word
WORD SMBHDR_RSV1 ; // Reserve 1
WORD SMBHDR_R_OFFSET ; // Real mode offset
WORD SMBHDR_R_SEGMENT ; // Real mode segment
WORD SMBHDR_RSV2 ; // Reserve 2
WORD SMBHDR_P16_OFFSET ; // 16-bit Protect mode offset
DWORD SMBHDR_P16_BASE ; // 16-bit Protect mode base address
DWORD SMBHDR_P32_OFFSET ; // 32-bit Protect mode offset
DWORD SMBHDR_P32_BASE ; // 32-bit Protect mode base address
} SMB_HEADER, ᑍPSMB_HEADER ;
SMAPI BIOS B-55