12 April 2021, 19:01 | #1 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
Quickest way to update the entire palette in Copperlist
What would be the nicest way to replace the complete palette in copperlist?
Actually I can achieve that by having two copperlist and change them with CopJumpL but I wonder if there are other ways, like having both palettes in copperlist and somehow change the pointers but I have no idea. may use some help from experts |
12 April 2021, 19:24 | #2 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,209
|
It depends what you mean.. do you want to change the palette completely at various positions down the screen?
Or do you just want to change one palette? |
12 April 2021, 20:56 | #3 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
If I am not misunderstood you, you would like to avoid duplicating the copperlist after the palette setup.
Simply put the jump inside the copper list itself. Code:
Copperlist: color_setup1 setup_copper_pointer_to_'copper_common' jmp color_setup2 copper_common: copper_end |
13 April 2021, 00:48 | #4 |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
|
13 April 2021, 00:52 | #5 | |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
Thanks! but sorry, I did not understand What do you mean with "jump" in copperlist?
And how would the switch be triggered? Quote:
|
|
13 April 2021, 06:17 | #6 |
Registered User
Join Date: Sep 2017
Location: Kansas, USA
Posts: 324
|
|
13 April 2021, 13:55 | #7 | |
OctaMED Music Composer
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
|
Thanks, OK! this is what I had in mind with my initial solution.
Only one thing, docs says: Quote:
|
|
13 April 2021, 15:54 | #8 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Of course depends on how you are handling ramaining part of the copper list, but there are two ways:
1) set the second copper pointer and jump there 2) reset the first copper pointer to the initial address of the list before the end of the frame |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quickest way to add two colours | Antiriad_UK | Coders. Asm / Hardware | 30 | 18 December 2020 12:29 |
Updating part of a CopperList's palette? (DisplayLibrary) | earok | Coders. Blitz Basic | 3 | 29 August 2018 02:49 |
Quickest way to test collisions | Shatterhand | Coders. Blitz Basic | 136 | 27 June 2018 23:51 |
Quickest code.... | Galahad/FLT | Coders. Asm / Hardware | 10 | 01 January 2017 17:23 |
What is the quickest way | Doc Mindie | support.WinUAE | 6 | 17 October 2007 21:15 |
|
|