Re: [cc65] c programm

Date view Thread view Subject view

From: stefan (carlosofcascade_at_gmx.net)
Date: 2003-02-13 16:44:36


thank you for answer,
what i decided to do to get around that problem was using popa instead 
of decsp and incsp.
i used a similar macro too.
the problem with the error massages i got from the linker was caused by 
two subprocedures called
decsp and incsp, too. i didn't know that, cause i wasn't my code i were 
working on.
carlos

Greg King wrote:

>A macro will do what you want to do:
>
>#define MAKE_WORD(high,low) (((high) << 8) | (low))
>
>extern void fastcall setcharcolors(unsigned int c);
>
>int main(void) {
>
>  setcharcolors(MAKE_WORD(1,0));
>  return 0;
>  }
>
>----------------------------------------------------------------------
>To unsubscribe from the list send mail to majordomo_at_musoftware.de with
>the string "unsubscribe cc65" in the body(!) of the mail.
>
>
>  
>



----------------------------------------------------------------------
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-02-13 16:44:43 CET