Assembly language (my first assembler)

My first assembler (Hello, Assembly!)

Runtime Environment (MASM)

Resources link: https: //pan.baidu.com/s/1ArWTX50kz73xiEIh0n_-cw
extraction code: xjey
decompressed as shown:
Here Insert Picture Description

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

Here Insert Picture Description

Here Insert Picture Description
Input: make32 + assembler file name created
as: make32 eg010
Here Insert Picture Description
re-enter the file name, you are ready to run the results obtained
Here Insert Picture Description

Published 12 original articles · won praise 0 · Views 715

Guess you like

Origin blog.csdn.net/weixin_43252204/article/details/104546348