04 September 2010, 01:50 | #1 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
Modifying a copperlist
Hi Guys,
Can anyone help me find the instructions that I need to be able to modify a copper list during the vertical blank? I would like to be able to move a copper bar up and down the screen. I found some source code for this but it involved three copper bars and a lot of labelled sections in the source and I was unable to follow it. |
04 September 2010, 08:21 | #2 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Hey CmdrVimes
You can modify a copper list during vertical blank by moving new values to the list. If you think about the format of a copper background colour change in the copper list it is: wait for a scanline, move a value to the background colour register. So, if at vertical blank you move a new scanline value to the copper wait instruction or a new colour value to the copper move instruction, the bar will have changed in time for displaying during the next frame. In other words, the bar will have moved. Does that give you enough to go on...? |
06 September 2010, 11:30 | #3 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
Hi,
Thanks. I decided to have another look at the source code I mentioned and it makes more sense 2nd and 3rd times around. I have just one question - is it always necessary to use interrupts to detect the v-blank? Ok, two questions - I feel that I could use a really good 68k ASM reference that covers the Amiga's ASM language. I have the Amiga hardware ref already but every now and then I trip over an ASM command that I'm not familiar with. Do you have any suggestions? |
06 September 2010, 11:46 | #4 | ||
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Watcha mate
Quote:
Quote:
68000, 68010, 68020 Primer published by SAMS written by Kelly-Bootle & Fowler available very cheaply from http://www.abebooks.co.uk |
||
06 September 2010, 11:52 | #5 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
Quote:
A good reference is the official Motorola 68000 Programmer's Reference Manual. |
|
06 September 2010, 12:08 | #6 |
Badge 177
Join Date: Aug 2010
Location: Mirfield / UK
Posts: 77
|
@pmc & @StingRay
Thanks guys. I must say, you blokes are REALLY fast. I get slower responses verbally on some occasions than I get from this forum! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copperlist optimizations for my tutorial #4 | Vikke | Coders. Asm / Hardware | 3 | 23 March 2013 22:29 |
Advice on copperlist for borders | MrD | Coders. General | 3 | 03 March 2012 07:25 |
Copperlist to fit Atari ST screen possible? | kamelito | Retrogaming General Discussion | 6 | 24 November 2011 10:51 |
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 |
|
|