Assignment2
2015-08-14 12:04:06 1 举报
An flow chart of LC-3's program
作者其他创作
大纲/内容
Compare the two Strings
T
Use TRAP x20 and TRAP x21 to get the input to the R0.
make R2 and R3 point to the linked listR7 = 0
R2 pointed to the next node
PRINTNo Entry
If R0 is ENTER
F
Equal?
R2 = NULL?
end
input done and fill the next bit with x0000
Print out the hello message:Type a room number and press Enter:
load the address of the buffer to R6
Start
Found the number so print out the last name of the faculty.
R4 - String of room number in the listR5- String of the number to be searched
HALT
Store the char to the buffer.
0 条评论
下一页