On Thu, 21 Feb 2008 03:32:51 -0800 (PST), HubbleBubble
<phil_simmons@[EMAIL PROTECTED]
> wrote:
>Hi All,
>
>
>Thimovsbs is a bita Vesa(256) code to get a line of pixels - it works
fine
>in protected mode but hangs mysteriously in real mode - I'm fairly new
>to asm & wressling with the segment registers and I can't see what it
>is that I'm doing wrong - all suggestions welcome (Jason?)
>
>:) Phil
>
>
>procedure gline8(x1,x2,y :word;var Buff :pointer);assembler;
> {hangs in real mode , fine in prot}
> asm
> cld
> mov di, offset Buff
The minimum change should load [es:di] with Buff (es is used as the
destination segment register in movsb)
les di, [Buff]
> mov cx,x1
>@[EMAIL PROTECTED]
> push ds
> mov ds,SegA000
> movsb
> pop ds
>
Wolfgang
--
In order to e-mail me a reply to this message, you will have
to remove PLEASE.REMOVE from the address shown in the header
or get it from http://home.netsurf.de/wolfgang.ehrhardt
(Free AES, CRC, Hash, and HMAC source for Pascal/Delphi)


|