View Single Post
Old 13 January 2020, 13:26   #1
KONEY
OctaMED Music Composer

KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 45
Posts: 422
Help with badly breaking line of code

I'm stuck with a small piece of code which breaks badly on 16 bit machines. With "badly" I mean that it will compile but once executed everything would stuck and needs a reboot.

The code works OK on my A600 with Vampire and on an emulated A3000 but breaks on a real A500 or an emulated one therefore I think it's a problem with 16 bit machines.

the line of code is MOVE.L (A2)+,(A3) so nothing strange, I've been asking to some demoscene guy who told me there should be no problem executing this on any Amiga.

Here the complete routine:

Code:
PRINT:
	LEA	BITPLANE,A3	; Indirizzo del bitplane destinazione in a3
	MOVE.L	#KONEY,A2
	CLR	D6
	MOVE.B	#4,D6		; RESET D6
	ADD.W	#40*115,A3	; POSITIONING

LOOP:				; LOOP KE CICLA LA BITMAP
	ADD.W	#15,A3
	MOVE.L	(A2)+,(A3)	
	ADD.W	#25,A3
	DBRA	D6,LOOP
	RTS
And here the complete source:
https://github.com/KONEY/asm68k-test...OGOBPM_ANIM2.s

Any hint would be appreciated!!
KONEY is offline  
 
Page generated in 0.04211 seconds with 11 queries