English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 10 November 2019, 14:47   #1
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Small asm program in background to reset via joypad?

Hi coders of the Amiga,

I was wondering if it would be possible to make a small program that would run in the background, check for a joypad button combination every few secs, and reset the machine if it is pressed?

It would have to very efficient so that it wouldn't slow down games noticeably.
It would be started from WB.
Target machine is the cd32, to make for a comfy couch-compatible reset button as opposed to the physical one on the machine.
Button combo should be like play+left+both shoulders to possibly avoid any ingame combo.

Unfortunately I don't have the skills to do this (although @mcgeezer is working on it ).

So, could any gentleman do this? Is it technically possible at all?
wairnair is offline  
Old 10 November 2019, 18:11   #2
kamelito
Zone Friend
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,060
I don’t think it is possible, if the game is system friendly a program could be use used I guess but you’ll have to load it first and I don’t think many games are system friendly. Maybe with an added hardware...
kamelito is offline  
Old 11 November 2019, 20:35   #3
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Quote:
Originally Posted by kamelito View Post
I don’t think it is possible, if the game is system friendly a program could be use used I guess but you’ll have to load it first and I don’t think many games are system friendly. Maybe with an added hardware...
Ah okay. It's not the end of the world to get up and press a button after all. Thanks for your input.
wairnair is offline  
Old 11 November 2019, 21:23   #4
gurth
Registered User

gurth's Avatar
 
Join Date: Dec 2013
Location: Halifax
Posts: 97
you would still need to get up to change the CD
gurth is offline  
Old 11 November 2019, 21:25   #5
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Quote:
Originally Posted by gurth View Post
you would still need to get up to change the CD
I use a CF card, boot into Workbench with joymouse so that I can control the mouse. Then launch any whdload game just like you would on a desktop Amiga. E. g. using iGame. I also have some hd installs that don't need whdload.
No cd's most of the time
wairnair is offline  
Old 11 November 2019, 21:58   #6
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
CD32load does that. So if you're using a CD32load compilation you're able to reset just by pressing (AFAIR) rev+fwd+all color buttons. You don't have to change the CD either: it's a compilation.

Whdload also has a joypad quit option. Now most updated slaves also can be quit to WB using a joypad combination.

What you're talking about would be possible, though. With games not zeroing the VBR, the program could install & just scan the joypad, then redirect VBR to 0 like whdload/jst do. But that's a lot of work for a minor feature.
jotd is offline  
Old 12 November 2019, 00:49   #7
Nightshft
Registered User

Nightshft's Avatar
 
Join Date: Mar 2018
Location: Austria
Age: 44
Posts: 315
Here is a reset routine i found in the autodocs if someone wants to tinker around with it.

Edit: Assembled it. Works fine -> so now I have a reset.exe in C:

Edit2: No idea how to check the gamepad (not speaking of staying low cpu and system friendly) in asm or blitz (gameb() command?), so sorry for the moment.

Last edited by Nightshft; 12 November 2019 at 04:18.
Nightshft is offline  
Old 14 November 2019, 12:46   #8
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Quote:
Originally Posted by jotd View Post
Whdload also has a joypad quit option. Now most updated slaves also can be quit to WB using a joypad combination.

Looks like from v18.4 WHDLoad supports quitting by pressing play+forward+reverse. I'll certainly give that a try. That would solve ~3/4 of my quitting needs
wairnair is offline  
Old 14 November 2019, 13:13   #9
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
enable that only if slave itself doesn't have joypad support. If it has joypad support, either it has quit support or it hasn't, in which case don't hesitate to request it since it's a trivial change (if the source of the slave is accessible )
jotd is offline  
Old 14 November 2019, 20:17   #10
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Quote:
Originally Posted by jotd View Post
enable that only if slave itself doesn't have joypad support. If it has joypad support, either it has quit support or it hasn't, in which case don't hesitate to request it since it's a trivial change (if the source of the slave is accessible )
Alright, where should I post quit key requests?

Also -and I know this is offtopic- there's a couple of CD32-specific titles that would play 100% with WHDLoad but don't exist atm. E.g. Frontier, James Pond 3, Pinball Prelude I can quickly think of - these have no proper pad support with WHDLoad but their original versions did AFAIK.
So, can we post requests for these somewhere as well? They're done when they're done, no rush obviously, just asking
wairnair is offline  
Old 13 December 2019, 23:03   #11
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,657
only answer: mantis.whdload.de

Working on restoring James Pond 3 joypad controls BTW
jotd is offline  
Old 14 December 2019, 10:42   #12
wairnair
Registered User

 
Join Date: Jul 2017
Location: Budapest
Posts: 303
Quote:
Originally Posted by jotd View Post
only answer: mantis.whdload.de
OK thanks

Quote:
Originally Posted by jotd View Post
Working on restoring James Pond 3 joypad controls BTW
wow thank you
wairnair is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD32 reset-by-joypad device? Akira Hardware mods 13 20 April 2017 19:34
Cheeky request, small Windows c program jimmy2x2x Coders. General 4 17 December 2014 18:54
CD32 reset from joypad? Akira Hardware mods 9 02 July 2013 08:44
Possible to run a program from CLI in background? VoltureX support.Apps 17 14 January 2012 03:16
Small ASM hack for Turrican II? jimmy2x2x request.Other 2 30 March 2011 02:46

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.08327 seconds with 15 queries