cc65 mit TGI
Verfasst: 28.04.2023 14:26
Hallo allerseits,
hat hier schon jemand versucht ein C-Programm mit dem cc65 Compiler mit der Grafikbibliothek TGI (tiny graphics interface) zum Laufen zu bringen? Meine Versuche endeten bisher immer in einem Absturz; ich verwende den Treiber atrx8.tgi.
Ich habe das Beispielprogramm "tgitest" etwas abgespeckt (s. Anhang).
Nach dem Booten von DOS II V2.5 wähle ich L. BINARY LOAD und gebe TGITEST.COM ein.
Die Ausgaben sind wie folgt:
tgi driver to test? atrx8.tgi
Loading 'atrx8.tgi'
Driver loaded successfully
x resolution: 320
y resolution: 192
color count: 2
page count: 1
memory footprint: 1578
Press any key to continue
This test will plot random points on
the screen. You can stop the test by
pressing a key.
Press any key to continue
Now starting tgi_init()
Dann stürzt das Programm ab und es erfolgt ein Rücksprung ins DOS-Menü.
Irgendeine Idee, was das Problem sein könnte?
hat hier schon jemand versucht ein C-Programm mit dem cc65 Compiler mit der Grafikbibliothek TGI (tiny graphics interface) zum Laufen zu bringen? Meine Versuche endeten bisher immer in einem Absturz; ich verwende den Treiber atrx8.tgi.
Ich habe das Beispielprogramm "tgitest" etwas abgespeckt (s. Anhang).
Nach dem Booten von DOS II V2.5 wähle ich L. BINARY LOAD und gebe TGITEST.COM ein.
Die Ausgaben sind wie folgt:
tgi driver to test? atrx8.tgi
Loading 'atrx8.tgi'
Driver loaded successfully
x resolution: 320
y resolution: 192
color count: 2
page count: 1
memory footprint: 1578
Press any key to continue
This test will plot random points on
the screen. You can stop the test by
pressing a key.
Press any key to continue
Now starting tgi_init()
Dann stürzt das Programm ab und es erfolgt ein Rücksprung ins DOS-Menü.
Irgendeine Idee, was das Problem sein könnte?