Enviado em 08/06/2019 - 08:59h
Olá pessoal !
//-------------------------------------------------------------------
//
// GENESIS OS:
//
// A BootLoader with Operating System ...
//
//
// COMPILE:
// gcc -s -c boot.s -o boot.o -Wall
// ld boot.o -o boot.bin -Ttext=0x7c00 -e _start
// objcopy -O binary boot.bin bkernel
// OR:
// make
//
//
// TESTING WITH QEMU:
// qemu-system-i386 bkernel
//
//
// CREATE A BOOTABLE CDROM:
// mkdosfs -C floppy.flp 1440 || exit
// dd status=noxfer conv=notrunc if=bkernel of=floppy.flp || exit
// mkisofs -R -b floppy.flp -o /temp/hello_boot.iso /temp/hello_boot
//
//
// REFERENCE:
// 01: https://github.com/mig-hub/mikeOS
// 02: https://github.com/mit-pdos/xv6-public
// 03: https://github.com/benchlab/benOS-Bootloaders
// 04: http://www.sde.cs.titech.ac.jp/~gondow/udos/index.html
// 05: https://github.com/microsoft/MS-DOS
// 06: https://github.com/cirosantilli/x86-bare-metal-examples
// 07: https://github.com/devversion/CKernel
//
//
// START DATE: 07/06/2019 - 17:20
//
//-------------------------------------------------------------------
//
.code16
.text
.globl _start;
_start:
jmp boot
nop
boot:
cli
//-----------------------------------------------
// basic setup:
//-----------------------------------------------
//
mov $0, %ax // set up segments
mov %ax, %ds
mov %ax, %es
mov %ax, %ss // setup stack
mov %ax, %si
//-----------------------------------------------
mov $0x7c00, %sp // stack grows downwards from 0x7C00
// Display: "Hello"
//
mov $0xe,%ah
mov $72,%al
int $0x10
mov $101,%al
int $0x10
mov $108,%al
int $0x10
int $0x10
mov $111,%al
int $0x10
label_forever:
hlt
jmp label_forever
//-----------------------------------------------
// strings:
//-----------------------------------------------
//
msg:
.asciz "Hello World"
//-----------------------------------------------
//--------- BOOT SIGNATURE 512 BYTES ----------
//-----------------------------------------------
. = _start + 510
.byte 0x55
.byte 0xaa
tux-gpt - Assistente de IA para o Terminal
Instalação e configuração do Chrony
Programa IRPF - Guia de Instalação e Resolução de alguns Problemas
Instalando o Team Viewer no Debian Trixie - problema no Policykit
O Que Fazer Após Instalar Ubuntu 25.04
O Que Fazer Após Instalar Fedora 42
Debian 12 -- Errata - Correções de segurança
Instalando o Pi-Hole versão v5.18.4 depois do lançamento da versão v6.0
Música que eu compus, será que ficou boa? (6)
VPN Site to site mantendo wifi da operadora (0)
Alguém poderia me ajudar a escolher peças pra montar um desktop? (24)
Copiar Layout do Teclado para aplicar em outra Distribuição (3)