[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Supexec taking one VBL?



Miro Kropacek píše v Ne 07. 09. 2008 v 19:56 +0200:

> After numerous and numerous trial-error experiments I probably found the 
> cause -- look at attached source code. It calls Vsync() (i.e. waits 
> until we're in VBL), then change background to white (i.e. nothing since 
> in VBL we're out of visible screen area), calls subroutine and then 
> again change background to black.

the code just sets a temp to -1 or 0. I don't think that would change
the background screen color.

> Btw this makes clean coding a lot of harder

I don't see how it makes it a lot harder. What if you simply moved the
Vsync to the mark_super subroutine? Wouldn't that fix the issue?

> loop:		move.w	#$25,-(sp)
> 		trap	#14
> 		addq.l	#2,sp
> 		
> 		move.l	#-1,temp
> 		;bsr	mark
> 		bsr	xxx
> 		move.l	#0,temp
> 		
> 		bra	loop

Petr