10 November 2004, 17:13 | #1 |
Posts: n/a
|
Copper source wanted.
Does anyone know how to copy the currently active copper list and modify it?
I'm wanting to install a gradient on my background as a learning exercise, but I'm stumped. Thanks Six |
11 November 2004, 11:26 | #2 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
you mean like what those old dos commands 'colours' and 'stripes' do?
|
11 November 2004, 17:50 | #3 |
Posts: n/a
|
Yeah, kind of. Any insight?
|
12 November 2004, 11:32 | #4 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
hmm if you read 'how to code' it has a copper example.
I don't know if it a), installs a new copper address and then copies the previous copper back at the end or b) backs up the current copper list, and then you restore it at the end. but man buggers if i know how you scroll down the copper list to change the gradient and shit. |
24 November 2004, 16:08 | #5 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,633
|
Why not disassemble 'stripes' and see how they do it? I doubt it would work on newer OS's than 2.0 though.
If we're talking standard Amigas (up to A4000) what you can do is open graphics.library, which returns a pointer to a structure. In this structure (get it from some include file) there is a copper pointer. If you know the structure of a copper ($01800fff.l, ... , $fffffffe.l) all you have to do is copy the longwords in that copper list to some allocated chip address, except the ending $fffffffe, and then append whatever copper commands you like, and end it with $fffffffe. Then set YOUR copper, preferably using library functions, or the hard way, by moving the address into $dff080. Hope that helps. I'm oldskool. You've been warned. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combining copper scrolling with copper background | phx | Coders. Asm / Hardware | 16 | 13 February 2021 12:41 |
Blitter using the copper... | h0ffman | Coders. Asm / Hardware | 9 | 23 February 2012 08:25 |
Stuck with copper example | cosmiq | Coders. General | 6 | 17 October 2008 22:29 |
Wanted: 68 - 030 / PQFP Source | Zetr0 | MarketPlace | 19 | 08 November 2007 15:15 |
Who hides behind the handle "Source / The Source"? | andreas | Retrogaming General Discussion | 15 | 04 January 2005 16:02 |
|
|