English Amiga Board    


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

Reply
 
Thread Tools
Old 10 August 2012, 17:28   #1
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 38
Posts: 775
Send a message via ICQ to Foul Send a message via MSN to Foul Send a message via Skype™ to Foul
Sending Break Signal

Hi !

Again one question

I'm launching a prog in my Startup-sequence, when it finish his execution, the startup-sequence continue just after...

I Just want to end my prog and nothing continue...

Maybe by sending a ctrl-c directly ?

No Idea how to do so...

just an exemple : my prog execute CygnusEd... but when Cygnus-ed is started, Startup-sequence continue and workbench is started ! i don't want that !
__________________
Best Amiga Linux Emulator ! --> http://fs-uae.net/
A500 KS 1.3 + A501
A1200 2.0B Fixed KS/WB 3.9 + CF Kingston 16Go/PFS3DS + PSX to DB9 + Kipper2k CF card external Adapter + 2x Cumana CAX354 External Floppy Disc Drive
Foul is offline   Reply With Quote
Old 10 August 2012, 20:52   #2
Codetapper
Moderator
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Age: 38
Posts: 2,465
Send a message via Skype™ to Codetapper
I don't really understand. Why can't you just NOT end your program then it won't get a chance to launch the next thing?
Codetapper is offline   Reply With Quote
Old 10 August 2012, 21:46   #3
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 38
Posts: 775
Send a message via ICQ to Foul Send a message via MSN to Foul Send a message via Skype™ to Foul
uhmmm... because when my prog exit .. startup-sequence continue.. don't know how to cut this...

edit : attached sources, nothing secret ... it's my first asm prog ..be nice with me

Goal of the prog : when left mouse button is detected at boot, it launch a menu (a simple pic), then you can selec F1,F2,F3 to start the selected prog or second button to exit. But ! when selected prog is launched, startup will continue in background !
Attached Files
File Type: zip SelectLauncher.asm.zip (5.8 KB, 32 views)
__________________
Best Amiga Linux Emulator ! --> http://fs-uae.net/
A500 KS 1.3 + A501
A1200 2.0B Fixed KS/WB 3.9 + CF Kingston 16Go/PFS3DS + PSX to DB9 + Kipper2k CF card external Adapter + 2x Cumana CAX354 External Floppy Disc Drive

Last edited by Foul; 10 August 2012 at 21:55.
Foul is offline   Reply With Quote
Old 11 August 2012, 10:37   #4
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 5
AmigaDOS uses register D0 as the return code of a program. You can check for this in a shell script.

SelectLauncher
IF WARN
QUIT
ENDIF

0 = Ok, 5 = Warn, 10 = Error, 20 = Fail
nogginthenog is offline   Reply With Quote
Old 11 August 2012, 11:36   #5
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 38
Posts: 775
Send a message via ICQ to Foul Send a message via MSN to Foul Send a message via Skype™ to Foul
not working

must be my bad coded prog
__________________
Best Amiga Linux Emulator ! --> http://fs-uae.net/
A500 KS 1.3 + A501
A1200 2.0B Fixed KS/WB 3.9 + CF Kingston 16Go/PFS3DS + PSX to DB9 + Kipper2k CF card external Adapter + 2x Cumana CAX354 External Floppy Disc Drive

Last edited by Foul; 11 August 2012 at 11:44.
Foul is offline   Reply With Quote
Old 11 August 2012, 12:31   #6
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 4,547
Your program returns with "random" value in d0. You need to set d0 to a defined value upon exit. So, f.e. if no program was selected in your launcher (i.e. normal startup-sequence should continue), you could set d0 to zero (moveq #0,d0) and in case the user selected a program d0 should be non-zero (moveq #5,d0 f.e.). That way Nogginthenog's check in the startup-sequence will work.
__________________
Makes me sick when I hear all the shit that you say
So much crap coming out, it must take you all day
There's a space kept in hell with your name on the seat
With a spike in the chair just to make it complete
StingRay is offline   Reply With Quote
Old 11 August 2012, 12:50   #7
Foul
Registered User
 
Foul's Avatar
 
Join Date: Jun 2009
Location: Perigueux/France
Age: 38
Posts: 775
Send a message via ICQ to Foul Send a message via MSN to Foul Send a message via Skype™ to Foul
Excellent and simple !

Thx
__________________
Best Amiga Linux Emulator ! --> http://fs-uae.net/
A500 KS 1.3 + A501
A1200 2.0B Fixed KS/WB 3.9 + CF Kingston 16Go/PFS3DS + PSX to DB9 + Kipper2k CF card external Adapter + 2x Cumana CAX354 External Floppy Disc Drive
Foul is offline   Reply With Quote
Old 12 August 2012, 14:28   #8
hooverphonique
Registered User
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 216
all of the above is correct, but in the case of CygnusEd, the problem is actually that it creates its own dos process, so the original one ends and the startup script of course then continues to the next statement..

just try starting starting CygnusEd from a cli and you will see what I mean...
hooverphonique is offline   Reply With Quote
Old 13 August 2012, 10:34   #9
phx
Registered User
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 265
Code:
CEd -keepio
will prevent the editor from detaching from the current CLI.
phx is offline   Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A600 no video signal Bugsy6 support.Hardware 3 13 July 2012 20:43
Warranty seal on a mint A500: To break or not to break? StevenJGore support.Hardware 16 11 February 2009 23:21
Cost of sending to the USA? ElectroBlaster MarketPlace 5 26 July 2006 01:00
Having trouble sending files PC to Amiga polish New to Emulation or Amiga scene 0 11 March 2006 12:02
Need a few configs sending? HonoredShadow support.WinUAE 1 29 October 2005 10:40


All times are GMT +2. The time now is 19:25.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.19489 seconds with 12 queries