Welcome, Guest. Please login or register.

Author Topic: Workbench 1.x reset command?  (Read 2761 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline TjLaZerTopic starter

Workbench 1.x reset command?
« 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!
Going Bananas over AMIGAs since 1987...

Looking for Fusion Fourty PNG ROMs V3.4?

:flame: :banana: :banana: :banana:
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Workbench 1.x reset command?
« Reply #1 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)

 

Offline Gilloo

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show only replies by Gilloo
Re: Workbench 1.x reset command?
« Reply #2 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...
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Workbench 1.x reset command?
« Reply #3 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.
 

Offline weirdami

  • Hero Member
  • *****
  • Join Date: Jan 2003
  • Posts: 3776
    • Show only replies by weirdami
    • Http://Bindingpolymer.com
Re: Workbench 1.x reset command?
« Reply #4 on: June 25, 2007, 11:43:15 AM »
@piru

What's that kind of code there, then?
----
Binding Polymer: Keeping you together since 1892.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Workbench 1.x reset command?
« Reply #5 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.
 

Offline Gilloo

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show only replies by Gilloo
Re: Workbench 1.x reset command?
« Reply #6 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 )
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Workbench 1.x reset command?
« Reply #7 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 (not sure if it works with older AmigaOS)
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Workbench 1.x reset command?
« Reply #8 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.
 

Offline countzero

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 1938
    • Show only replies by countzero
    • http://blog.coze.org
Re: Workbench 1.x reset command?
« Reply #9 on: June 25, 2007, 07:08:20 PM »
I just compiled piru's code for the lazy.

http://coze.0catch.com/RESET.LHA
I believe in mt. Fuji
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2799
  • Country: 00
    • Show only replies by orange
Re: Workbench 1.x reset command?
« Reply #10 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).
.."

 ;-)
“Giving up is always an option, but not always a failure.”