Samples

Data Structure

Assembler Language

;
; SMAPI BIOS Header
;
SMB_HEADER STRUC
@SMBHDR_SIG DB 4 dup (?) ; + - Signature
@SMBHDR_VER DB ? ; + 4 - Major version
@SMBHDR_VER_VER DB ? ; + 5 - Minor version
@SMBHDR_LEN DB ? ; + 6 - Length
@SMBHDR_CHKSUM DB ? ; + 7 - Checksum
@SMBHDR_INFO DW ? ; + 8 - Information word
@SMBHDR_RSV1 DW ? ; + A - Reserve 1
@SMBHDR_R_OFFSET DW ? ; + C - Real mode offset
@SMBHDR_R_SEGMENT DW ? ; + E - Real mode segment
@SMBHDR_RSV2 DW ? ; +1 - Reserve 2
@SMBHDR_P16_OFFSET DW ? ; +12 - 16-bit protected mode offset
@SMBHDR_P16_BASE DD ? ; +14 - 16-bit protected mode base address
@SMBHDR_P32_OFFSET DD ? ; +18 - 32-bit protected mode offset
@SMBHDR_P32_BASET DD ? ; +1C - 32-bit protected mode base address
SMB_HEADER ENDS

SMAPI BIOS B-53