📄 exp10.lst
字号:
Microsoft (R) Macro Assembler Version 5.00 1/1/99 07:36:22
Page 1-1
1 0000 dseg segment
2 = 000A m equ 10
3 = 0005 n equ 5
4 0000 ???? ans dw ?
5 0002 dseg ends
6 ;
7 0000 sseg segment stack
8 0000 0080[ db 80h dup (?)
9 ??
10 ]
11
12 0080 sseg ends
13 ;
14 0000 cseg segment
15 assume cs:cseg,ds:dseg,ss:sseg
16 0000 B8 ---- R start:mov ax,dseg
17 0003 8E D8 mov ds,ax
18 0005 B8 ---- R mov ax,sseg
19 0008 8E D0 mov ss,ax
20 ;
21 mul10 macro x
22 local next
23 push dx
24 mov ax,1
25 next:mul x
26 dec x
27 jnz next
28 pop dx
29 endm
30 ;
31 000A BA 0000 mov dx,0
32 000D B9 0005 mov cx,n
33 mul10 cx
34 0010 52 1 push dx
35 0011 B8 0001 1 mov ax,1
36 0014 F7 E1 1 ??0000:mul cx
37 0016 49 1 dec cx
38 0017 75 FB 1 jnz ??0000
39 0019 5A 1 pop dx
40 001A 8B D8 mov bx,ax
41 001C B9 000A mov cx,m
42 mul10 cx
43 001F 52 1 push dx
44 0020 B8 0001 1 mov ax,1
45 0023 F7 E1 1 ??0001:mul cx
46 0025 49 1 dec cx
47 0026 75 FB 1 jnz ??0001
48 0028 5A 1 pop dx
49 0029 F7 F3 div bx
50 002B 8B D8 mov bx,ax
51 002D BA 0000 mov dx,0
52 0030 B9 000A mov cx,m
53 0033 83 E9 05 sub cx,n
54 mul10 cx
Microsoft (R) Macro Assembler Version 5.00 1/1/99 07:36:22
Page 1-2
55 0036 52 1 push dx
56 0037 B8 0001 1 mov ax,1
57 003A F7 E1 1 ??0002:mul cx
58 003C 49 1 dec cx
59 003D 75 FB 1 jnz ??0002
60 003F 5A 1 pop dx
61 0040 93 xchg ax,bx
62 0041 F7 F3 div bx
63 0043 A3 0000 R mov ans,ax
64 0046 B4 4C mov ah,4ch
65 0048 CD 21 int 21h
66 004A cseg ends
67 end start
Microsoft (R) Macro Assembler Version 5.00 1/1/99 07:36:22
Symbols-1
Macros:
N a m e Lines
MUL10 . . . . . . . . . . . . . 6
Segments and Groups:
N a m e Length Align Combine Class
CSEG . . . . . . . . . . . . . . 004A PARA NONE
DSEG . . . . . . . . . . . . . . 0002 PARA NONE
SSEG . . . . . . . . . . . . . . 0080 PARA STACK
Symbols:
N a m e Type Value Attr
ANS . . . . . . . . . . . . . . L WORD 0000 DSEG
M . . . . . . . . . . . . . . . NUMBER 000A
N . . . . . . . . . . . . . . . NUMBER 0005
START . . . . . . . . . . . . . L NEAR 0000 CSEG
??0000 . . . . . . . . . . . . . L NEAR 0014 CSEG
??0001 . . . . . . . . . . . . . L NEAR 0023 CSEG
??0002 . . . . . . . . . . . . . L NEAR 003A CSEG
@FILENAME . . . . . . . . . . . TEXT exp10
46 Source Lines
64 Total Lines
13 Symbols
49916 + 451780 Bytes symbol space free
0 Warning Errors
0 Severe Errors
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -