Skip to content

Cortlet-Org/tbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Write 16-bit bootloaders in Dart via a Dart -> Assembly compilation pipeline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages