鱼C论坛

 找回密码
 立即注册
查看: 2763|回复: 0

write assembly programs

[复制链接]
发表于 2012-2-10 13:49:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

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.

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-19 18:20

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表