From 3a1e20ed5a068b469ffe2df390ecb0b1ebc55abb Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Sun, 30 Mar 2014 13:23:51 +0000 Subject: [PATCH] --- bochsout | 78 +++++++++++++++++++++++++++++++++++++++--------------------------------------- boot.asm | 5 ++++- boot.bin | Bin 512 -> 0 bytes floppy.img | Bin 1474560 -> 0 bytes 4 files changed, 43 insertions(+), 40 deletions(-) diff --git a/bochsout b/bochsout index 07dea98..74da3f7 100644 --- a/bochsout +++ b/bochsout @@ -32,41 +32,41 @@ 00000000000i[ ] SB16 support: yes 00000000000i[ ] USB support: yes 00000000000i[ ] VGA extension support: vbe -00000000000i[MEM0 ] allocated memory at 0x7ff291e01010. after alignment, vector=0x7ff291e02000 +00000000000i[MEM0 ] allocated memory at 0x7f72141e9010. after alignment, vector=0x7f72141ea000 00000000000i[MEM0 ] 32,00MB 00000000000i[MEM0 ] mem block size = 0x00100000, blocks=32 00000000000i[MEM0 ] rom at 0xfffe0000/131072 ('/usr/local/share/bochs/BIOS-bochs-latest') -00000000000i[ ] lt_dlhandle is 0xd57760 +00000000000i[ ] lt_dlhandle is 0x2060760 00000000000i[PLGIN] loaded plugin libbx_hdimage.so -00000000000i[ ] lt_dlhandle is 0xd58220 +00000000000i[ ] lt_dlhandle is 0x2061220 00000000000i[PLGIN] loaded plugin libbx_pci.so -00000000000i[ ] lt_dlhandle is 0xd58b10 +00000000000i[ ] lt_dlhandle is 0x2061b10 00000000000i[PLGIN] loaded plugin libbx_pci2isa.so -00000000000i[ ] lt_dlhandle is 0xd59650 +00000000000i[ ] lt_dlhandle is 0x2062650 00000000000i[PLGIN] loaded plugin libbx_usb_uhci.so -00000000000i[ ] lt_dlhandle is 0xd5bcf0 +00000000000i[ ] lt_dlhandle is 0x2064cf0 00000000000i[PLGIN] loaded plugin libbx_usb_common.so -00000000000i[ ] lt_dlhandle is 0xd5c690 +00000000000i[ ] lt_dlhandle is 0x2065690 00000000000i[PLGIN] loaded plugin libbx_acpi.so -00000000000i[ ] lt_dlhandle is 0xd5d080 +00000000000i[ ] lt_dlhandle is 0x2066080 00000000000i[PLGIN] loaded plugin libbx_cmos.so -00000000000i[ ] lt_dlhandle is 0xd5d9a0 +00000000000i[ ] lt_dlhandle is 0x20669a0 00000000000i[PLGIN] loaded plugin libbx_dma.so -00000000000i[ ] lt_dlhandle is 0xd5e420 +00000000000i[ ] lt_dlhandle is 0x2067420 00000000000i[PLGIN] loaded plugin libbx_pic.so -00000000000i[ ] lt_dlhandle is 0xd5ed10 +00000000000i[ ] lt_dlhandle is 0x2067d10 00000000000i[PLGIN] loaded plugin libbx_pit.so -00000000000i[ ] lt_dlhandle is 0xd5f790 +00000000000i[ ] lt_dlhandle is 0x2068790 00000000000i[PLGIN] loaded plugin libbx_floppy.so -00000000000i[ ] lt_dlhandle is 0xd60470 +00000000000i[ ] lt_dlhandle is 0x2069470 00000000000i[PLGIN] loaded plugin libbx_vga.so -00000000000i[ ] lt_dlhandle is 0xd5fea0 +00000000000i[ ] lt_dlhandle is 0x2068ea0 00000000000i[PLGIN] loaded plugin libbx_ioapic.so -00000000000i[ ] lt_dlhandle is 0xd61670 +00000000000i[ ] lt_dlhandle is 0x206a670 00000000000i[PLGIN] loaded plugin libbx_keyboard.so -00000000000i[ ] lt_dlhandle is 0xd62050 +00000000000i[ ] lt_dlhandle is 0x206b050 00000000000i[PLGIN] loaded plugin libbx_harddrv.so -00000000000i[ ] lt_dlhandle is 0xd61330 +00000000000i[ ] lt_dlhandle is 0x206a330 00000000000i[PLGIN] loaded plugin libbx_pci_ide.so 00000000000i[PLGIN] init_dev of 'pci' plugin device by virtual method 00000000000i[DEV ] i440FX PMC present at device 0, function 0 @@ -74,7 +74,7 @@ 00000000000i[DEV ] PIIX3 PCI-to-ISA bridge present at device 1, function 0 00000000000i[PLGIN] init_dev of 'cmos' plugin device by virtual method 00000000000i[CMOS ] Using local time for initial clock -00000000000i[CMOS ] Setting initial clock to: Sun Mar 30 01:31:04 2014 (time0=1396139464) +00000000000i[CMOS ] Setting initial clock to: Sun Mar 30 03:10:31 2014 (time0=1396141831) 00000000000i[PLGIN] init_dev of 'dma' plugin device by virtual method 00000000000i[DMA ] channel 4 used by cascade 00000000000i[PLGIN] init_dev of 'pic' plugin device by virtual method @@ -231,24 +231,24 @@ 00001600001i[XGUI ] charmap update. Font Height is 16 00014040325i[BIOS ] Booting from 0000:7c00 00014400001i[XGUI ] charmap update. Font Height is 16 -00172500000p[XGUI ] >>PANIC<< POWER button turned off. -00172500000i[CPU0 ] CPU is in real mode (active) -00172500000i[CPU0 ] CS.mode = 16 bit -00172500000i[CPU0 ] SS.mode = 16 bit -00172500000i[CPU0 ] EFER = 0x00000000 -00172500000i[CPU0 ] | EAX=00001000 EBX=00000000 ECX=00090000 EDX=00000000 -00172500000i[CPU0 ] | ESP=0000ffde EBP=00000000 ESI=000e7c0b EDI=00000400 -00172500000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf -00172500000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D -00172500000i[CPU0 ] | CS:0000( 0004| 0| 0) 00000000 0000ffff 0 0 -00172500000i[CPU0 ] | DS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 -00172500000i[CPU0 ] | SS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 -00172500000i[CPU0 ] | ES:1000( 0005| 0| 0) 00010000 0000ffff 0 0 -00172500000i[CPU0 ] | FS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 -00172500000i[CPU0 ] | GS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 -00172500000i[CPU0 ] | EIP=00007c8e (00007c8e) -00172500000i[CPU0 ] | CR0=0x60000010 CR2=0x00000000 -00172500000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000 -00172500000i[CMOS ] Last time is 1396139507 (Sun Mar 30 01:31:47 2014) -00172500000i[XGUI ] Exit -00172500000i[CTRL ] quit_sim called with exit code 1 +00132892000p[XGUI ] >>PANIC<< POWER button turned off. +00132892000i[CPU0 ] CPU is in real mode (active) +00132892000i[CPU0 ] CS.mode = 16 bit +00132892000i[CPU0 ] SS.mode = 16 bit +00132892000i[CPU0 ] EFER = 0x00000000 +00132892000i[CPU0 ] | EAX=00001000 EBX=00000000 ECX=00090006 EDX=00000000 +00132892000i[CPU0 ] | ESP=0000ffde EBP=00000000 ESI=000e7c0b EDI=00000400 +00132892000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf +00132892000i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D +00132892000i[CPU0 ] | CS:0000( 0004| 0| 0) 00000000 0000ffff 0 0 +00132892000i[CPU0 ] | DS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 +00132892000i[CPU0 ] | SS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 +00132892000i[CPU0 ] | ES:1000( 0005| 0| 0) 00010000 0000ffff 0 0 +00132892000i[CPU0 ] | FS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 +00132892000i[CPU0 ] | GS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 +00132892000i[CPU0 ] | EIP=00007c94 (00007c94) +00132892000i[CPU0 ] | CR0=0x60000010 CR2=0x00000000 +00132892000i[CPU0 ] | CR3=0x00000000 CR4=0x00000000 +00132892000i[CMOS ] Last time is 1396141864 (Sun Mar 30 03:11:04 2014) +00132892000i[XGUI ] Exit +00132892000i[CTRL ] quit_sim called with exit code 1 diff --git a/boot.asm b/boot.asm index 1411fe8..03f93ee 100644 --- a/boot.asm +++ b/boot.asm @@ -24,9 +24,12 @@ str: db 'THE GAME ',0x00 clear_screen: PUSH ax - MOV al, 02h ; Setting the graphical mode 80x25(text) + MOV al, 03h ; Setting the graphical mode 80x25(text) MOV ah, 00h ; Code of the function of changing video mode INT 10h ; Call interruption + MOV cl, 0x06 + MOV ah, 0x01 + INT 10h POP ax RETN diff --git a/boot.bin b/boot.bin index 65fc8cf..5f5227a 100644 Binary files a/boot.bin and b/boot.bin differ diff --git a/floppy.img b/floppy.img index f3f3765..fd2a24f 100644 Binary files a/floppy.img and b/floppy.img differ -- libgit2 0.22.2