template.pp 432 B

1234567891011121314151617181920212223
  1. program template;
  2. uses
  3. ctypes, gba;
  4. begin
  5. // the vblank interrupt must be enabled for VBlankIntrWait() to work
  6. // since the default dispatcher handles the bios flags no vblank handler
  7. // is required
  8. irqInit();
  9. irqEnable(IRQ_VBLANK);
  10. consoleDemoInit();
  11. // ansi escape sequence to set print co-ordinates
  12. // /x1b[line;columnH
  13. iprintf(#$1b'[10;10HHello World!'#10);
  14. while true do
  15. VBlankIntrWait();
  16. end.