summaryrefslogtreecommitdiff
path: root/as/asm/group7.asm
blob: 0df497c3fc26adea32020daaa99c5616c3c8e759 (plain)
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
; group7.asm
; 0F 01 /nnn

;	INVLPG	m		nnn = 111
;	LGDT	m16&32		nnn = 010
;	LIDT	m16&32		nnn = 011
;	LMSW	r/m16		nnn = 110
;	SGDT	m		nnn = 000
;	SIDT	m		nnn = 001
;	SMSW	r/m16		nnn = 100

	LGDT	EAX		; register not allowed
	LGDT	#$1234		; immed not allowed
	LGDT	WORD PTR [BX]	; illegal size

	LGDT	[BX]
	LGDT	PWORD PTR [BX]
	LGDT	FWORD PTR [BX]
	LGDT	[EAX]

	INVLPG	[EDI]
	SGDT	[BP]
	SIDT	[EBX]

	LMSW	AL		; illeg size
	LMSW	EAX		; illeg size
	LMSW	#$1234		; immed not allowed
	LMSW	DS		; segreg not allowed

	LMSW	AX
	LMSW	[BX]
	LMSW	[EAX]

	SMSW	BX