tbs 1.0.0 copy "tbs: ^1.0.0" to clipboard
tbs: ^1.0.0 copied to clipboard

Teretalia Boot Set — A Dart-to-16-bit bootloader compiler. TBS allows developers to write BIOS-level bootloaders directly in Dart using the TBS DSL, and compiles them into real bootable binaries via NASM.

TBS - Teretalia Boot Set #

Teretalia Boot Set is a dart based compiler that generates real 16-bit x86 bootloaders.

It provides a minimal DSL implemented in Dart that maps directly to BIOS Interrupts and register operations.

Features: #

  • Dart DSL
  • TBS.Al and TBS.Ah supported.
  • Only Dart files - no .tbs files.
  • Compiles to ASM and outputs to .bin (bootable in QEMU and hardware.)

Example #

You can run the following example using:

dart run bin/tbs_compiler.dart examples/boot.dart
import 'package:tbs/tbs.dart';

void main() {
  TBS.Al("H");
  TBS.Print();

  TBS.Al("I");
  TBS.Print();

  TBS.Halt();
}

Supported Instructions: #

Instruction ASM Output
TBS.Ah(x) mov ah, x
TBS.Al(x) mov al, x
TBS.Print() mov ah, 0x0E, then int 0x10
TBS.Halt() hlt
0
likes
120
points
15
downloads

Documentation

Documentation
API reference

Publisher

verified publishercortlet.com

Weekly Downloads

Teretalia Boot Set — A Dart-to-16-bit bootloader compiler. TBS allows developers to write BIOS-level bootloaders directly in Dart using the TBS DSL, and compiles them into real bootable binaries via NASM.

Repository (GitHub)
View/report issues

Topics

#bootloader #compiler #dart-dsl #bios #osdev

License

MIT (license)

More

Packages that depend on tbs