Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

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

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

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

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