HW-chap2.docx - Erik Grootendorst 818722899 CS 530 Systems Programming Homework Chapter 2 Total Points 4.0 Problem#1 Textbook Chapter 2 Exercises

HW-chap2.docx - Erik Grootendorst 818722899 CS 530 Systems...

This preview shows page 1 - 2 out of 2 pages.

Erik Grootendorst 818722899 CS 530 Systems Programming Homework Chapter 2 Total Points: 4.0 Problem #1 . Textbook Chapter 2, Exercises, Section 2.1, Question #2 (1 point). Assume 2000 is decimal in “TABLE RESW 2000” since it is value. Assume 4000 is hex format in “SUM START 4000” since it is address. SUM START 4000 FIRST LDX ZERO LDA ZERO LOOP ADD TABLE,X TIX COUNT JLT LOOP STA TOTAL RSUB TABLE RESW 2000 COUNT RESW 1 ZERO WORD 0 TOTAL RESW 1 END FIRST H^SUM ^004000^00178E T^004000^0E^045788^0^05788^18C015^2C5785^384006^0C578B^4C0000 E^004000 Problem #2 . Textbook Chapter 2, Exercises, Section 2.2, Question #3 . (1 point) Please write down the Location (or Address) on the left, and write down the hex Object Code on the right. LOC LABEL SOURCE OPERAND OBJ CODE 0000 SUM START 0 0000 FIRST LDX #0 050000 0003 LDA #0 010000 0006 +LDB #TABLE2 69101790 BASE TABLE2
Image of page 1
Erik Grootendorst 818722899 000A LOOP ADD TABLE,X 1BA013
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '08
  • staff

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture