My first assembler (Hello, Assembly!)
Runtime Environment (MASM)
Resources link: https: //pan.baidu.com/s/1ArWTX50kz73xiEIh0n_-cw
extraction code: xjey
decompressed as shown:
Written assembly
Open a text editor to write
; eg0101.asm in Windows Console
include io32.inc
.data
msg byte ‘Hello, Assembly!’,13,10,0 ;字符串
.code
start:
mov eax,offset msg ;显示
call dispmsg
exit 0
end start
Note: The .txt extension changed to .asm, just download and save it to a folder MSAM
File Name: eg0101.asm
MSAM it must be placed in a folder, or will not run
run
Input: make32 + assembler file name created
as: make32 eg010
re-enter the file name, you are ready to run the results obtained