Hello. I have v86 working. But I have a problem in Bochs, I get #UD exception, and that in the bochsout file,
Code: Select all
LOCK prefix unallowed (op1=0x53, attr=0x0, mod=0x0, nnn=0)
In Virtual PC it seems to work, but I didn't tried it much.
Here's to v86 code I tried:
Code: Select all
[bits 16]
[org 0x8000]
mov ax, 147
mov ax, 128+2
int 10h
gog:
mov ax, 43
jmp gog
I based my code ( not in this post
) from some sources, v86 from alexey frounze, the virtual 86 tutorial from tim robinson, linux kernel 2.6 etc. I don't see where it could be an error in my code, but it must be an error somewhere.
I have a couple of questions. What values must be in the tss? the ss, ds, es segments of the tss?