查看: 995|回复: 4
|
关于assembly language...
[复制链接]
|
|
Content Filtering Software.
Write an application that will check if a searched word is inappropriate for children.
EG:if a boy types a word "sexy",the system will close the windows and exit.
我写了一点。。。毫无头绪。。。如何compare two string?
c++就容易多了。。。haiz...
TITLE Content filtering Program (content.asm)
INCLUDE Irvine32.inc
.data
str1 byte "Input a word: ",0
.code
main PROC
mov edx,offset str1
call writestring
call readstring
call dumpmem
exit
main ENDP
END main |
|
|
|
|
|
|
|
发表于 20-4-2009 11:25 AM
|
显示全部楼层
你这个好多了,以前我们是用纯Processor的Command的,一边写一边查那个Processor的Command... |
|
|
|
|
|
|
|
发表于 20-4-2009 04:11 PM
|
显示全部楼层
如果认为用C++容易,就用C++写一个,compile成exe,
然后用disassemble, debugger,比如olly debugger打开它。 |
|
|
|
|
|
|
|
发表于 20-4-2009 05:33 PM
|
显示全部楼层
上次我还要让Processor唱歌,还要是有MTV那种
不过想起来还蛮好玩的 |
|
|
|
|
|
|
|
发表于 1-5-2009 09:07 PM
|
显示全部楼层
原帖由 小杨过 于 6-4-2009 08:59 PM 发表
Content Filtering Software.
Write an application that will check if a searched word is inappropriate for children.
EG:if a boy types a word "sexy",the system will close the windows and exit.
我写了 ...
這麼簡單的東西還要 Irvine32.inc (這是UTM的嗎?)
不必MASM,我直接用Debug都可以做了。
但如果要 Close Windows 的話,那你就要call WINAPI。這個還是用C++參 Assembly 比較容易。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|