flat assembler
Message board for the users of flat assembler.

Index > Main > Adressing mode

Author
Thread Post new topic Reply to topic
penguinglx



Joined: 05 Aug 2007
Posts: 10
penguinglx
fld dword 20[ebp]

I got error message for that :invalid operand
can anyone fix that for me ,I read a assembly book , it mentioned about that kind of addressing mode for 80386 and later processors , but I cant make it work with fasm

thanks
Post 25 Aug 2007, 06:38
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
With fasm it would be: fld dword [ebp + 20]
looks like masm code?
Post 25 Aug 2007, 06:45
View user's profile Send private message Reply with quote
penguinglx



Joined: 05 Aug 2007
Posts: 10
penguinglx
thanks , one more question

Function1:
db c3h ->>> this is Ret instruction

I got Error Message :undefined symbol

help me, why I cant write the opcode
Post 25 Aug 2007, 07:03
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
do this:
Code:
db 0c3h    

the value is misinterpreted as a symbol. think about it.
Post 25 Aug 2007, 07:55
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 707
Location: Adelaide
sinsi
heh heh...

0.1

bet you don't make that mistake eh Laughing
Post 25 Aug 2007, 09:11
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
yeah sinsi I never made that mistake (so far!) myself Wink
what does "sinsi" mean?
Post 25 Aug 2007, 09:35
View user's profile Send private message Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 707
Location: Adelaide
sinsi
"sinsi" was my dog's name...so sad I know but
Quote:
Man's best friend
etc...
Post 25 Aug 2007, 10:44
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Sad Sad Sad Sad Sad
Post 25 Aug 2007, 12:57
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
0.1 wrote:
do this:
Code:
db 0c3h    



Don't do this.

Code:
db $C3
    

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 25 Aug 2007, 23:47
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.