Re: fldw / fstw about gas
- From: "Claudio Daffra" <spamtrap@xxxxxxxxxx>
- Date: 27 Jun 2006 04:59:12 -0700
fild, fist
you are right *fild* not *fld*.
how you can see in my post gas do not recognize this two instruction
?!
if i put in file *fildw* and *fistw*, gas give me this message
.data
mem1:
.word 0xffff
mem2:
.word 0
.text
.globl main
main:
fildw mem1
fistw mem2
call exit
claudio@Kanotix:~/source$ gcc prova.s
prova.s: Assembler messages:
prova.s:14: Error: suffix or operands invalid for `fild'
prova.s:15: Error: suffix or operands invalid for `fist'
claudio@Kanotix:~/source$
.data
mem1:
.word 0xffff
mem2:
.word 0
mem10:
.long 65535
mem20:
.long 0
.text
.globl main
main:
fild mem1
fist mem2
fild mem10
fist mem20
call exit
gas work (in this case) without suffix
but with gdb i get error !?
(gdb) s
20 fist mem2
(gdb) s
21 fild mem10
(gdb) s
22 fist mem20
(gdb) s
24 call exit
(gdb) p/d mem1
$1 = 2147450879
(gdb) p/d mem2
$2 = -32769
(gdb) p/d mem10
$3 = 65535
(gdb) p/d mem20
$4 = 65535
(gdb)
strange ?!
regards
claudio
.
- Follow-Ups:
- Re: fldw / fstw about gas
- From: Tim Roberts
- Re: fldw / fstw about gas
- References:
- fldw / fstw about gas
- From: Claudio Daffra
- Re: fldw / fstw about gas
- From: randyhyde@xxxxxxxxxxxxx
- fldw / fstw about gas
- Prev by Date: simple program for freebsd
- Next by Date: Re: Newbie HLA question...
- Previous by thread: Re: fldw / fstw about gas
- Next by thread: Re: fldw / fstw about gas
- Index(es):