View more random threads:
- FIN623 Taxation Management Assignment No. 01 Solution and...
- MGT619 Final Project Management Assignment 01...
- EDU305 - Classroom Management Assignment # 1 Due Date 04...
- Bus Ticket Reservation System SRS CS619 Final Software...
- FIN611 Advanced Financial Accounting Assignment 2 (20 July...
- ORGANIZATIONAL BEHAVIOR (MGT 502) ASSIGNMENT NO. 01...
- Assignment # 1 Computer Proficiency License (CS 001)...
- STA630 Assugnment Solution July 2010
- CS201 Assignment No.1 Solution and Discussion Fall 2014...
- MGT301 - Principles of Marketing Assignment # 01Idea...
CS401 - Computer Architecture and Assembly Language Programming Assignment No 1 Solution Due Date: May 05, 2014
AX = 0200h
BX = 4336h
CX = 1234h
SI = 0100h
CS = 0FE0h and
DS = E000h
Sponsored Links
You are required to calculate the physical address generated by each of the following instructions:
MOV AX, [CS: BX + 100]
MOV CX, [BX + SI + 0x0030]
Note: Every instruction is independent of others.
Question No. 2:
Assemble the given program using NASM.
ORG 0100H
XOR AX, AX
MOV BX, 55H
MOV AX, 42
ADD AX, BX
SUB BX, 02H
ADD AX, BX
SUB AX, EA12H
MOV BX, 22H
MOV AX, 0X4C00
INT 0X21
After that load the Debugger by typing AFD in command prompt as in Fig 1.
1.jpg
The AFD window will be opened. The complete description is given below in fig 2
2.jpg
When the program is loaded in the debugger, it is loaded at offset 0100, which displaces all memory accesses in our program. Execute the program step by step and examine how the memory is read, the registers are updated and how the instruction pointer moves forward.
Now we execute the program with F2 key (instruction will move one by one) and write down the contents of the specified registers in the table given below.
3.jpg
There are currently 1 users browsing this thread. (0 members and 1 guests)