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 6 of 8 Topic 1086 of 1114
Post > Topic >>

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

by Marco van de Voort <marcov@[EMAIL PROTECTED] > Feb 22, 2008 at 09:52 AM

On 2008-02-21, HubbleBubble <phil_simmons@[EMAIL PROTECTED]
> wrote:

I never really did this kind of $66 stuff, but I can vaguely remember that
there were two prefixes, $66 and $67, and that in general $66 evaluates to
the instruction with all parts updated to 32-bit, and $67 lets the
register
sizes remain 16-bit. (maybe with the exception of memory operands)

>           DB $66
>           mov     ax,cx

So this would be mov eax,ecx while

db $67 mov ax,cx

would remain ax,cx

If I keep that in the back of my head, I wonder what will happen to this
line:

>           DB $66
>           mov     si,word ptr LineOffsets[bx]

Will this also become dword ptr?

So in general I'd try to put this code in some assembler, assemble, and
then
disassemble again with a disassembler that really knows the 32-bit opcodes
and verify that what comes out of it is really what you want. (and put
that
then in comments in the TP code)

I haven't done any realmode work since I left TP in 1997-8, so don't
really
have strong recommendations, but maybe others can make suggestions about
proper tooling for
 




 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 Sun Jul 6 2:39:30 CDT 2008.