(Solved): Q: Using Assembly c&…..

QUESTION

Question

Using Assembly code in (emu8086) Write program that display your ID number then add four (4) to your serail number.

ANSWERS:

Step 1

The ask is to write an assembly code which displays an id number and then adds 4 to it.

Step 2

The program can be constructed as below:

DATA SEGMENT
     IDNUM DB 10H
     SUM DB ?
ENDS
 
CODE SEGMENT  
    ASSUME DS:DATA CS:CODE
START:
 

Leave a Comment

Your email address will not be published. Required fields are marked *