寻址.asm
来自「模拟实际的交通灯程序 1加到100 8086模拟器2.05」· 汇编 代码 · 共 30 行
ASM
30 行
#make_COM#
; COM file is loaded at CS:0100h
; (the value of CS is set by Operating System)
ORG 100h
;预先赋值,单步执行
mov bx,2000h
mov ds,bx
mov bx,0100h
mov si,0002h
mov ds:[0100h],12h
mov ds:[0101h],34h
mov ds:[0102h],56h
mov ds:[0103h],78h
mov ds:[1200h],2Ah
mov ds:[1201h],4Ch
mov ds:[1202h],0B7h
mov ds:[1203h],65h
;赋值以后使用菜单中view→External Memory Viewer查看存储器数据段的赋值情况
mov ax,1200h ;ax=1200h
mov ax,bx ;ax=0100h
mov ax,[1200h] ;ax=4C2Ah
mov ax,[bx] ;ax=3412H
mov ax,1100h[bx];ax=4C2Ah
mov ax,bx[si] ;ax=7856h
mov ax,1100h bx[si];ax=65B7h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?