Skip to content
Text & Graphics BIOS library
Assembly C Makefile
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
apet APET transparency highlight Oct 9, 2017
example_pictures Picture transparency Oct 9, 2017
lib String input, enabling/disabling keyboard handlers Mar 1, 2018
.gitignore Boot parameter block in bootloader May 8, 2017
LICENSE Initial commit Feb 19, 2017


Text & Graphics BIOS library

What is it?

A library that helps you write assembler code for BIOS.
It includes bootloader, functions and macros for printing strings, managing keyboard, drawing ASCII pictures, timers etc.

How to use it?

Copy the lib/ folder to your project's one and don't forget to set the -i "lib/" flag for NASM. Then take a look at the examples.
Also you may check project wiki.
Moreover, TGBL has a tool for drawing ASCII-pictures.

Building sample program and running

Cd into any example, then:

  • $ make to get a binary
  • $ make run to build and launch QEMU
  • # dd if=%binary name% of=%device name% bs=512 to write a binary to device

Running from emulator

TGBL was tested on QEMU.


  • nasm
  • QEMU (to test your programs)
You can’t perform that action at this time.