小编Joh*_*ick的帖子

在MSDOS中,要求此人输入现有文件名,然后将其删除

我在下面编写了这个程序,但它没有用.我正在输入文件名dur.txt.它返回AX = 4C03.为什么它不起作用,我该如何纠正呢?

.model tiny
.data
  max1  db  32
  act1  db  ?
  inp1  db  30 dup(0)
  hande dw  ?

.code
.startup
    ;enter the name of the file
    lea dx,max1
    mov ah,0ah
    int 21h

    ;delete the file
    mov ah,41h
    lea dx, inp1
    int 21h
.exit
end
Run Code Online (Sandbox Code Playgroud)

assembly dos masm dosbox x86-16

2
推荐指数
1
解决办法
76
查看次数

标签 统计

assembly ×1

dos ×1

dosbox ×1

masm ×1

x86-16 ×1