Thread: Light gun games
View Single Post
Old 19 December 2005, 19:53   #15
CFou!
Moderator
 
CFou!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
Quote:
Originally Posted by damon_sisk
Just noticed some problems with my interpretation of the ASM code. According to
http://www.fortunaty.net/text/textfi...A/mapamiga.txt
the register at $BFD000 has bits for both the parallel port and the serial port. Bit 2 is pin 13 of the parallel port, but bit 4 and 7 are pins 5 and 20 of the serial port! Now I am really confused about how Loriciel is doing it.

Does anyone know how the amiga version of Loriciel's gun plugs into the amiga?
I'am no sure for the port

but I don"t understand the usage of all the (btst #2,$bfd000) perhaps just used for a synchro....

for trojan phaser only 2 registers are needed:
bits 1 of $dff00c or $dff00a to test if trigger is pressed on port 1 or 0

and $dff006 to take the position of the screen spot 'see' by phaser want you press trigger.

In resume:
Trojan phaser (for Aliex game)
btst #1,$dff00c or $dff00a : Trigger pressed?
$dff006 : to take V & H position of screen's pot seen by phaser when trigger is pressed ($dff004 .w for 'h8 bits' not used =>only 160 lines for Aliex )

Loriciel phaser
btst #4,$bfd000: Trigger pressed?
$dff006.w & $dff004.w : to take V & H position of screen's pot too (200 vertical lines so $dff004 is used for bits 'H8')

I'am just finishing a trojan drivers (I use whdload for test):
http://download.abime.net/zone/TrojanTest.lha

Can you test it with your trojan adaptator?

(you must just launch 'TrojanTest.slave' via whdload or click on icon)

First press 'C' to calibrate (8 shoot needed)

and try to shootte screen a yellow point must appear at the target

press 'E' to clear screen '*' to quit

now I try to add trojan phaser support in crasy shoot & westphaser

bye

Last edited by CFou!; 20 December 2005 at 09:01.
CFou! is offline  
 
Page generated in 0.08004 seconds with 11 queries