I am really new to Assembly programming. Its been 2 weeks since our lecturer starting teaching assembly programming using FASM. He gave us the above question to solve using memory addressing and I am really stuck. He only taught us the mov instructions until now and dint go into much details. So, i am wondering if anyone can help me solve this problem.
Since, he told us to retrieve from the memory. So, i used a variable to store it in the memory. This is what i tried so far
#fasm#
org 100h
mov ah,2
var db 67
mov bh, [var]
mov dl,bh
int 21h
int 20h
That's pretty much it, except you don't want your data in the middle of code. Put it after the code, such as: