8086 assembly basic masm compilation source file

IDE : Masm for Windows Integrated experimental environment 2015 OS : Windows 10 x64typesetting : Markdown blog : my.oschina.net/zhichengjiu gitee : g...
demo.asm
masm
more knowledge
reference
resource

IDE : Masm for Windows Integrated experimental environment 2015
OS : Windows 10 x64
typesetting : Markdown
blog : my.oschina.net/zhichengjiu
gitee : gitee.com/zhichengjiu

demo.asm

datas segment ;Segment code datas ends stacks segment ;Stack segment code stacks ends codes segment assume cs:codes,ds:datas,ss:stacks start: mov ax,datas mov ds,ax ;Code snippet code mov ax,1 mov bx,0 mov ah,4ch int 21h codes ends end start

masm

Folder contents

Compile

Folder contents

more knowledge

  • Content in DEMO.LST
Microsoft (R) Macro Assembler Version 5.00 10/15/19 21:08:00 Page 1-1 1 0000 datas segment 2 ;Segment code 3 4 0000 datas ends 5 6 0000 stacks segment 7 ;Stack segment code 8 9 0000 stacks ends 10 11 0000 codes segment 12 assume cs:codes,ds:datas,ss:stacks 13 0000 start: 14 0000 B8 ---- R mov ax,datas 15 0003 8E D8 mov ds,ax 16 17 ;Code snippet code 18 0005 B8 0001 mov ax,1 19 0008 BB 0000 mov bx,0 20 21 000B B4 4C mov ah,4ch 22 000D CD 21 int 21h 23 000F codes ends 24 end start Microsoft (R) Macro Assembler Version 5.00 10/15/19 21:08:00 Symbols-1 Segments and Groups: N a m e Length Align Combine Class CODES . . . . . . . . . . . . . 000F PARA NONE DATAS . . . . . . . . . . . . . 0000 PARA NONE STACKS . . . . . . . . . . . . . 0000 PARA NONE Symbols: N a m e Type Value Attr START . . . . . . . . . . . . . L NEAR 0000 CODES @FILENAME . . . . . . . . . . . TEXT demo 24 Source Lines 24 Total Lines 6 Symbols 50674 + 465870 Bytes symbol space free 0 Warning Errors 0 Severe Errors

reference

  • [1] Wang Shuang. Assembly language. 3rd Edition [M]. Tsinghua University Press, 2013.

resource

  • [ IDE ] www.jiaminsoft.com
  • [ DOSBox ] www.dosbox.com
  • [ emu8086 ] www.emu8086.com
  • [platform] www.asmedu.net
  • [platform] www.oschina.net
  • [platform] gitee.com

Thank you for helping those who want to make it.
Assembly instructions of different chips are different, and assembly language can be found in embedded and information security fields.
Assembly / C/C + + can be used for hardware programming, which should be selectively studied in combination with social needs and personal interests. Vision needs to be broadened.
This post is for testing and reference only.

15 October 2019, 10:03 | Views: 7475

Add new comment

For adding a comment, please log in
or create account

0 comments