Current location - Education and Training Encyclopedia - Educational institution - Explore the mystery of assembly programming in debugging environment!
Explore the mystery of assembly programming in debugging environment!
Are you curious about the difference between an assembler in debugging and a program that can only be run after compiling links? Let's unveil this mysterious veil together.

Binary recognition

By default, the compiler processes decimal data. If you want to use other decimal data, such as hexadecimal, octal or binary, you need to explicitly add the corresponding decimal identifier after the data.

Compile and link

The assembly language source program written with a text editor needs to compile links before it can run. If there are grammatical errors or other problems in the program, it cannot be compiled.

Debugging environment

In debugging environment, except instructions, data are all hexadecimal by default. Writing programs here, even beginners can easily operate simple instructions.

Instruction error

If the instruction "MOV AL, 45H" is written in the debugging environment, it will lead to an error. Because the largest letter in hexadecimal number is "f" or "f", "h" is not a valid letter in hexadecimal.

Correct writing

The correct spelling should be: "MOV· Al, 45 years old". 45 here is a hexadecimal representation, which is equivalent to 69 in decimal.