A. masm32的用法
要先安裝masm,然後把要編譯的.asm文件放在masm的bin目錄下,然後可以選擇「打開方式」,用masm32打開後選擇project->assemble asm file,……其他的網上說的很多地……試試吧
B. 如何用匯編語言編一個讓計算機關機的程序
在MASM32下代碼如下:
.486 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
.data
strShutDown db "shutdown.exe /s /s /t 00",0
.code
start:
invoke WinExec,addr strShutDown,0
invoke ExitProcess,0
end start