From: Groepaz (groepaz_at_gmx.net)
Date: 2003-02-03 12:34:36
On Sunday 02 February 2003 21:13, Carsten Strotmann wrote: > This is my programm, to my knowledge, valid C code (but I'm not an expert) looks good :o) > ---------------------- > > #include <atari.h> > #include <stdio.h> > > typedef unsigned char byte; > typedef unsigned word; > > int main(void) > { > *(byte*) 0x2FC = 0xFF; // clear keybuffer > while (*(byte*) 0x2FC == 0xFF) // while no key pressed why not kbhit() ? :_) > { > *(byte*) 0xD40A = *(byte*) 0xD018 = (*(byte*) 0x12) + (*(byte*) \ > 0xD40B); // change bg-color every scanline > } > getchar(); > return(0); > } > ---------------------- > > On compile with cc65 2.9.0 I get > > rainbow.c(46): Internal compiler error: > oursp != savsp (-2 != 0) > Line: } > cl65: Subprocess `cc65' aborted by signal 6 > > Can anyone see what is wrong? > Or is this a compiler problem? eek :o) "internel error" most likely does NOT mean your code is not valid, yes :O) i bet if you use braces as in *((byte*)0x47=0x11) it might work :o) -- ___ ___ .___________________ .___________ _______. c=64 / | \| \__ ___/ \ \_ _____/ \ \ [groepaz] gb / ' \ | | | / \ / \ | __)_ / | \ gp32 cgb \ . / | | |/ ' \| \/ | \ psx gba \___|_ /|___| |____|\____|__ /_______ /\____|__ / dc -----\/-----'---------------\/--------\/---------\/ http://www.hitmen-console.org Hitmen WWW Headquarters http://fly.to/hitmen-groepaz my personal playground http://rr.c64.org/silversurfer home of the RR debugger ftp.musoftware.de/pub/groepaz cc65 dump site ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-02-03 12:33:53 CET