Starting from:
$30

$24

Assignment Set 1 (Assembly Language Programming) Solution


Problem 1:




Store 50H at memory location 0000H.




Store 60H at memory location 0001H.




Exchange content of memory locations 0000H and 0001H.




Problem 2:




Store 50H at memory location 0000H.




Store 20H at memory location 0001H.




Add content of both memory location and store the result at 0002H.




Problem 3:




Perform following operations and write value of carry flag, sign flag and zero flag at the end of each instruction. Justify the values of flag bits.




MOV AH, 90H




MOV BH, 80H




ADD AH, BH




SUB AH, BH




ADD BH, 10H




SUB AH, BH




Problem 4:




Evaluate following infix expression in terms of postfix expression using two registers only. You can use immediate addressing mode for giving values to registers. (No need to scan from keyboard)




2+3*2-4

More products