there was some talk about it before and I was thinking maybe it's time to fix my startup code a little bit.
So I think I should somehow set the priority to maximum / very high right? It probably doesn't make sense to switch off multitasking on 060.
How would I do that?
I don't use any includes and my init is basically this right now: (LOL)
lea vbirutku, a0
bsr SetVBI
move.l 4.w,a6
lea gfxlib,a1 ; "graphics.library"
jsr -408(a6) ;openlibrary
move.l d0,gfxbase
move.l d0,a6
move.l 34(a6), oldview
sub.l a1,a1
jsr -222(a6) ;loadview
jsr -270(a6) ;waittof
jsr -270(a6)
move.l #cop,$dff080 ; copperlist \o/
and another thing... I'm apparently not able to understand how to correctly init kalms' c2p routines.
for example:
when I have
extern __asm void c2p1x1_8_c5_040_init(register __d0 unsigned short chunkyx,
register __d1 unsigned short chunkyy,register __d3 unsigned short scroffsy,
register __d5 unsigned int bplsize);
extern __asm void c2p1x1_8_c5_040(register __a0 unsigned char *c2pscreen,
register __a1 unsigned char *bitplanes);
I call the init like this:
c2p1x1_8_c5_040_init(320,200,200,8000);
and then to make it work I call the c2p like this:
c2p1x1_8_c5_040(chunkyscreen,dest-8000);
so I subtract the size of one bitplane from the actual bitplane address... And I did the same exact thing with a 4bpl one too.
or when I have
extern __asm void c2p_2rgb555_3rgb555h8_040_init(register __d0 unsigned short chunkyx
,register __d1 unsigned short chunkyy
,register __d2 unsigned short scroffsx
,register __d3 unsigned short scroffsy
,register __d4 unsigned int rowlen
,register __d5 unsigned int bplsize
,register __d6 unsigned int chunkylen);
extern __asm void c2p_2rgb555_3rgb555h8_040(register __a0 unsigned short *c2pscreen,
register __a1 unsigned char *bitplanes);
the init:
c2p_2rgb555_3rgb555h8_040_init(220,200,640,200,80 ,16000,440);
the c2p:
c2p_2rgb555_3rgb555h8_040(chunkyscreen,dest+32000 -80);
again, instead of just giving the actual bitplane address (dest). it does seem to work fine like that but...
what am i doing wrong? (It's probably something really silly :)
thank you :)