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

📄 hello.lst

📁 一个类linux的dos下开发的操作系统.
💻 LST
字号:

hello.x:     file format coff-go32

Disassembly of section .text:

40000000 <_code>:
_wait():
hello.c:10
static void wait(void)
{
	unsigned long wait;

	for(wait = WAIT; wait != 0; wait--)
40000000:	55                   	push   %ebp
40000001:	89 e5                	mov    %esp,%ebp
40000003:	b8 ff ff 0f 00       	mov    $0xfffff,%eax
40000008:	48                   	dec    %eax
40000009:	75 fd                	jne    40000008 <_code+0x8>
4000000b:	89 ec                	mov    %ebp,%esp
4000000d:	5d                   	pop    %ebp
4000000e:	c3                   	ret    

4000000f <_msg>:
hello.c:12
		/* nothing */;
}
4000000f:	68 65 6c 6c 6f       	push   $0x6f6c6c65
40000014:	20 00                	and    %al,(%eax)
40000016:	89 f6                	mov    %esi,%esi

40000018 <_main>:
_main():
hello.c:25
/*****************************************************************************
for MinGW32
*****************************************************************************/
#ifdef __WIN32__
int __main(void) { return 0; }
#endif
/*****************************************************************************
*****************************************************************************/
int main(void)
{
	static const char msg[] = "hello ";

	while(1)
40000018:	55                   	push   %ebp
40000019:	89 e5                	mov    %esp,%ebp
4000001b:	83 ec 08             	sub    $0x8,%esp
4000001e:	89 f6                	mov    %esi,%esi
hello.c:27
	{
		write(0, (char *)msg, sizeof(msg));
40000020:	83 c4 fc             	add    $0xfffffffc,%esp
40000023:	6a 07                	push   $0x7
40000025:	68 0f 00 00 40       	push   $0x4000000f
4000002a:	6a 00                	push   $0x0
4000002c:	e8 0f 00 00 00       	call   40000040 <_write>
hello.c:28
		wait();
40000031:	e8 ca ff ff ff       	call   40000000 <_code>
hello.c:29
	}
40000036:	83 c4 10             	add    $0x10,%esp
40000039:	eb e5                	jmp    40000020 <_main+0x8>

4000003b <.ef>:
hello.c:31
	return 0;
}
4000003b:	90                   	nop    
4000003c:	8d 74 26 00          	lea    0x0(%esi,1),%esi

40000040 <_write>:
_write():
write.c:5
40000040:	55                   	push   %ebp
40000041:	89 e5                	mov    %esp,%ebp
40000043:	53                   	push   %ebx
write.c:8
40000044:	b8 02 00 00 00       	mov    $0x2,%eax
write.c:5
40000049:	8b 55 08             	mov    0x8(%ebp),%edx
4000004c:	8b 5d 0c             	mov    0xc(%ebp),%ebx
4000004f:	8b 4d 10             	mov    0x10(%ebp),%ecx
write.c:8
40000052:	cd 30                	int    $0x30
write.c:11
40000054:	5b                   	pop    %ebx
40000055:	89 ec                	mov    %ebp,%esp
40000057:	5d                   	pop    %ebp
40000058:	c3                   	ret    

40000059 <.ef>:
write.c:12
40000059:	8d b4 26 00 00 00 00 	lea    0x0(%esi,1),%esi
	...

⌨️ 快捷键说明

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