flat assembler
Message board for the users of flat assembler.

Index > Main > Is the 8086 really this simple?

Author
Thread Post new topic Reply to topic
hckr83



Joined: 12 Nov 2006
Posts: 86
Location: usa
hckr83
I'm making a pc emulator, and as such I'm working from cpu specific models(starting with 8086)...though it will eventually support 80386 stuff, I want to be able to set it to "only use 8086" so that people can test to see if their program works on a plain 8086(not some 80486 or whatever)

now my question...
when do something like mov bx,0xFFFF / mov ax,0xFFFF / mov ds,ax / mov [bx],ax
it will write into rom there, will an 8086 just plain reboot, or freeze, or jsut ignore it or what?

now I'm talking about JUST an 8086 not an 80386 in real mode!

and one more thing, the only faults in the 8086 are the divide by zero, overflow(and only by into), and debug single step(int 3 I think) right?

_________________
x86 CPU Emulation library: http://sourceforge.net/projects/x86lib
Post 10 Feb 2007, 03:47
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Goplat



Joined: 15 Sep 2006
Posts: 181
Goplat
You can't write into ROM, if you try it's just ignored. But the address you gave actually isn't ROM - FFFF:FFFF is physical address 10FFEF, which on the 8086 is truncated to 0FFEF.
Post 10 Feb 2007, 06:21
View user's profile Send private message Reply with quote
hckr83



Joined: 12 Nov 2006
Posts: 86
Location: usa
hckr83
oh...yea, your right.. but anyway
Post 10 Feb 2007, 20:01
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 975
Location: Czechoslovakia
MazeGen
8086 real mode exceptions:

fault: int 0, int 6
trap: int 1, int 3, int 4

Stack fault on 8086 should cause shut down.

I'm not sure about int 13 (General Protection Fault) on 8086. It is really implemented since 286?
Post 13 Feb 2007, 09:19
View user's profile Send private message Visit poster's website Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
btw: do not forget pop cs for 8086 Wink
Post 13 Feb 2007, 09:55
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.