Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Can Anyone ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 1086 of 1118
Post > Topic >>

Re: Can Anyone tell me why this doesn't work?

by Wolfgang.Ehrhardt.PLEASE.REMOVE@[EMAIL PROTECTED] (Wolfgang Ehrh Feb 21, 2008 at 06:11 PM

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)
 




 8 Posts in Topic:
Can Anyone tell me why this doesn't work?
HubbleBubble <phil_sim  2008-02-21 03:32:51 
Re: Can Anyone tell me why this doesn't work?
Wolfgang.Ehrhardt.PLEASE.  2008-02-21 18:11:48 
Re: Can Anyone tell me why this doesn't work?
"Jason Burgon"   2008-02-22 01:24:25 
Re: Can Anyone tell me why this doesn't work?
HubbleBubble <phil_sim  2008-02-22 03:49:22 
Re: Can Anyone tell me why this doesn't work?
"Jason Burgon"   2008-02-22 15:26:06 
Re: Can Anyone tell me why this doesn't work?
Marco van de Voort <ma  2008-02-22 09:52:10 
Re: Can Anyone tell me why this doesn't work?
"Jason Burgon"   2008-02-23 06:12:47 
Re: Can Anyone tell me why this doesn't work?
HubbleBubble <phil_sim  2008-02-28 01:27:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:44:17 CDT 2008.