![]() |
![]() |
#1 |
Registered User
![]() Join Date: Nov 2010
Location: .
Posts: 382
|
Devpac CWAIT macro
Hello,
I just noticed a weird behaviour of the CWAIT macro provided from Devpac to handle copper WAITs (along with CMOVE,CSKIP,...). Example: Code:
main: dc.w $9031,$fffe CWAIT $31,$90 Code:
DC.W ((\2)&$FF)<<8|((\1)&$7F)<<1|1,$FFFE Code:
9031 FFFE 9063 FFFE <- ? Thanks! |
![]() |
![]() |
#2 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
I personally don't use Macro's in my code - just subroutines
![]() I was unaware of that Macro and prefer to write out the copperlist in the normal way (e.g. the first line in your example). Regards, Lonewolf10 |
![]() |
![]() |
#3 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 527
|
Input value range is [0..127] (&$7f) and it must be word aligned [0..254] so it's multiplied by 2 (<<1) and it's converted to an odd number ([1..255]) by |1.
Check RKM for infos about Copper inner working. |
![]() |
![]() |
#4 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
|
![]() |
![]() |
#5 |
Registered User
![]() Join Date: Nov 2010
Location: .
Posts: 382
|
ok, thanks for the explaination. I'll load the reference in my laptop and have a sweet bednight reading. If I won't understand, I'll be back here (you won't get rid of me with a simple rtfm :-) )!
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
WAITBLIT macro | phx | Coders. Asm / Hardware | 20 | 18 February 2014 14:22 |
Macro shot of powerflyer mk3 needed | DoogUK | support.Hardware | 3 | 10 May 2009 22:41 |
Cybervision 64/3d repair (macro pr0n for Z and others) | chiark | Hardware pics | 14 | 09 May 2009 19:11 |
Amiga Macro Assembler | Canyon Matt | request.Apps | 0 | 06 January 2009 18:40 |
Looking for Macro Paint | mr_a500 | request.Apps | 2 | 28 January 2006 18:20 |
|
|