flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > virtual with forward error

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 03 Feb 2023, 19:09
Code:
;
        xor     [Flags-ebp],1
;
virtual at ebp
Flags      db ?
ASize:
end virtual
;    


display: invalid address

_________________
smaller is better
Post 03 Feb 2023, 19:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20516
Location: In your JS exploiting you and your system
revolution 03 Feb 2023, 19:17
You can do this:
Code:
;
if defined Flags
        xor     [Flags-ebp],1
end if
;
virtual at ebp
Flags      db ?
ASize:
end virtual
;    
Post 03 Feb 2023, 19:17
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 03 Feb 2023, 19:24
Works with fasmg, though.
Post 03 Feb 2023, 19:24
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 03 Feb 2023, 20:35
Thanks.
Post 03 Feb 2023, 20:35
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20516
Location: In your JS exploiting you and your system
revolution 04 Feb 2023, 04:46
Tomasz Grysztar wrote:
Works with fasmg, though.
I get a different result with fasmg.
Code:
~ fasmg virtualforward.asm 
flat assembler  version g.igd4j
virtualforward.asm [2]:
        xor [Flags-ebp],1
Processed: xor [Flags-ebp],1
Error: illegal instruction.    
fasmg doesn't know what xor is.
Post 04 Feb 2023, 04:46
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 04 Feb 2023, 08:27
Of course, unless you include the instruction set for the right CPU. Nothing new here.
Post 04 Feb 2023, 08:27
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.