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?
Try
.single 0e1.25, 0e2.24, 0e3.33
(or .double). See the gas manual for flonums.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With