例如,如何将文件“E:\text.txt”复制到文件夹“E:\files”?
Lagunov
Asked:
2022-04-24 02:22:35 +0800 CST
format pe console
include 'C:\Program Files\FASM\INCLUDE\win32ax.inc'
include 'C:\Program Files\FASM\INCLUDE\api\kernel32.inc'
entry start
.data
i db 40
.code
start: cinvoke printf, <i>
cinvoke getch
invoke ExitProcess, 0
section '.idata' import data readable
library kernel32,'kernel32.dll',msvcrt,'msvcrt.dll'
import msvcrt, printf, 'printf', getch, '_getch', scanf, 'scanf'
比如我有一个标签i,值为40,我运行程序的时候显示“(”,我尝试用.替换cinvoke printf, <i>
,cinvoke printf, <'%d'>, i
但是显示的是数字4202496,应该显示40。如何显示数字?