提交 d4be00bb 创建 作者: 赵鹏翀's avatar 赵鹏翀

init template

上级
/*.img
/bochs
/Debug
/Release
bochsout.txt
\ No newline at end of file
<?xml version="1.0" encoding="gb2312"?>
<ASMProject Version="1.00" Name="Lab013" SubjectID="14fea692-ddce-4df0-99d7-aae8253e43a3" ProjectTemplateID="ebd18b74-1da5-40e3-b13c-b1a9d62b53bd">
<Configurations>
<Configuration Name="Debug" ConfigurationType="2">
<Tool Name="PreBuildEventTool"/>
<Tool Name="CustomBuildTool"/>
<Tool Name="GCCCompilerTool"/>
<Tool Name="JWASMAssemblerTool" ObjectFormate="5" GenerateDebugInformation="-1" VersionDebugInfo="-1" AdditionalOptions="/W0"/>
<Tool Name="PreLinkEventTool"/>
<Tool Name="GCCLinkerTool"/>
<Tool Name="JWlinkLinkerTool" AdditionalOptions="disable 1014"/>
<Tool Name="PostBuildEventTool"/>
</Configuration>
</Configurations>
<Files>
<Filter Name="Դļ" Filter="asm">
<File RelativePath=".\main.asm">
</File>
</Filter>
</Files>
</ASMProject>
添加文件
assume cs:codesg
codesg segment
s1 db "Good,better,best", '$'
s2 db "Never let it rest", '$'
s3 db "Till good is better", '$'
s4 db "And better,best", '$'
s dw offset s1, offset s2, offset s3, offset s4
row db 2,4,6,8
start: ;程序功能为:分别在屏幕的第2、4、6、8行显示4句英文诗
mov ax, cs
mov ds, ax
mov bx, offset s
mov si, offset row
mov cx, 4
ok:
mov bh, 0
;mov dh, _____ ;将程序补充完整
mov dl, 0
mov ah, 2
int 10h
;mov dx, _____
mov ah, 9
int 21h
;_________________
;_________________
loop ok
mov ax,4c00h
int 21h
codesg ends
end start
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论