Ver código fonte

init: bochs test

runningwater 1 ano atrás
pai
commit
ddf0193078
3 arquivos alterados com 38 adições e 1 exclusões
  1. 3 1
      .gitignore
  2. 17 0
      bochsrc
  3. 18 0
      boot.asm

+ 3 - 1
.gitignore

@@ -70,4 +70,6 @@ Icon
 Network Trash Folder
 Temporary Items
 .apdisk
-
+bochsout.txt
+a.img
+boot.bin

+ 17 - 0
bochsrc

@@ -0,0 +1,17 @@
+display_library: sdl2
+
+romimage: file=$BXSHARE/BIOS-bochs-latest, options=fastboot
+
+vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
+
+mouse: enabled=0
+
+floppya: 1_44=a.img, status=inserted
+
+boot: floppy
+
+log: bochsout.txt
+
+logprefix: %t%e%d
+
+# memory: guest=512, host=256, block_size=512

+ 18 - 0
boot.asm

@@ -0,0 +1,18 @@
+	org 07c00h
+	mov ax, cs
+	mov ds, ax
+	mov es, ax
+	call DispStr
+	jmp $
+DispStr:
+	mov ax, BootMessage
+	mov bp, ax
+	mov cx, 16
+	mov ax, 01301h
+	mov bx, 000ch
+	mov dl, 0
+	int 10h
+	ret
+BootMessage:	db "Hello OS World"
+times 510 - ($-$$) db 0
+dw 0xaa55