"HubbleBubble" <phil_simmons@[EMAIL PROTECTED]
> wrote in message
news:c8858c24-d50a-4842-9d7e-622f2df575b5@[EMAIL PROTECTED]
> Hi All,
>
>
> This 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?)
*Always* put your "db $66" prefixes on the same line as the instruction
they
prefix, otherwise it's very Turbo Debugger unfriendly.
db $66; shr bx,16
Use square brackets when referencing memory locations, so that it is
easier
to see what the instruction is doing:
mov cx,[x1]
les di,[Buff]
Wolfgang has found [the/a] problem, so does it work now?
--
Jay
Jason Burgon - author of Graphic Vision
http://homepage.ntlworld.com/gvision


|