V22.0201.002, Machine Organization I, Professor Yap

####
V22.0201.002, Machine Organization I
Fall 1997

###
ANNOUNCEMENTS

### Nov 3, 1997

- READING:
  You should read up to chapter 11 by now. For chapter 10, omit sections 10.6 and 10.7. For chapter 11, omit sections 11.7. You could read ahead to chapter 12.
- HW3:
  1. Apparently (as demonstrated in class today), there is some descrepancy between int 21h, function 10 as described in the book (exercise 11, p.227) and what happens on my machine (and presumably yours as well). The difference is minor -- if the MAX_LEN of a a string is 20, say, then my machine allows only up to 19 characters (not counting the final CR character). In the following, I will follow the book's assumption. (This does no harm for my machine -- it only wastes one byte per string, since the last byte will never be used.)
     A slight elaboration of the program I demo'ed in class is available as readstring.asm from the sample programs directory here.
  2. Several of you wondered how to enter the strings into your program. Here is how I would do it: to enter the strings

         	'are', 'at, 'zzzz', etc,

     into the array A, my data segment will look like this:

         	.data
         	MAX_LEN equ 20
         	CR equ 13
         	A db 	MAX_LEN,3,'are',CR,MAX_LEN-3 dup (?)
         	  db	MAX_LEN,2,'at',CR,MAX_LEN-2 dup (?)
         	  db	MAX_LEN,4,'zzzz',CR,MAX_LEN-4 dup (?)
         	  ... etc

#### Old Announcements

[Sep 8, 1997] [Sep 17, 1997] [Oct 1, 1997] [Oct 15, 1997]