I created a very simple assembly program that prints the letter 'a' in DOS. I opened it in a hex editor and the result was this:
Assembly code:
mov ah, 2
mov dx, 'a'
int 21h
Hex code
B4 02 B2 61 CD 21
I wanted to understand how it was generated! Like, I do not know if I'm right, but I realized that:
B4 = mov ah
02 = 2
B2 = mov dx
61 = 'a'
CD = int
21h = 21
The 02
, 61
and 21
I understood what turned but and B4
, B2
and CD
?