本帖最后由 yuyuhongss 于 2011-2-9 19:14 编辑
紧急通知
各位员工请注意:由于本公司长期致力于A片拍摄已达十余年,在AV界早已占有一席之
地,威名远扬!不想竟然惊动了“文明办”。文明办昨日已经派遣一支作风优良的考察
大队,星夜赶赴本公司进行扫黄,预计下午就到。各位员工务必自行将电脑中少儿不宜
的东西清理掉,以免落下把柄。
黄总
2011.2.8
假如你是该公司的一名员工,你的任务是:写一个程序,把自己电脑中少儿不宜的东西过滤掉。部分代码如下:assume cs:code
data segment
db "One day,Mr.huang met Miss.Cang.Mr.huang said:hello Miss.Cang,"
db "it is sunny today,i'm glad to sun you,can you lessuner?I would "
db "sun you?Miss.Cang are not pleased with Mr.huang and said:of "
db "course not!Mr.huang asked:why not make sun you?Miss.Cang said "
db "angrily:doesn't concern you.I just don't like you!Mr.huang said:"
db "so i can sun your mother? because your mother is bueatiful too.",'$'
data ends
code segment
start:
.
.
.
.
code ends
end start
注:“文明办”明文规定:“sun”这个单词为重要屏蔽词汇。“sun”单词不能单独出
现在句子中,否则视为违规用词!
例:
过滤前:There is a sun in the sky,so today is sunny.
过滤后:There is a xxx in the sky,so today is sunny. (注意“xxx”为英文小写字母)
文章的末尾以字符'$'结尾!
提示:如何查看自己的程序是否成功过滤掉内存中的“少儿不宜”?首先用DEBUG载入
你的程序,然后用g命令执行,执行完后再用r命令查看当前数据段(DS)的内容,最后用
d命令形如:d DS:0 的方式查看内存有没有被过滤。
效果如图:
|