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

Re: NES Light Gun



Frank Carney <frankcNOSPAM@cyberhighway.net> wrote:

>Has anyone used a NES Light Gun?  I just finished an interface to the
>IIgs and I would like the light gun to be next.  Also, is there a
>register that allows me to look at where the electron beam is?  I need
>to know row and column if I am going to make it work.  Thanks in
>advance!

I think so, but I'm not the right person to ask.  ;-)

As with all such programming matters involving hardware,
David Empson is probably the best person to ask.  What
I know is that the IIGS has scan line interrupts that allow it
to know exactly where the electron gun aiming as far as
scan lines are concerned.  This allows it to swap a different
set of sixteen palettes of sixteen colors every sixteen
scan lines.  This results in a possible 200 unique palettes, one
16 color palette per each of the 200 scan lines.

This is 3200 color mode, the best mode for viewing .gif
graphics, etc., on the IIGS.

Would these scan line interrupts be of use for your project?