Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The cc65 C compiler and toolchain, including ca65 (Assembler), cl65, ar65, etc.
2
votes
3
answers
1k
views
Efficiently defining a C function by given address in cc65
__fastcall__ initSIDplayer1(uint8_t a);
static void __fastcall__ (*initSIDplayer2)(uint8_t)=(const void *)0xFFD2;
void main() {
initSIDplayer1('a');
initSIDplayer2('a');
}
I compiled it with cc65 …
3
votes
1
answer
192
views
How to pass a value to an inline assembler script in a #define macro in cc65
I'm trying to add a compact #define macro in a cc65 program for performing various low-level tasks efficiently. For some of the macros, I need to pass a non-constant value to the assembler part. … I studied the cc65 guide about inline assembler but could not get it to work. …
3
votes
2
answers
351
views
Printing German umlauts with cc65
Is there a way to change the mapping of umlauts to ASCII in the cc65 compiler? …
9
votes
1
answer
827
views
Different handling of ASCII interpretation between ca65 and cl65
I stumbled upon a divergence in the ASCII upper case/lower case handling when using assembler and linker of the cc65 suite separately (I used cc65 V2.15 on Win10). … Both cl65 and ca65 are from the cc65 toolchain.
Second, is there a way to annotate the source code or to instruct ca65 not to change the case of the ASCII text? …
11
votes
1
answer
1k
views
cprintf printing invisible characters in C program on VIC 20
I want to compile and run a Hello World program in C with the cc65 compiler for an unexpanded VIC-20 model. … According to the cc65 documentation, conio.h should work for the VIC20 platform.
What is the reason that cprintf plays up in the version without the clrscr()? …
7
votes
1
answer
801
views
Adding control characters to string constants in ca65 assembler
According to the cc65 documentation, a string constant in assembler programs can be defined with the .ASCIIZ command. …
2
votes
1
answer
493
views
Is there a way to have the ca65 assembler only expand macros?
I would like to convert an assembly program in ca65 with macros into assembly code with resolved macros in order to carry out manual or automatic optimizations with the resulting code. Then, the progr …
11
votes
2
answers
2k
views
Putting code into two different memory areas with cc65/ca65
According to cc65 / ca65 documentation, the .org directive does not affect the placement of the code unlike with other 6502 assemblers. … I'm grateful for any suggestions on how to effectively putting code into two different memory areas with cc65. …
7
votes
2
answers
1k
views
Labels in cc65 inline assembler with #define macro
In general, it is possible to use inline assembler statements within C macros, for example
#define toscreencode(C) (__AX__ = (C), \
asm("cmp #$60"),\
…