马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Part 2: Using only the instruction set defined in page 64 write assembly programs that does:a) Handshake: Wait until the value of M[254] is not 0, set M[255] to 1, wait until M[254] is 0, set M[255] to 0 (assume those locations are ports).
b) Count the occurrences of zero in an array stored in memory locations 100 through 199. Hint: you may write a program that changes instructions by treating instructions as data. Assume absolute addresses for instruction locations.
|