Debug Bootsect and Setup and head to main

Source: Internet
Author: User

<bochs:1> b 0x0:0x7c00
<bochs:2> C
(0) Breakpoint 1, 0x7c00 in?? ()
Next at t=16165613
(0) [0x00007c00] 0000:7c00 (UNK. Ctxt): mov ax, 0x7c0; b8c007
<bochs:3> b 0x90200
<bochs:4> C
(0) Breakpoint 2, 0x90200 in?? ()
Next at t=16396177
(0) [0x00090200] 9020:0000 (UNK. Ctxt): mov ax, 0x9000; b80090
<bochs:5> b 0x00
<bochs:6> C
(0) Breakpoint 3, 0x0 in?? ()
Next at t=16659024
(0) [0x00000000] 0008:00000000 (UNK. Ctxt): mov eax, 0x10; b810000000
<bochs:7> u
00000000: (): mov eax, 0x10; b810000000
<bochs:8> b 0x5400
<bochs:9> C
(0) Breakpoint 4, 0x5400 in?? ()
Next at t=16660345
(0) [0x00005400] 0008:00005400 (UNK. Ctxt): Push 0x0; 6a00

<bochs:12> U/10
00005400: (): Push 0x0; 6a00
00005402: (): Push 0x0; 6a00
00005404: (): Push 0x0; 6a00
00005406: (): Push 0x5412; 6812540000
0000540B: (): Push 0x664c; 684c660000
00005410: (): JMP 0x5450; eb3e
00005412: (): JMP 0x5412; Ebfe
00005414: (): Push EBP; 55
00005415: (): OUTSB DX, byte ptr [esi]; 6e
00005416: (): Imul ebp, DWORD ptr ds:[esi+0x6f], 0x77; 6b6e6f77
<bochs:13> b 0x5450
<bochs:14> C
(0) Breakpoint 5, 0x5450 in?? ()
Next at t=16660351
(0) [0x00005450] 0008:00005450 (UNK. Ctxt): mov ecx, 0x1400; b900140000


<bochs:17> U/30
00005450: (): mov ecx, 0x1400; b900140000
00005455: (): Xor eax, eax; 31c0
00005457: (): Xor EDI, EDI; 31ff
00005459: (): CLD; Fc
0000545A: (): Rep stos dword ptr [edi], eax; F3ab
0000545C: (): mov dword ptr [ds:0x0], 0x1007; c7050000000007100000
00005466: (): mov dword ptr [ds:0x4], 0x2007; c7050400000007200000
00005470: (): mov dword ptr [ds:0x8], 0x3007; c7050800000007300000
0000547a: (): mov dword ptr [ds:0xc], 0x4007; c7050c00000007400000
00005484: (): mov edi, 0X4FFC; bffc4f0000
00005489: (): mov eax, 0xfff007; B807f0ff00
0000548e: (): STD; Fd
0000548f: (): STOs dword ptr [edi], eax; Ab
00005490: (): Sub eax, 0x1000; 2d00100000
00005495: (): Jnl 0x548f; 7df8
00005497: (): Xor eax, eax; 31c0
00005499: (): mov cr3, eax; 0f22d8
0000549c: (): mov eax, CR0; 0f20c0
0000549f: (): or eax, 0x80000000; 0d00000080
000054A4: (): mov cr0, eax; 0f22c0
000054a7: (): RETN; C3
000054A8: (): Add byte ptr ds:[eax], AL; 0000
000054AA: (): Inc DWORD PTR Ds:[edi]; Ff07
000054AC: (): mov eax, 0x54; b854000000
000054B1: (): Add BH, BH; 00ff
000054B3: (): Pop es; 07
000054B4: (): mov eax, 0x2800005c; b85c000028
000054B9: (): Push ESP; 54
000054BA: (): Or byte ptr ds:[eax], AL; 0800
000054BC: (): Add byte ptr ds:[esi+0x54280000], cl; 008e00002854
<bochs:18> b 0x54a7
<bochs:19> C
(0) Breakpoint 6, 0x54a7 in?? ()
Next at t=16677775
(0) [0x000054a7] 0008:000054a7 (UNK. Ctxt): RETN; C3
<bochs:20> s
Next at t=16677776
(0) [0x0000664c] 0008:0000664c (UNK. Ctxt): Push EBP; 55
<bochs:21> U/20
0000664C: (): Push EBP; 55
0000664D: (): MOV ebp, esp; 89e5
0000664f: (): movzx ecx, Word ptr [DS:0X901FC]; 0fb70dfc010900
00006656: (): mov dword ptr [ds:0x1a964], ecx; 890d64a90100
0000665C: (): mov eax, 0x90080; b880000900
00006661: (): mov edx, 0x1dd6c; ba6cdd0100
00006666: (): mov ecx, dword ptr ds:[eax]; 8b08
00006668: (): mov dword ptr ds:[edx], ecx; 890a
0000666A: (): mov ecx, dword ptr ds:[eax+0x4]; 8b4804
0000666D: (): mov dword ptr ds:[edx+0x4], ecx; 894a04
00006670: (): mov ecx, dword ptr ds:[eax+0x8]; 8b4808
00006673: (): mov dword ptr ds:[edx+0x8], ecx; 894a08
00006676: (): mov ecx, dword ptr ds:[eax+0xc]; 8b480c
00006679: (): mov dword ptr ds:[edx+0xc], ecx; 894a0c
0000667c: (): mov ecx, dword ptr ds:[eax+0x10]; 8b4810
0000667f: (): mov dword ptr ds:[edx+0x10], ecx; 894a10
00006682: (): mov ecx, dword ptr ds:[eax+0x14]; 8b4814
00006685: (): mov dword ptr ds:[edx+0x14], ecx; 894a14
00006688: (): mov ecx, dword ptr ds:[eax+0x18]; 8b4818
0000668B: (): mov dword ptr ds:[edx+0x18], ecx; 894a18
<bochs:22>

Debug Bootsect and Setup and head to main

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.