movzx eax, byte ptr [a]
movzx ebx, byte ptr [m]
add al, bh
I used the above command but the program doesn't show anything
I want to change the characters according to the Caesar cipher, that is, the letter a to b,c,d with that change between the number entered in the keyboard for example m=1 then a to b m=2 then a to c
You don't actually output anything to a screen, so I understand that you are using the word 'show' loosely here, in the sense that the addition
add al, bhsimply does not change the AL register.The reason for this is that the BH register is zero because of the
movzx ebx, byte ptr [m]instruction. So it is a typo and what you meant to happen is adding BL to AL. And because you are writing 32-bit code, that would better becomeadd eax, ebx: