Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Printlib GB

From GameBrew
Revision as of 11:10, 30 July 2024 by HydeWing (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Printlib
Printlibgb.png
General
AuthorDragonEagle, Shen Mansell
TypeSamples
Version2000
LicenseMixed
SystemDMG (GBDK)
Last Updated2000/12/06
Links
Download
Website
Source

This is the GBDK printer library by DragonEagle, extended by Shen Mansell to work correctly.

Looking at the example code should allow you to get the program going, and for more help have a look on the net for GB Printer docs.

to print:

 SendPrinterCommand(PRINTER_INIT);

 do this 20x18 times
 {
   PrintTileData (p_data); // where p_data is 16 bytes representing a tile
 }

 SendPrinterCommand(PRINTER_EOF); 
 SendPrinterCommand(PRINTER_START);

Credits

Thanks to StarTreky for pointing out some errors.

External links

Advertising: