Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started 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!
-
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)
-
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...
-
Do you think that it possible to simulate long software reset (4 seconds) for rom switcher?
It's not.
-
@piru
What's that kind of code there, then?
-
@weirdami
It's the industry standard amiga reset code. It was used before Kickstart 2.x and later ROMs.
-
Piru wrote:
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 )
-
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)
-
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.
-
I just compiled piru's code for the lazy.
http://coze.0catch.com/RESET.LHA
-
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).
.."
;-)