flat assembler
Message board for the users of flat assembler.

Index > Main > use## as a mnemonic prefix

Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 19 Mar 2008, 19:25
Hi there!

Is it intended that use## can be used Wink as a mnemonic prefix?

Sincerely yours,
Sergio.
Post 19 Mar 2008, 19:25
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20302
Location: In your JS exploiting you and your system
revolution 20 Mar 2008, 03:28
# is already the concatenation operator. Multiple #'s are treated as one.
Post 20 Mar 2008, 03:28
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 26 Jul 2008, 22:35
That is not what I mean.
Code:
use16 format binary as "MBR"
use32 push eax ;db 0x50    
Post 26 Jul 2008, 22:35
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Jul 2008, 01:28
why do you put "use16" before "format binary" ?
Post 27 Jul 2008, 01:28
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 29 Jul 2008, 03:57
Just as example. Stumble upon this when trying to mix 32 and 16 bit code (guess for what Wink). It seems that formatter's directive without arguments doesn't confuse assembler if it occurs before opcode mnemonic (buf after label).
Post 29 Jul 2008, 03:57
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 29 Jul 2008, 14:48
Bad example. There is no reason at all to precede "format" with any directive.

Mixing 16bit and 32bit code is not a problem:

Code:
use16

mov ax, [bx+si]
jmp 0008:xyz

use32

xyz:
mov eax, [ebx]
....    
Post 29 Jul 2008, 14:48
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.