I was reading BMP file in hex editor while discovered something odd. Two first letters "BM" are written in order, however the next word(2B), which is means file size, is 36 30
in hex. Actual size is 0x3036
. I've noticed that other numbers are stored the same way.
I'm also using MARS MIPS emulator which can display memory by words. String in.bmp
is stored as b . n i
/ \0 p m
.
Why data isn't stored continuously?