Second question regarding dw in assembly and nasm -


i wrote in program second: dw "abcd" make send me using little endian resulting sequence in memory 0x42, 0x41, 0x44, 0x43, instead printed 0x41, 0x42, 0x43, 0x44. can use define directive i.e. db, dw, dd assign string, , why that?

a string sequence of individual bytes, , has no endianness.

if want treated number, have define number, 0x42414443 or whatever order need.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -