It is currently Wed Nov 22, 2017 11:19 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Sep 24, 2016 3:37 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 729
Location: New York, NY
There is no way to launch a grenade in Space Shadow using the Bandai Hyper Shot machine gun because Nestopia contains an incomplete implementation of the device. The port details can be found here. Bits 3 and 4 of port $4017 act like a Zapper and bit 1 of port $4016 acts like a third gamepad where the B button is the grenade launch button and the A button is unused. Although the Hyper Shot provides a full D-pad, Space Shadow--the only game designed for the Hyper Shot--is a rail shooter. The only direction required is Up, which advances the player to the next screen. Consequentially, Nestopia only supports the Up button, ignoring the rest including the B button. The snippet below, from NstInpBandaiHyperShot.cpp, contains a hack used to get most of the Hyper Shot working. First, the same data is provided to both ports instead of being split up as described above. And, second, instead of using a shift register for the gamepad bits, a single "move" bit is used for the Up button. This hack mostly works except that the player cannot launch grenades.

Code:
uint BandaiHyperShot::Peek(uint)
{
  uint data = (Poll() >= LIGHT_SENSOR ? 0x0 : 0x8);
  return data | fire | move;
}


Top
 Profile  
 
PostPosted: Sat Sep 24, 2016 4:27 pm 
Offline
User avatar

Joined: Sun Sep 19, 2004 9:28 pm
Posts: 3192
Location: Mountain View, CA, USA
Can you review the relevant NestopiaUE code and see if this still applies? If so, can you please file a GitHub Issues request that outlines this problem and/or include a patch or submit a pull req?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group