flat assembler
Message board for the users of flat assembler.

Index > Main > jump inside "struct" (your opinion?)

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 03 Oct 2010, 12:37
Code:
struct A
Ba :
  C   dd ?
  D   dd ?
ends

jmp Ba
    
This, above, compiles.
But what sense can we give it ?
What might be the usefulness of this code ?
(sorry but I dissects fasm to develop next wink)

_________________
I am not young enough to know everything (Oscar Wilde)- Image


Last edited by ouadji on 03 Oct 2010, 12:41; edited 1 time in total
Post 03 Oct 2010, 12:37
View user's profile Send private message Send e-mail Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 03 Oct 2010, 12:41
Code:
C dd ?
D dd ?
...
mov eax,[dw_inst0]
mov ebx,[dw_inst1]
mov [C],eax
mov [D],ebx
...
    


it can be used for self modifying code. but it doesn't need struct for that.

struct is a high level macro that i never use.
Post 03 Oct 2010, 12:41
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.