I want to get 2 different things:
(1) the (value at bp) plus 16 (mathematical addition) something similar to: mov ax, [bp] + 16
(2) the value of bp+16 (the address bp+16)
in order to get (1) I tried:
mov ax, bp+16
But it gave an error.
for (2) I tried:
mov ax, [bp+16]
Which worked. (I hope I did it correctly)..
Why can't assembly understand the evaluation of:
mov ax, bp+16
But can understand:
mov ax, [bp+16]
because addition is not defined using the +
sign, so what happens behind the scenes there?