English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 28 January 2018, 18:44   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Copper ASM

Need your help guys,

2 questions about Copper coding.

- Is it mandatory to use the first wait to pass the 255th raster line ?

Code:
dc.w $FFDF,$FFFE
dc.w $10XX,$FFFE
- How it comes the raster bug appears to the right side of the screen with any wait before horizontal pos beam < $07 ?

Code:
for instance  : dc.w $xx03
Thanks for enlightening my path to amiga coding.
LeCaravage is offline  
Old 28 January 2018, 19:27   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Quote:
Originally Posted by LeCaravage View Post
- Is it mandatory to use the first wait to pass the 255th raster line ?
Yes, unless you are already near the end of line 255. Without this extra wait, line $10 wait would end immediately because $10 is smaller than 255.

Quote:
- How it comes the raster bug appears to the right side of the screen with any wait before horizontal pos beam < $07 ?
It is internal horizontal counter zero position. For some reason it is before horizontal blanking.

DIWSTOP is also affected by it. Increasing horizontal end will work normally until suddenly ($c8=$1c8) it jumps to full overscan. It happens in exact same zero position
Toni Wilen is offline  
Old 28 January 2018, 20:17   #3
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Quote:
Originally Posted by Toni Wilen View Post
Yes, unless you are already near the end of line 255. Without this extra wait, line $10 wait would end immediately because $10 is smaller than 255.
It means more add bne and bcc in the copper construction loop every frame

Anyway, thanks for taking time to answer my questions.
LeCaravage is offline  
Old 28 January 2018, 20:21   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
If you want to "hide" this extra wait, replace it with MOVE to COPJMP2 and do the extra wait in another copper list, then jump back to original copper list.
Toni Wilen is offline  
Old 28 January 2018, 21:08   #5
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
So if I understand well. I construct my copperlist. Do my calculations for the $ffdf extra wait, and at end overwrite one or two moves with a copljmp2. In this "second copperlist" do the missing color moves and go back to main copperlist ?
LeCaravage is offline  
Old 30 January 2018, 12:35   #6
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Toni, you're the man. You're trick works like a charm. Makes my construct copper routine easier and faster.
LeCaravage 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
Tool to convert asm to gnu asm (gas) Asman Coders. Asm / Hardware 13 30 December 2020 11:57
Using the Copper guy lateur Coders. C/C++ 22 26 July 2017 19:29
Best way to mix blitting with copper and copper effects roondar Coders. Asm / Hardware 3 12 September 2016 13:12
copper ? turrican3 Coders. Asm / Hardware 10 27 January 2016 09:10

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 06:34.

Top

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