📄 eg0702.lst
字号:
Microsoft (R) Macro Assembler Version 6.15.8803 08/20/07 09:42:18
eg0702.asm Page 1 - 1
;eg0702.asm for DOS
include io16.inc
C .nolist ; Do not list following content
C .list
C
0000 .code
0000 start:
0000 B0 09 mov al,9 ; AL=9(准备从9号单元获取年代数据)
0002 E6 70 out 70h,al ; 从70H的I/O地址输出,选择CMOS RAM的9号单元
0004 E4 71 in al,71h ; 从71H的I/O地址输入,获取9号单元的内容,保存在AL
0006 E8 0000 E call disphb ; 显示AL内容,即年代
0009 B0 2D mov al,'-' ; 显示分隔符“-”
000B E8 0000 E call dispc
000E B0 08 mov al,8 ; AL=8(从8号单元获取月份数据)
0010 E6 70 out 70h,al
0012 E4 71 in al,71h
0014 E8 0000 E call disphb ; 显示月份
0017 B0 2D mov al,'-' ; 显示分隔符“-”
0019 E8 0000 E call dispc
001C B0 07 mov al,7 ; AL=7(从7号单元获取日期数据)
001E E6 70 out 70h,al
0020 E4 71 in al,71h
0022 E8 0000 E call disphb ; 显示日期
exit 0
0025 B8 4C00 1 mov ax,4c00h+0
0028 CD 21 1 int 21h
end start
Microsoft (R) Macro Assembler Version 6.15.8803 08/20/07 09:42:18
eg0702.asm Symbols 2 - 1
Macros:
N a m e Type
exit . . . . . . . . . . . . . . Proc
Segments and Groups:
N a m e Size Length Align Combine Class
DGROUP . . . . . . . . . . . . . GROUP
_DATA . . . . . . . . . . . . . 16 Bit 0000 Word Public 'DATA'
STACK . . . . . . . . . . . . . 16 Bit 0400 Para Stack 'STACK'
_TEXT . . . . . . . . . . . . . 16 Bit 002A Word Public 'CODE'
Symbols:
N a m e Type Value Attr
@CodeSize . . . . . . . . . . . Number 0000h
@DataSize . . . . . . . . . . . Number 0000h
@Interface . . . . . . . . . . . Number 0000h
@Model . . . . . . . . . . . . . Number 0002h
@code . . . . . . . . . . . . . Text _TEXT
@data . . . . . . . . . . . . . Text DGROUP
@fardata? . . . . . . . . . . . Text FAR_BSS
@fardata . . . . . . . . . . . . Text FAR_DATA
@stack . . . . . . . . . . . . . Text DGROUP
dispbb . . . . . . . . . . . . . L Near 0000 External
dispbd . . . . . . . . . . . . . L Near 0000 External
dispbw . . . . . . . . . . . . . L Near 0000 External
dispcrlf . . . . . . . . . . . . L Near 0000 External
dispc . . . . . . . . . . . . . L Near 0000 External
disphb . . . . . . . . . . . . . L Near 0000 External
disphd . . . . . . . . . . . . . L Near 0000 External
disphw . . . . . . . . . . . . . L Near 0000 External
dispmsg . . . . . . . . . . . . L Near 0000 External
disprb . . . . . . . . . . . . . L Near 0000 External
disprd . . . . . . . . . . . . . L Near 0000 External
disprf . . . . . . . . . . . . . L Near 0000 External
disprw . . . . . . . . . . . . . L Near 0000 External
dispsib . . . . . . . . . . . . L Near 0000 External
dispsid . . . . . . . . . . . . L Near 0000 External
dispsiw . . . . . . . . . . . . L Near 0000 External
dispuib . . . . . . . . . . . . L Near 0000 External
dispuid . . . . . . . . . . . . L Near 0000 External
dispuiw . . . . . . . . . . . . L Near 0000 External
readbb . . . . . . . . . . . . . L Near 0000 External
readbd . . . . . . . . . . . . . L Near 0000 External
readbw . . . . . . . . . . . . . L Near 0000 External
readc . . . . . . . . . . . . . L Near 0000 External
readhb . . . . . . . . . . . . . L Near 0000 External
readhd . . . . . . . . . . . . . L Near 0000 External
readhw . . . . . . . . . . . . . L Near 0000 External
readmsg . . . . . . . . . . . . L Near 0000 External
readsib . . . . . . . . . . . . L Near 0000 External
readsid . . . . . . . . . . . . L Near 0000 External
readsiw . . . . . . . . . . . . L Near 0000 External
readuib . . . . . . . . . . . . L Near 0000 External
readuid . . . . . . . . . . . . L Near 0000 External
readuiw . . . . . . . . . . . . L Near 0000 External
start . . . . . . . . . . . . . L Near 0000 _TEXT
0 Warnings
0 Errors
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -