Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Multi-Byte NOP locks up system.

DF
Beginner
423 Views
Hello,

Opened up Win9x DOS under Virtual PC 2008 on a system running W7 x64 on an i7 processor.

I created the smallest program which is:

0F 1F 00 ; NOP DWORD PTR [EAX]
B8 00 4C ; MOV AX,4C00h
CD 21 ; INT 21h

That causes the system to lock up.

If I remove the 0F 1F 00 then it works just fine. So my question is why does it cause a hang? I confirmed CPUID reports the family as 6 (0110b).

TIA!!

D.
0 Kudos
2 Replies
DF
Beginner
423 Views
I found that if I actually start Win98 GUI and open a command prompt and run it, it works fine, however if I shutdown to DOS mode and run it from there, again the VM locks up.

I didn't think multi-byte nop operations needed anything special? do they?

TIA!!

0 Kudos
DF
Beginner
423 Views
It appears to be a bug in Virtual PC - works ok on physical machines and confired it's throwing an execption (and must return to same instruction) as I set one up like this and got looping zeros:

push ax
push bx
mov ax,0E30h
mov bx,7
int 10h
pop bx
pop ax
iret
0 Kudos
Reply