⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pm12.lst

📁 《自己动手写操作系统》一书的光盘配套代码
💻 LST
📖 第 1 页 / 共 5 页
字号:
     dc0:	8b 5d fc       	movl   0xfffffffc(%ebp),%ebx
     dc3:	c9             	leave  
     dc4:	c3             	ret    
     dc5:	8d 76 00       	leal   0x0(%esi),%esi

00000dc8 <_putch>:
     dc8:	55             	pushl  %ebp
     dc9:	89 e5          	movl   %esp,%ebp
     dcb:	83 ec 0c       	subl   $0xc,%esp
     dce:	57             	pushl  %edi
     dcf:	56             	pushl  %esi
     dd0:	53             	pushl  %ebx
     dd1:	8b 75 08       	movl   0x8(%ebp),%esi
     dd4:	0f be 05 58 04 	movsbl 0x458,%eax
     dd9:	00 00 
     ddb:	8d 04 80       	leal   (%eax,%eax,4),%eax
     dde:	c1 e0 04       	shll   $0x4,%eax
     de1:	0f be 15 57 04 	movsbl 0x457,%edx
     de6:	00 00 
     de8:	01 d0          	addl   %edx,%eax
     dea:	8d 3c 45 00 80 	leal   0xb8000(,%eax,2),%edi
     def:	0b 00 
     df1:	83 fe 08       	cmpl   $0x8,%esi
     df4:	75 6a          	jne    e60 <L112>
     df6:	bb ff 71 00 00 	movl   $0x71ff,%ebx
     dfb:	80 3d 57 04 00 	cmpb   $0x0,0x457
     e00:	00 00 
     e02:	75 14          	jne    e18 <L114>
     e04:	80 3d 58 04 00 	cmpb   $0x0,0x458
     e09:	00 00 
     e0b:	75 0b          	jne    e18 <L114>
     e0d:	b8 ff ff ff ff 	movl   $0xffffffff,%eax
     e12:	e9 36 01 00 00 	jmp    f4d <L146>
     e17:	90             	nop    

00000e18 <L114>:
     e18:	83 c7 fe       	addl   $0xfffffffe,%edi
     e1b:	8a 0d 57 04 00 	movb   0x457,%cl
     e20:	00 
     e21:	84 c9          	testb  %cl,%cl
     e23:	74 0b          	je     e30 <L117>
     e25:	fe c9          	decb   %cl
     e27:	88 0d 57 04 00 	movb   %cl,0x457
     e2c:	00 
     e2d:	eb 0e          	jmp    e3d <L116>
     e2f:	90             	nop    

00000e30 <L117>:
     e30:	c6 05 57 04 00 	movb   $0x4f,0x457
     e35:	00 4f 
     e37:	fe 0d 58 04 00 	decb   0x458
     e3c:	00 

00000e3d <L116>:
     e3d:	b8 08 00 00 00 	movl   $0x8,%eax
     e42:	66 8e e0       	movw   %ax,%fs
     e45:	64 66 8b 07    	movw   %fs:(%edi),%ax
     e49:	66 39 d8       	cmpw   %bx,%ax
     e4c:	74 ca          	je     e18 <L114>
     e4e:	ba 08 00 00 00 	movl   $0x8,%edx
     e53:	66 8e e2       	movw   %dx,%fs
     e56:	64 66 89 1f    	movw   %bx,%fs:(%edi)
     e5a:	e9 a4 00 00 00 	jmp    f03 <L122>
     e5f:	90             	nop    

00000e60 <L112>:
     e60:	83 fe 09       	cmpl   $0x9,%esi
     e63:	75 13          	jne    e78 <L123>
     e65:	8a 05 57 04 00 	movb   0x457,%al
     e6a:	00 
     e6b:	24 07          	andb   $0x7,%al
     e6d:	66 f7 d0       	notw   %ax
     e70:	89 c3          	movl   %eax,%ebx
     e72:	83 e3 07       	andl   $0x7,%ebx
     e75:	eb 27          	jmp    e9e <L124>
     e77:	90             	nop    

00000e78 <L123>:
     e78:	83 fe 0d       	cmpl   $0xd,%esi
     e7b:	75 0b          	jne    e88 <L126>
     e7d:	c6 05 57 04 00 	movb   $0x0,0x457
     e82:	00 00 
     e84:	eb 7d          	jmp    f03 <L122>
     e86:	89 f6          	movl   %esi,%esi

00000e88 <L126>:
     e88:	83 fe 0a       	cmpl   $0xa,%esi
     e8b:	75 3f          	jne    ecc <L135>
     e8d:	66 0f be 15 57 	movsbw 0x457,%dx
     e92:	04 00 00 
     e95:	b8 4f 00 00 00 	movl   $0x4f,%eax
     e9a:	89 c3          	movl   %eax,%ebx
     e9c:	29 d3          	subl   %edx,%ebx

00000e9e <L124>:
     e9e:	6a 20          	pushl  $0x20
     ea0:	e8 23 ff ff ff 	call   dc8 <_putch>
     ea5:	83 c4 04       	addl   $0x4,%esp
     ea8:	66 85 db       	testw  %bx,%bx
     eab:	0f 84 9a 00 00 	je     f4b <L147>
     eb0:	00 
     eb1:	8d 76 00       	leal   0x0(%esi),%esi

00000eb4 <L132>:
     eb4:	68 ff 00 00 00 	pushl  $0xff
     eb9:	e8 0a ff ff ff 	call   dc8 <_putch>
     ebe:	83 c4 04       	addl   $0x4,%esp
     ec1:	66 4b          	decw   %bx
     ec3:	75 ef          	jne    eb4 <L132>
     ec5:	e9 81 00 00 00 	jmp    f4b <L147>
     eca:	89 f6          	movl   %esi,%esi

00000ecc <L135>:
     ecc:	83 fe 1f       	cmpl   $0x1f,%esi
     ecf:	7e 32          	jle    f03 <L122>
     ed1:	89 f0          	movl   %esi,%eax
     ed3:	80 cc 71       	orb    $0x71,%ah
     ed6:	ba 08 00 00 00 	movl   $0x8,%edx
     edb:	66 8e e2       	movw   %dx,%fs
     ede:	64 66 89 07    	movw   %ax,%fs:(%edi)
     ee2:	fe 05 57 04 00 	incb   0x457
     ee7:	00 
     ee8:	80 3d 57 04 00 	cmpb   $0x4f,0x457
     eed:	00 4f 
     eef:	7e 12          	jle    f03 <L122>
     ef1:	c6 05 57 04 00 	movb   $0x0,0x457
     ef6:	00 00 
     ef8:	fe 05 58 04 00 	incb   0x458
     efd:	00 
     efe:	e8 1d fe ff ff 	call   d20 <_scroll>

00000f03 <L122>:
     f03:	0f be 05 58 04 	movsbl 0x458,%eax
     f08:	00 00 
     f0a:	89 45 f8       	movl   %eax,0xfffffff8(%ebp)
     f0d:	8d 14 80       	leal   (%eax,%eax,4),%edx
     f10:	c1 e2 04       	shll   $0x4,%edx
     f13:	89 55 f8       	movl   %edx,0xfffffff8(%ebp)
     f16:	66 0f be 05 57 	movsbw 0x457,%ax
     f1b:	04 00 00 
     f1e:	89 c3          	movl   %eax,%ebx
     f20:	03 5d f8       	addl   0xfffffff8(%ebp),%ebx
     f23:	fa             	cli    
     f24:	ba d4 03 00 00 	movl   $0x3d4,%edx
     f29:	b0 0e          	movb   $0xe,%al
     f2b:	ee             	outb   %al,(%dx)
     f2c:	89 d9          	movl   %ebx,%ecx
     f2e:	66 c1 e9 08    	shrw   $0x8,%cx
     f32:	ba d5 03 00 00 	movl   $0x3d5,%edx
     f37:	88 c8          	movb   %cl,%al
     f39:	ee             	outb   %al,(%dx)
     f3a:	ba d4 03 00 00 	movl   $0x3d4,%edx
     f3f:	b0 0f          	movb   $0xf,%al
     f41:	ee             	outb   %al,(%dx)
     f42:	ba d5 03 00 00 	movl   $0x3d5,%edx
     f47:	88 d8          	movb   %bl,%al
     f49:	ee             	outb   %al,(%dx)
     f4a:	fb             	sti    

00000f4b <L147>:
     f4b:	89 f0          	movl   %esi,%eax

00000f4d <L146>:
     f4d:	8d 65 e8       	leal   0xffffffe8(%ebp),%esp
     f50:	5b             	popl   %ebx
     f51:	5e             	popl   %esi
     f52:	5f             	popl   %edi
     f53:	c9             	leave  
     f54:	c3             	ret    

00000f55 <LC33>:
     f55:	73 65          	jae    fbc <LC22+5>
     f57:	63 6f 6e       	arpl   %bp,0x6e(%edi)
     f5a:	64 61          	popa   
     f5c:	72 79          	jb     fd7 <LC18+5>
     f5e:	20 49 44       	andb   %cl,0x44(%ecx)
     f61:	45             	incl   %ebp
	...

00000f63 <LC32>:
     f63:	70 72          	jo     fd7 <LC18+5>
     f65:	69 6d 61 72 79 	imull  $0x49207972,0x61(%ebp),%ebp
     f6a:	20 49 
     f6c:	44             	incl   %esp
     f6d:	45             	incl   %ebp
	...

00000f6f <LC31>:
     f6f:	6d             	insl   (%dx),%es:(%edi)
     f70:	61             	popa   
     f71:	74 68          	je     fdb <LC18+9>
     f73:	20 63 68       	andb   %ah,0x68(%ebx)
     f76:	69 70 00 49 52 	imull  $0x20515249,0x0(%eax),%esi
     f7b:	51 20 

00000f79 <LC30>:
     f79:	49             	decl   %ecx
     f7a:	52             	pushl  %edx
     f7b:	51             	pushl  %ecx
     f7c:	20 31          	andb   %dh,(%ecx)
     f7e:	32 00          	xorb   (%eax),%al

00000f80 <LC29>:
     f80:	49             	decl   %ecx
     f81:	52             	pushl  %edx
     f82:	51             	pushl  %ecx
     f83:	20 31          	andb   %dh,(%ecx)
     f85:	31 00          	xorl   %eax,(%eax)

00000f87 <LC28>:
     f87:	49             	decl   %ecx
     f88:	52             	pushl  %edx
     f89:	51             	pushl  %ecx
     f8a:	20 31          	andb   %dh,(%ecx)
     f8c:	30 00          	xorb   %al,(%eax)

00000f8e <LC27>:
     f8e:	49             	decl   %ecx
     f8f:	52             	pushl  %edx
     f90:	51             	pushl  %ecx
     f91:	20 39          	andb   %bh,(%ecx)
	...

00000f94 <LC26>:
     f94:	72 65          	jb     ffb <LC15+b>
     f96:	61             	popa   
     f97:	6c             	insb   (%dx),%es:(%edi)
     f98:	2d 74 69 6d 65 	subl   $0x656d6974,%eax
     f9d:	20 63 6c       	andb   %ah,0x6c(%ebx)
     fa0:	6f             	outsl  %ds:(%esi),(%dx)
     fa1:	63 6b 00       	arpl   %bp,0x0(%ebx)

00000fa4 <LC25>:
     fa4:	49             	decl   %ecx
     fa5:	52             	pushl  %edx
     fa6:	51             	pushl  %ecx
     fa7:	20 37          	andb   %dh,(%edi)
	...

00000faa <LC24>:
     faa:	66 6c          	insb   (%dx),%es:(%edi)
     fac:	6f             	outsl  %ds:(%esi),(%dx)
     fad:	70 70          	jo     101f <LC11+2>
     faf:	79 00          	jns    fb1 <LC23>

00000fb1 <LC23>:
     fb1:	49             	decl   %ecx
     fb2:	52             	pushl  %edx
     fb3:	51             	pushl  %ecx
     fb4:	20 35 00 49 52 	andb   %dh,0x51524900
     fb9:	51 

00000fb7 <LC22>:
     fb7:	49             	decl   %ecx
     fb8:	52             	pushl  %edx
     fb9:	51             	pushl  %ecx
     fba:	20 34 00       	andb   %dh,(%eax,%eax,1)

00000fbd <LC21>:
     fbd:	49             	decl   %ecx
     fbe:	52             	pushl  %edx
     fbf:	51             	pushl  %ecx
     fc0:	20 33          	andb   %dh,(%ebx)
	...

00000fc3 <LC20>:
     fc3:	49             	decl   %ecx
     fc4:	52             	pushl  %edx
     fc5:	51             	pushl  %ecx
     fc6:	20 32          	andb   %dh,(%edx)
	...

00000fc9 <LC19>:
     fc9:	6b 65 79 62    	imull  $0x62,0x79(%ebp),%esp
     fcd:	6f             	outsl  %ds:(%esi),(%dx)
     fce:	61             	popa   
     fcf:	72 64          	jb     1035 <LC10+4>
	...

00000fd2 <LC18>:
     fd2:	74 69          	je     103d <LC9+4>
     fd4:	6d             	insl   (%dx),%es:(%edi)
     fd5:	65 72 20       	jb     ff8 <LC15+8>
     fd8:	74 69          	je     1043 <LC9+a>
     fda:	63 6b 00       	arpl   %bp,0x0(%ebx)

00000fdd <LC17>:
     fdd:	61             	popa   
     fde:	6c             	insb   (%dx),%es:(%edi)
     fdf:	69 67 6e 6d 65 	imull  $0x746e656d,0x6e(%edi),%esp
     fe4:	6e 74 
     fe6:	20 63 68       	andb   %ah,0x68(%ebx)
     fe9:	65 63 6b 00    	arpl   %bp,%gs:0x0(%ebx)

00000fed <LC16>:
     fed:	3f             	aas    
     fee:	3f             	aas    
	...

00000ff0 <LC15>:
     ff0:	63 6f 70       	arpl   %bp,0x70(%edi)
     ff3:	72 6f          	jb     1064 <LC7+2>
     ff5:	63 65 73       	arpl   %sp,0x73(%ebp)
     ff8:	73 6f          	jae    1069 <LC7+7>
     ffa:	72 20          	jb     101c <LC12+b>
     ffc:	65 72 72       	jb     1071 <LC6>
     fff:	6f             	outsl  %ds:(%esi),(%dx)
    1000:	72 00          	jb     1002 <LC14>

00001002 <LC14>:
    1002:	70 61          	jo     1065 <LC7+3>
    1004:	67 65 20 66 61 	addr16 andb %ah,%gs:0x61(bp)
    1009:	75 6c          	jne    1077 <LC6+6>
    100b:	74 00          	je     100d <LC13>

0000100d <LC13>:
    100d:	47             	incl   %edi
    100e:	50             	pushl  %eax
    100f:	46             	incl   %esi
	...

00001011 <LC12>:
    1011:	73 74          	jae    1087 <LC5+7>
    1013:	61             	popa   
    1014:	63 6b 20       	arpl   %bp,0x20(%ebx)
    1017:	66 61          	popa   
    1019:	75 6c          	jne    1087 <LC5+7>
    101b:	74 00          	je     101d <LC11>

0000101d <LC11>:
    101d:	73 65          	jae    1084 <LC5+4>
    101f:	67 6d          	addr16 insl (%dx),%es:(%di)
    1021:	65 6e          	outsb  %ds:(%esi),(%dx)
    1023:	74 20          	je     1045 <LC9+c>
    1025:	6e             	outsb  %ds:(%esi),(%dx)
    1026:	6f             	outsl  %ds:(%esi),(%dx)
    1027:	74 20          	je     1049 <LC9+10>
    1029:	70 72          	jo     109d <LC2+3>
    102b:	65 73 65       	jae    1093 <LC4+3>
    102e:	6e             	outsb  %ds:(%esi),(%dx)
    102f:	74 00          	je     1031 <LC10>

00001031 <LC10>:
    1031:	62 61 64       	boundl 0x64(%ecx),%esp
    1034:	20 54 53 53    	andb   %dl,0x53(%ebx,%edx,2)
	...

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -