RE: [cc65] statics in zero page

Date view Thread view Subject view

From: Keates, Mark (Mark.Keates_at_dendrite.com)
Date: 2002-05-22 10:48:43


Hi Matt,
 
> Would there be any way to create a zero page pointer?

This worked for me:

#include <stdio.h>

const char msg[] = "Hello.";

#pragma bssseg ("ZEROPAGE")
static char *pMsg;
#pragma bssseg ("DATA")
static char *pCheck;

main(int c,char**v) {
pMsg = (char *)msg;
pCheck = pMsg;
printf("%s %s (%c)\n",msg,pMsg,*pCheck);
getchar();
} 
----------------------------------------------------------------------
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 : 2002-05-22 10:48:49 CEST