
So must I take for granted that, if I declare something 'const', it will be created in ROM by the compiler. Or is there anything else ?
Moderator: Stef
Code: Select all
static inline void writePixel(unsigned x,unsigned y,unsigned w,unsigned val){
vram[x+y*w]=val;
}
When I started, all there was was K&R. Standards didn't come along until later.tryphon wrote:Thanks for the tips.
Last time I coded in C, it didn't have attributes
Always glad to help.tryphon wrote:Thanks for the tips.
That is because this is a gcc extension see https://gcc.gnu.org/onlinedocs/gcc/Func ... butes.html.tryphon wrote: Last time I coded in C, it didn't have attributes
I was so fluent in 6502 (had an Atari 8-bitter back then), I could read the code from the hex dump, and change it via a hex-editor. I was nearly as good with 68000 assembly code - I can read the hex dump pretty good, but it's a bit of a stretch to convert from assembly back to hex in my head... other than some of the more common codes, like jumps and branches and the like.tryphon wrote:I actually did this with 6809 asm (not C), at the time I owned a MO6 (only French can know what it is).
Branchment instructions to compute in hex was such a fun
I was 13 then...
Time flies...