Assignment 6: MARIE and Intel Assembler | CSCI 463, Assignments of Computer Architecture and Organization

Material Type: Assignment; Class: Computer Systems Organization; Subject: COMPUTER SCIENCE; University: Northern Illinois University; Term: Spring 2007;

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-0lh
koofers-user-0lh 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCI 463/__ Assignment 06 Due: 3/23/2007 (Friday)
Spring-2007 (100 pts)
MARIE & Intel Assembler
Read also: Course Notebook
4. Memory Maps of IBM PC p.10
5. Basics for Intel Assembly Language Programming p.11
6. Interrupts p.13
7. Branch Instructions p.17
8. Condition Flags p.18
9. DEBUG Commands p.19
From the Course Web Page (http://www.cs.niu.edu/~sjchung),
download the following into your F directory:
1) Assemble.exe and Link.exe
2) lowUpper.asm, lowUpper.in, lowUpper.sjc, and lowUpper.bat
3) prog06.asm, prog06.in, prog06.sjc, prog06.bat, and hexDeci.ref
4) Get printed copies of lowUpper.asm, lowUpper.in, lowUpper.sjc,
prog06.asm, prog06.in, prog06.sjc, prog06.bat, and hexDeci.ref, and
bring them to the class for discussion.
Hand in:
1. Pages 2 and 3 of this Assignment after you have answered the questions
2. Printed copies of your lowUpper.out, lowUpper.LST, hexDeci.asm, Procs.out, and Procs.LST
3. Your 3.5” diskette containing your lowUpper.obj, lowUpper.exe, lowUpper.out, lowUpper.LST,
hexDeci.asm, hexDeci.obj, Procs.obj, Procs.exe, Procs.out, and Procs.LST
1
pf3
pf4

Partial preview of the text

Download Assignment 6: MARIE and Intel Assembler | CSCI 463 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

CSCI 463/__ Assignment 06 Due: 3/ 23 /200 7 (Friday)

Spring- 2007 (100 pts)

MARIE & Intel Assembler

Read also: Course Notebook

4. Memory Maps of IBM PC p.

5. Basics for Intel Assembly Language Programming p.

6. Interrupts p.

7. Branch Instructions p.

8. Condition Flags p.

9. DEBUG Commands p.

From the Course Web Page (http://www.cs.niu.edu/~sjchung), download the following into your F directory:

  1. Assemble.exe and Link.exe
  2. lowUpper.asm, lowUpper.in, lowUpper.sjc, and lowUpper.bat
  3. prog06.asm, prog06.in, prog06.sjc, prog06.bat, and hexDeci.ref
  4. Get printed copies of lowUpper.asm, lowUpper.in, lowUpper.sjc, prog06.asm, prog06.in, prog06.sjc, prog06.bat, and hexDeci.ref, and bring them to the class for discussion.

Hand in :

1. Pages 2 and 3 of this Assignment after you have answered the questions

2. Printed copies of your lowUpper.out, lowUpper.LST, hexDeci.asm, Procs.out, and Procs.LST

3. Your 3.5” diskette containing your lowUpper.obj, lowUpper.exe, lowUpper.out, lowUpper.LST,

hexDeci.asm, hexDeci.obj, Procs.obj, Procs.exe, Procs.out, and Procs.LST

Due: 03 / 23 /200 7 (Friday) CSCI 463/___ Assignment 06 Name: _______________,_________ Spring- 2007 Part I (Last:spell) (First)

(30 points)

  1. Assemble lowUpper.asm to get lowUpper.obj by: Assemble lowUpper.asm
  2. Link/Edit lowUpper to get lowUpper.exe by: Link lowUpper
  3. Run lowUpper.exe to get lowUpper.out by: lowUpper < lowUpper.in > lowUpper.out
  4. Run DEBUG to get lowUpper.LST by: DEBUG lowUpper.exe < lowUpper.bat > lowUpper.LST
  5. Study lowUpper.asm and lowUpper.LST again, and answer the following questions: Note : DS, ES, CS, SS, and SP are dependent on the hardware and Operating System you use at the time you execute the DEBUG. In grading your assignment, your TA will observe if your answers are consistent with their values.
  1. Right after the third instruction, mov es,ax, is executed: DS =_______, ES =_______, CS =_______, IP =_______, SS =_______, SP =_______
  2. Size of Data Segment = _______ bytes in hex = ________ bytes in decimal Size of Code Segment = _______ bytes in hex = ________ bytes in decimal 3 ) For the second instruction, mov ds,ax : its Code Segment Address =_________, its Offset Address =________ its Absolute (Physical) Address = __________ 4 ) For the fourth instruction, LEA dx, PgmMsg : Machine Code =____________, OpCode =____, Address Operand =___________ Offset Address of PgmMsg =________ What does the Offset Address of PgmMsg mean? __________________________________ 5 ) For the instruction, call getText : Offset Address of the Procedure getText =__________ Offset Address of this instruction =__________ Machine Code of this instruction =__________ its OpCode =____, its Address Operand =________ Length of this instruction =____ bytes Offset Address of the instruction, sub cx,cx: _____ Explain the Address Operand of the instruction, call getText : 6 ) Right after the first instruction, LEA dx,EntMsg , of the getText is executed:
  1. Right after the first instruction, mov ax,@DATA , of the hexDeci is executed: SP =________ First 2-byte (SP) content of the top of the Stack is: ___________ Second 2-byte (SP+2) content of the top of the Stack is: ____________