[cc65] Atari conio cgetc

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2003-08-14 17:48:50


When I write to the screen manually and then do a cgetc, it erases the character at 0,2.  I've had this happen in programs where I am not writing to the screen manually, but only using conio functions, but I couldn't reproduce the error with that combination in a test program.

Here is the code I used:

#include <atari.h>
#include <conio.h>

#define screen  ((unsigned char *) 0xBC40)

int main(void)
{
  screen[1] = 33;
  screen[2] = 34;
  screen[3] = 35;
  screen[4] = 36;
  screen[5] = 37;
  cgetc();

  return(1);
}

¯
Shawn Jefferson


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-08-14 17:53:25 CEST