Assembly db takes up one byte, but on my machine it takes up 4? -


I was following an online tutorial where a man uses an assembly with flat angler to create an OS from scratch was doing. He shows how this is done and as I did after that, I realized that when he examined his assembly with his hex editor, it shows that his assembly "DB1" in his hex editor Looks like "01", only takes one byte; But when I try that "64 62 20 31" where 64 = "D", 62 = "B", 20 = spaces, and 31 = one.

I'm walking on windows Vista and he looks like moving on Linux, but never says, so I'm thinking that there is something to do with it, whether through my assembly, What is the possibility of making a byte on the machine? Being extra byte makes me feel very useless if there is a different way of doing this.

A .asm file is a text source file for a program Examples of asglers include gas , and nasm are used as an input.

The coder generates an output file which creates the appropriate machine code bytes for all the code code, which is specified in the .asm file. The processor can execute the code directly in this file, when it loads in the right place in the memory.

You were looking at the source code of the program and not the generated output file.


Comments

Popular posts from this blog

graphviz - size of node with shape=circle -

android - TCP sending with Unity -

properties - C#: How to set default value for a property in a partial class? -