2 ; adapted from Atari version
3 ; Christian Groessler, 2014
5 ; void cputcxy (unsigned char x, unsigned char y, char c);
9 .include "atari5200.inc"
11 .export _cputcxy, _cputc
12 .export plot, cputdirect, putchar
17 .constructor screen_setup, 26
18 .import screen_setup_20x24
19 screen_setup = screen_setup_20x24
24 jsr gotoxy ; Set cursor, drop x and y
36 cmp #ATEOL ; Atari-EOL?
50 cputdirect: ; accepts screen code
78 jsr mul20 ; destroys tmp4
80 adc SAVMSC ; add start of screen memory
92 ataint: .byte 64,0,32,96