English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 04 September 2010, 01:50   #1
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
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.
CmdrVimes is offline  
Old 04 September 2010, 08:21   #2
pmc
gone
 
pmc's Avatar
 
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...?
pmc is offline  
Old 06 September 2010, 11:30   #3
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
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?
CmdrVimes is offline  
Old 06 September 2010, 11:46   #4
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
Watcha mate

Quote:
Originally Posted by CmdrVimes
is it always necessary to use interrupts to detect the v-blank?
No. You can just wait for a vertical blank by manually waiting for the beam position to be in the vertical blank area by polling the vposr / vhposr regs.

Quote:
Originally Posted by CmdrVimes
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?
The Amiga's asm language is 68k asm so any text that covers 68k asm will be fine. My favourite is:

68000, 68010, 68020 Primer published by SAMS written by Kelly-Bootle & Fowler available very cheaply from http://www.abebooks.co.uk
pmc is offline  
Old 06 September 2010, 11:52   #5
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by CmdrVimes View Post
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?

A good reference is the official Motorola 68000 Programmer's Reference Manual.
StingRay is offline  
Old 06 September 2010, 12:08   #6
CmdrVimes
Badge 177
 
CmdrVimes's Avatar
 
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!
CmdrVimes 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
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

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 05:19.

Top

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