Archive for October, 2009

Study Guide Test 2

October 29, 2009

Your studies should focus on the following homework problems.  However, expect 20% of the test to consist of programming problems which will be hand written, i.e. no assembly.

Guide: 5.1, 5.5 a,c,d, 5.9 (understand why each instruction will or will not make a good NOP instr), 5.13 a, 5.29 a, 6.7, 6.10, 6.15 (definite ques), 6.16 (definite ques), 7.10, 7.12, and 7.13.

ASM labs added to course calendar

October 26, 2009

Labs 2 and 3 have now been posted to the course calendar.  Please see these labs. http://people.uncw.edu/ricanekk/teaching/fall09/csc242/calendar.htm

Calendar update

October 26, 2009

The calendar has been updated, please see the changes in due dates and test #2.  Test #2 will be on Nov 2 to accommodate a longer class period for the test.  Consequently, labs have been shifted so, please, see the calendar.  If you have any questions post to blog, email, or contact my in person.

Machine Language Lab

October 16, 2009

ML-Lab01PartA-Hint

I have provide some insight into ML lab part A.  There are two parts to the lab 1 that can be solved separately and then brought together after each has proven to work successfully.  In chp 6 we discussed how to organize machine code based on three programming constructs: sequential, conditional, and iterative.  You should use these constructs to develop a flowchart of your program.  The flowchart for part A has been provided here.

From the flowchart you can use the corresponding ML code segments from page 158 to help in organization of the code.  Please see the attached graphic for an example.

Don’t forget to test your code.  You use LCEdit to enter your binary (machine langauge) code. Create an object file *.obj by selecting the b ->.  If there are no errors then you test your code in the LC3Simulator.  Load the code.  Place a break point at the HALT command (trap 37).  Edit the value at location x3031 to make it an odd number using “set value”. Step through the code line by line to ensure that it is executing properly.  If you get the right answer for an odd value try an even value.

ML-Lab01PartA-Hint

Good Luck….

Repost of 6.16 question

October 15, 2009

Michael Sodomsky Says:
October 15, 2009 at 1:37 am | Reply edit

I’m doing 6.16 now and I’m really confused on how you would go about it. Any information would be awesome. thanks.

Test 1 Extra Credit

October 1, 2009

Corrections of for test 1 are due on Friday.  Students who correct their wrong answers and turn in on Friday will receive partial credit for the incorrect problems.  The diagram for chapter 3 problem 2 is located in the textbook on page 84 (prob. 3.6).