View Single Post
Old 27 October 2019, 15:00   #6
Steril707
Tigerskunk!

Steril707's Avatar
 
Join Date: Sep 2016
Location: Amiga Island
Posts: 1,262
Some thoughts here, please correct me if I am wrong..

Could I strobe COPJMP2 when the part of the copperlist gets executed where I want to jmp over the next few instructions to the place thats written in COP2LCH/L?

example in pseudo code:

("jumpAdress" is written to COP2LCH/L at the initialization of the code,

move.l #jumpAdress,a6
move.l a6,Cop2lch
)

Code:
        ;some copper list stuff
	dc.w $0180,$0000
	dc.w $0182,$0000
	dc.w $0184,$0000
	dc.w $0186,$0000
	dc.w $0188,$0000
	dc.w $018a,$0000
	dc.w $018c,$0000
	dc.w $018e,$0000

        dc.w $008a,$0000   ;here I strobe COPJMP2, so we jump to "jumpAdress" in our copper list and don't execute the next commands

	dc.w $0190,$0000
	dc.w $0192,$0000
	dc.w $0194,$0000
	dc.w $0196,$0000
	dc.w $0198,$0000
	dc.w $019a,$0000
	dc.w $019c,$0000
	dc.w $019e,$0000

jumpAdress:        ;here we jump to
	dc.w $3d0f,$fffe
	dc.w $0100,$4200

On my condition check I would then simply overwrite that COPJMP2 statement with something harmless if I want to execute the stuff after the COPJMP2 instruction..

Would this work the way intended?

Last edited by Steril707; 27 October 2019 at 15:50.
Steril707 is offline  
 
Page generated in 0.04121 seconds with 11 queries