Jump to content

swapd0's Photo

swapd0

Member Since 20 Feb 2006
OFFLINE Last Active Today, 4:47 AM

Posts I've Made

In Topic: Blitter and 68000

Yesterday, 8:36 AM

Now it works.

 

I though that the unused registers in an operation won't affect the result...


In Topic: Blitter and 68000

Yesterday, 7:49 AM

This is my code to clear the screen (8 bits bitmap) for the ST-NICCC.

 

Yesterday it didn't work, even today when I tried some hours ago, but after coding a bit in Classic Kong I've tried again and it works... WTF!?!? It looks that it doesn't work from a cold start, but I don't see if I'm missing something. If I turn the Jaguar off and turn it on again it doesn't work...

void clear_screen_blitter8(void)
{
#if LOG
	skunk_print("Clear screeen blitter 8 bits\n");
#endif

	wait_blitter();
	*A2_BASE = (uint32_t)current_frame;
	*A2_PIXEL = 0;//(1 << 16) | 0;
	*A2_STEP = (1 << 16) | (0xffff & -256);
	*A2_FLAGS = PIXEL32|XADDPHR|PITCH1|WID64;
	*B_PATD = 0;
	*(B_PATD + 1) = 0;
	*B_COUNT = ((_SCREEN_HEIGHT) << 16) | 64;
	*B_CMD = DSTA2 | PATDSEL;
}


In Topic: U-235 SoundEngine released!

Thu Apr 18, 2019 9:59 AM

F*ck, I got sound in the test program (asm code) but not in Classic Kong (C code)...


In Topic: Has anyone ever made a Jaguar gamepad adaptor for the Sega Genesis?

Thu Apr 18, 2019 9:19 AM

I think because genesis pad each button and direction it's mapped to a pin. The jaguar works in a different way.


In Topic: U-235 SoundEngine released!

Thu Apr 18, 2019 5:06 AM

With an example with two samples on the same bank it's enough to know how it works.