【发布时间】:2016-04-12 01:02:33
【问题描述】:
org 100h
jmp var1 ; jump over data declaration
source db 'This is the source string',0
target db SIZEOF source DUP ('#')
var1:
Mov SI,25;lenght of the string
start:
Mov AL,source[SI]
DEC SI
Mov ah ,0eh
int 10h
mov BL,target[DI]
CMP source[SI],BL;comparing to get the end of the string
je stop
jmp start
stop:
mov ah, 0
; wait for any key....
ret ; return to operating system.
【问题讨论】:
-
欢迎来到 StackOverflow,感谢您发布您的第一个问题。为了获得最佳答案,问题应该清楚您正在努力实现的目标以及您为达到现在的位置所做的工作。有一个great article about how to write good questions,请考虑阅读并编辑您的问题,以便更清楚地了解您想要什么。
-
我不想在程序中微笑或其他符号
-
魔术八球告诉我,您正试图弄清楚为什么您的代码在字符串结束后继续写入。
-
..... 21h ;等待任何键.... ret ;返回操作系统。
标签: string assembly x86 reverse