Reputation: 811
Im new to arm assembly and ive been learning a lot from this website here. At the end of this section here there its shows how to declare variables in assembly like so:
integer_array:
.word 1,2,3,4
this works fine for integers but I need to be able to do this for floats and this:
float_array:
.word 1.25,2.24,3.33
does not work, could someone show the correct way to declare float variables?
Upvotes: 3
Views: 1617
Reputation: 23342
Try
.single 0e1.25, 0e2.24, 0e3.33
(or .double
). See the gas manual for flonums.
Upvotes: 2