20 February 2021, 13:28 | #21 | ||
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
Quote:
CBump()'s manual page does not says anything about extending the structure, just incrementing the pointer. Quote:
BTW, how can i suppress the error messages for this approach? Code:
extern struct Custom custom; ... CMOVE(copperlist, custom.color[4], cc[i]); Code:
4096colors.c:91:3: warning: passing argument 2 of 'CMove' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] CMOVE(copperlist, custom.color[4], cc[i]); ^~~~~ In file included from 4096colors.c:4:0: /opt/amiga/m68k-amigaos/ndk13-include/clib/graphics_protos.h:114:6: note: expected 'APTR {aka void *}' but argument is of type 'volatile UWORD * {aka volatile short unsigned int *}' VOID CMove( struct UCopList *copList, APTR destination, LONG data ); ^~~~~ discarded-qualifiersflag or write the code like this Code:
CMove(copperlist, (void *)0x0188, cc[i]); CBump(copperlist); |
||
20 February 2021, 20:46 | #22 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
The program is now available here:
http://oscomp.hu/?details/4096_Colors_v1.0.0_Amiga_1575 |
22 February 2021, 20:07 | #23 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I have moved this thread into c/c++. I appreciate it is hardware related, but it's more c/c++ related
|
22 February 2021, 20:52 | #24 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
Well, the language itself was secondary, but okay. (It was more like AmigaOS related as the solution itself was to use the AmigaOS API.)
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copperlist explanation | Clydos | Coders. General | 37 | 06 July 2023 20:56 |
Advice on copperlist for borders | MrD | Coders. General | 3 | 03 March 2012 07:25 |
Modifying a copperlist | CmdrVimes | Coders. General | 5 | 06 September 2010 12:08 |
Setting up a copperlist | oRBIT | Coders. General | 5 | 08 April 2010 14:18 |
Error in copperlist? | Nyarlathotep | support.WinUAE | 7 | 12 August 2003 23:44 |
|
|