Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
Demo054
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
ASM Lab Group
实验项目模板
汇编程序演示项目模板
Demo054
提交
d1c3e7a2
提交
d1c3e7a2
12月 14, 2018
创建
作者:
赵鹏翀
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init template
上级
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
85 行增加
和
0 行删除
+85
-0
.gitignore
.gitignore
+6
-0
Demo054.asmproj
Demo054.asmproj
+21
-0
Demo054.puo
Demo054.puo
+0
-0
main.asm
main.asm
+58
-0
没有找到文件。
.gitignore
0 → 100644
浏览文件 @
d1c3e7a2
/*.img
/bochs
/Debug
/Release
bochsout.txt
\ No newline at end of file
Demo054.asmproj
0 → 100644
浏览文件 @
d1c3e7a2
<?xml version="1.0" encoding="gb2312"?>
<ASMProject
Version=
"1.00"
Name=
"Demo054"
>
<Configurations>
<Configuration
Name=
"Debug"
ConfigurationType=
"2"
>
<Tool
Name=
"PreBuildEventTool"
/>
<Tool
Name=
"CustomBuildTool"
/>
<Tool
Name=
"GCCCompilerTool"
/>
<Tool
Name=
"JWASMAssemblerTool"
ObjectFormate=
"5"
GenerateDebugInformation=
"-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>
Demo054.puo
0 → 100644
浏览文件 @
d1c3e7a2
添加文件
main.asm
0 → 100644
浏览文件 @
d1c3e7a2
assume
cs
:
codesg
data
segment
db
'
Hello
,
world
'
,
'$'
data
ends
codesg
segment
start
:
mov
ah
,
2
;在第12行,第40列显示字符串“Hello,world”
mov
bh
,
0
mov
dh
,
12
mov
dl
,
40
int
10
h
mov
ax
,
data
mov
ds
,
ax
mov
dx
,
0
mov
ah
,
9
int
21
h
mov
ah
,
0
; 接收用户的键盘输入。
int
16
h
mov
ah
,
1
;若输入“r”,将屏幕上的字符设置为红色;输入“g”,设为绿色;输入“b”,设为蓝色
cmp
al
,
'r'
je
red
cmp
al
,
'g'
je
green
cmp
al
,
'b'
je
blue
jmp
short
sret
red
:
shl
ah
,
1
green
:
shl
ah
,
1
blue
:
mov
bx
,
0
b800h
mov
es
,
bx
mov
bx
,
1
mov
cx
,
2000
s
:
and
byte
ptr
es
:
[bx],
11111000
b
or
es
:
[bx],
ah
add
bx
,
2
loop
s
sret
:
mov
ax
,
4
c00h
int
21
h
codesg
ends
end
start
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论