Skip to content

Instantly share code, notes, and snippets.

View fpetrot's full-sized avatar

Frédéric Pétrot fpetrot

View GitHub Profile
@iamgreaser
iamgreaser / boot.S
Last active April 21, 2024 09:04
RV64 QEMU virt VGA mode 13h
// riscv64-elf-gcc -Os -mcmodel=medany -nostdlib -march=rv64gc -Wl,-T,qemu.ld -o vga-hello.elf boot.S main.c
// qemu-system-riscv64 -machine virt -device VGA -smp 1 -kernel vga-hello.elf
.section .text
.global _start
.global _enter
_start:
_enter:
//1: j 1b