11.11.2012 00:21, Bart Oldeman пишет:
>
> This is more or less the strategy that's been used in DOSEMU since
> even before instremu.c existed, where pages are protected r/o. Problem
> is that that works perfectly for normal "video" modes, but not for
> planar VGA modes such as 640x480 at 16 colors where VGA memory should
> be regarded as MMIO. That is, every write to and read from the 64K
> buffer at 0xa0000 needs to translated to a write or read to/from some
> combination of the four underlying planes totalling 256K.
Yes, I understand that. But I still have a naive
feeling that the things can be prepared in advance.
For example, based on the current register values,
you may be able to prepare the memory content
the way it should have been read from the VGA mem,
and store it to the buffer for reading. If some reg
changes the value, you can recalculate that buffer,
since the read values should now change.
What will we fail to do, read, write, or xor?
Could you just, if possible, give a simple example that
will show that the problem is unsolvable?
Having MMIOs just for that, is nice for cleanup, but
probably not extremely practical. I'd like to get rid
of the false sense of a trivial solution, or I will not
sleep well. :)

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to