cc65 update-notes
xrefzp lall my_lall equ lallThe label my_lall got the value 0 :).
// this is a comment /* and this // also */
vbl() interrupt { if ( doswap ) { SwapBuffers(); doswap = 0; } }This helps the compiler to check the code.E.g no register variables are allowed during interrupts !
unsigned char joybut at 0xfcb0;See lynx.h for more.
#define test(a) printf("Hello "#a) test(World);is expanded to
printf("Hello ""World");
97/07/25
seedrand(int a); int genrand();
void SetBuffers(char * screen,char * render,char * collision)
SetBuffers(MY_SCREEN,0,0);
void SetRGB(char * pal);
with char pal[32];
void Flip();
void SwapBuffers();
void SetPixel(int x,int y,char color);
char GetPixel(char x,char y);
void DrawLine(int x1,int y1,int x2,int y2,char color);
void DrawFBox(int x1,int y1,int w,int h,char color);
jsr pushax ldax #const jsr asltos -or- jsr asrtosbut now it looks like this
ldy #const jsr aslaxy -or- jsr asraxyor if const == 1
jsr aslax -or- jsr asraxBut I didn't inline the single-shift-code for the above reason.