📄 1加到100.asm
字号:
#make_COM#
; COM file is loaded at CS:0100h
; (the value of CS is set by Operating System)
ORG 100h
;1+2+3+....+100
;用16位的加法完成
mov ax,00h ;结果单元清0
mov cx,100 ;cx作为循环变量
abc:
add ax,cx
loop abc
hlt ;结果保存在ax中
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -