Mail Archives: djgpp/1998/04/16/02:01:02
lou smith wrote:
>
> i dont quite understand how segment overrides work..
> does one have call ".byte 0x64" before EVERY SINGLE memory access..
> Does that mean a instruction like "rep
> stosl"
> is impossible - because each of those stores should have been
> preceded by a "byte 0x64" bytecode -- requiring an explicit ecx-type
> loop ???
Of course you don't need that before every memory access; only those
which transfer data to conventional memory using the _farpokeX/_farpeekX
convention. And you only need the segment override once per looping
construct, as long as you don't call any library code that alters the
value of %fs.
--
---------------------------------------------------------------------
| John M. Aldrich |"Men rarely (if ever) manage to dream |
| aka Fighteer I |up a god superior to themselves. Most |
| mailto:fighteer AT cs DOT com |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child." - Lazarus Long |
---------------------------------------------------------------------
- Raw text -