Lenovo ThinkPad 770E-ED Technical Reference Manual for the ThinkPad 770 - Page 129

Samples, Data Structure, Assembler Language

Page 129 highlights

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

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