English Amiga Board


Go Back   English Amiga Board > Requests > request.Apps

 
 
Thread Tools
Old 12 October 2011, 18:54   #21
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 21,552
Very short CD32 pad function description: http://eab.abime.net/showpost.php?p=462381&postcount=8

It is really designed to work that way, it is very simple but nice design.

Detecting between moving mouse and standard joystick can be done by checking if mouse counters have "illegal" bit combinations (joystick can't normally have up and down or left and right active at the same time)
Toni Wilen is offline  
AdSense AdSense  
Old 12 October 2011, 20:30   #22
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Quote:
Originally Posted by olesio
@pmc: big thanks, now everything works fine
No probs man - you're more than welcome
pmc is offline  
Old 04 November 2011, 12:04   #23
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Got bored this morning - for something to do I shaved 28 bytes off of joyread - sad but true

EDIT: removed - new and improved version below

Last edited by pmc; 04 November 2011 at 13:44.
pmc is offline  
Old 04 November 2011, 12:51   #24
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,959
Looks like you weren't bored enough:

move.l d0,DOSbase
move.l #buffer,d2
move.l DOSbase,a1 (x2)



Also, when calling library functions, the library base MUST be in a6 everything else is not guaranteed to work.

Sorry, was bored enough to have a look. :P
StingRay is offline  
Old 04 November 2011, 12:54   #25
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Hah hah

Never mind shaving bytes off that lame little app, it was all in fact a cunning rouse to bring you out of hiding

And it worked! \o/

Keep missing you on IRC man - glad to see you floating around alive and well

Will post up a Sting-fixed version soon

EDIT: New version attached, another 32 bytes shorter this time and hopefully handling library bases strictly correctly too. Just goes to prove that if you don't do a job properly, you get stung by the Sting

EDIT: Removed - smaller version below.

Last edited by pmc; 04 November 2011 at 22:05. Reason: new version attached
pmc is offline  
Old 04 November 2011, 16:29   #26
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,959
Quote:
Originally Posted by pmc View Post
Hah hah

Never mind shaving bytes off that lame little app, it was all in fact a cunning rouse to bring you out of hiding

And it worked! \o/
Haha, what an evil plan.

Quote:
Originally Posted by pmc View Post
Keep missing you on IRC man - glad to see you floating around alive and well
I'm extremely busy these days, lots of work. Not much time for IRC I'm afraid. I should be back soon hopefully though.


Quote:
Originally Posted by pmc View Post
EDIT: New version attached, another 32 bytes shorter this time and hopefully handling library bases strictly correctly too.
Almost.

move.l d0,a6
beq.b noDOS

and

move.l #buffer,d2

You're not done yet.


Quote:
Originally Posted by pmc View Post
Just goes to prove that if you don't do a job properly, you get stung by the Sting
Haha. Looks like I did it again. :P
StingRay is offline  
Old 04 November 2011, 18:18   #27
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Quote:
Originally Posted by StingRay
I'm extremely busy these days, lots of work. Not much time for IRC I'm afraid.


Quote:
Originally Posted by StingRay
I should be back soon hopefully though.
\o/

Quote:
Originally Posted by StingRay
Almost.
Quote:
Originally Posted by StingRay
You're not done yet.
You know, when I posted the second shorter version I had this funny feeling I would soon see some posts from you saying things like that.

I don't have time right now but I *will* return and it *will* be shorter!

EDIT: OK Stinger, the way to go about removing this:

Code:
                    move.l              #buffer,d2
was obvious to me within about 30 seconds once you'd pointed it out but, I have to say, removing or shortening this:

Code:
                    movea.l             d0,a6
                    beq.b               .lib_error
has me a little stumped. I need the dos.library base address returned in d0 to be in a6, so the move has to be there. Are you basically just saying don't bother checking for a library open error and remove the beq.b...?

Anyway, until that question is answered, shorter version attached.

EDIT: Still not quite sure about that beq.b question but in the meantime I managed to shave off another 16 bytes myself anyway . I've run out of ideas now though so until Stinger turns up and tells me otherwise, shortest version attached.

Last edited by pmc; 04 August 2012 at 11:56.
pmc is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
edit joy 2nd button ? turrican3 support.WinUAE 4 15 November 2012 10:30
Possible to run a program from CLI in background? VoltureX support.Apps 17 14 January 2012 03:16
CLI program to make mouse pointer dissapear on KS 3.X Gaula92 request.Apps 5 21 October 2011 14:49
cd32 problem phantom joy button action heerschop support.Hardware 5 19 September 2010 06:09
'Wait' program that checks for a joy button press instead of 'Return' key... Heavy Stylus request.Apps 7 10 May 2009 19:01

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 06:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06635 seconds with 14 queries