the PC always restart without instruction CLI,
I want to why and What effect the instruction CLI is?
Look:
Code: Select all
cli
;
mov eax,cr0
or eax,1
mov cr0,eax
;
jump <code_sel>,<offset virtual>;This instruction is to jump next instruction
;
virtual: ;Entering P-Mode
mov dx,0fffh
ok1:mov cx,0ffffh
ok:loop ok
dec dx
cmp dx,0
jnz ok1
......