【发布时间】:2015-04-18 07:58:55
【问题描述】:
我想从汇编语言 (8086) 中的 ASCII 字符串中删除然后添加一个字符。例如,在下面的代码中,我想从字符串中删除回车并添加 0。事实上,中断 39h 想要一个 ASCIIZ 路径名,但 0Ah 添加了最终的回车字符而不是 0。我该怎么做?
.model tiny
.data
folderpath DB "",0
.code
org 0100h
inizio:
mov ah,0ah
lea folderpath ,dx
int 21h
; HERE I WOULD LIKE TO MODIFY THE STRING
lea dx, folderpath
mov ah,39h
int 21h
fine:
mov AH,4Ch
int 21h
end inizio
【问题讨论】:
标签: string assembly ascii x86-16