![]() |
|
|||||||
| Register | >> Amiga FAQ/Wiki << | Rules & Help | Members List / Moderators List | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered User
|
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 |
|
|
|
|
|
#2 |
|
Moderator
|
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?
|
|
|
|
|
|
#3 |
|
Registered User
|
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 !
__________________
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. |
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
Registered User
|
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. |
|
|
|
|
|
#6 |
|
move.l #$c0ff33,throat
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 |
|
|
|
|
|
#7 |
|
Registered User
|
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 |
|
|
|
|
|
#8 |
|
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... |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Nov 2009
Location: Herford / Germany
Posts: 265
|
Code:
CEd -keepio |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |