Write a simple assembly code that places a 16 bit number of
Write a simple assembly code, that places a 16 bit number of your choice in accumulator D, and then stores the contents of accumulator D in a particular memory location. Use the Codewarrior debugger to show the contents of the particular memory location or locations where the number is stored, and confirm that the number is correctly stored there.
Solution
Answer:
ADD BYTE_VALUE, DL ; --- Adds the register in the memory location
MOV BX, WORD_VALUE ; Operand from the memory is added to register
