View Single Post
Old 13 August 2012, 11:06   #27
Asman
68k

Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 641
Just for clarification. About byte read from custom register ($dff005). If I understand correctly below code
Code:
wait_vb_2
.1	btst	#0,(_custom+vposr+1)
	bne	.1
.2	btst	#0,(_custom+vposr+1)
	beq	.2
	rts
can be changed to (more legal)
Code:
wait_vb_2
	moveq	#1,d0
	lea	(_custom+vposr),a0
.1	move.w	(a0),d1
	and.w	d0,d1
	bne	.1
.2	move.w	(a0),d1
	and.w	d0,d1
	beq	.2
	rts
Any comments are welcome especially If I am wrong.
Asman is offline  
 
Page generated in 0.06363 seconds with 11 queries