English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 10 November 2004, 17:13   #1
Six
 
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
 
Old 11 November 2004, 11:26   #2
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
you mean like what those old dos commands 'colours' and 'stripes' do?
redblade is offline  
Old 11 November 2004, 17:50   #3
Six
 
Posts: n/a
Yeah, kind of. Any insight?
 
Old 12 November 2004, 11:32   #4
redblade
Zone Friend
 
redblade's Avatar
 
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.
redblade is offline  
Old 24 November 2004, 16:08   #5
Photon
Moderator
 
Photon's Avatar
 
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.
Photon is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:43.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07971 seconds with 13 queries