Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: TjLaZer on June 09, 2007, 02:36:08 AM

Title: Workbench 1.x reset command?
Post by: TjLaZer on June 09, 2007, 02:36:08 AM
OK I never thought it would be this hard tracking down this file!  Anyone have a Workbench 1.3 complatible reset/reboot command?  All the ones I have tried from my collection and AMINET do not work!
Title: Re: Workbench 1.x reset command?
Post by: Piru on June 09, 2007, 09:48:10 AM
Code: [Select]

Main    move.l  (4).w,a6
        lea     .super(pc),a5
        jmp     -$1e(a6)               ; Supervisor

.super  or.w    #$700,sr
        lea     $01000000+4,a0
        sub.l   -$18-4(a0),a0
        move.l  (a0),a0
        subq.l  #2,a0
        bra.b   .reset
        nop

        CNOP    0,4
.reset  reset
        jmp     (a0)

Title: Re: Workbench 1.x reset command?
Post by: Gilloo on June 25, 2007, 11:11:02 AM
Quote

Piru wrote:
Main    move.l  (4).w,a6
        lea     .super(pc),a5
        jmp     -$1e(a6)               ; Supervisor

.super  or.w    #$700,sr
        lea     $01000000+4,a0
        sub.l   -$18-4(a0),a0
        move.l  (a0),a0
        subq.l  #2,a0
        bra.b   .reset
        nop

        CNOP    0,4
.reset  reset
        jmp     (a0)

Wow Piru, I'm impressed :) you are THE librarian of the Amiga!!

Do you think that it possible to simulate long software reset (4 seconds) for rom switcher ?
I need to change this by software because my original keyboard goes weak and sometimes it is very hard to switch...
Title: Re: Workbench 1.x reset command?
Post by: Piru on June 25, 2007, 11:38:23 AM
Quote
Do you think that it possible to simulate long software reset (4 seconds) for rom switcher?

It's not.
Title: Re: Workbench 1.x reset command?
Post by: weirdami on June 25, 2007, 11:43:15 AM
@piru

What's that kind of code there, then?
Title: Re: Workbench 1.x reset command?
Post by: Piru on June 25, 2007, 12:33:39 PM
@weirdami

It's the industry standard amiga reset code. It was used before Kickstart 2.x and later ROMs.
Title: Re: Workbench 1.x reset command?
Post by: Gilloo on June 25, 2007, 01:04:40 PM
Quote

Piru wrote:
Quote
Do you think that it possible to simulate long software reset (4 seconds) for rom switcher?

It's not.

so bad for me :boohoo:

Is it complex to add a simple push button in hardware to make long reset working ? (sorry to post that request in this thread, it's not the main subjet :-D )
Title: Re: Workbench 1.x reset command?
Post by: Framiga on June 25, 2007, 01:21:27 PM
have you tryed the old ABCS from Aminet? i still use it thanks his "hard reset" feature (it remove even rad, residents and such)

ABCS AmigaReset (http://aminet.net/package/util/misc/AbcsAmigaReset) (not sure if it works with older AmigaOS)
Title: Re: Workbench 1.x reset command?
Post by: Piru on June 25, 2007, 02:53:22 PM
Hard reset is just the abovementioned code with trashing of the execbase pointer (or execbase itself). For example: move.l #-1,(4).w

The idea is to make the OS forget the old execbase so that you get rid of all memory resident stuff.

Thus, the difference is in the software. It doesn't generate any longer reset.
Title: Re: Workbench 1.x reset command?
Post by: countzero on June 25, 2007, 07:08:20 PM
I just compiled piru's code for the lazy.

http://coze.0catch.com/RESET.LHA
Title: Re: Workbench 1.x reset command?
Post by: orange on June 25, 2007, 07:13:05 PM
Quote
What's that kind of code there, then?


I think its safe to say it will wipe your HDD by writing
"I will not pirate software ever (again).
I will not pirate software ever (again).
.."

 ;-)