home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
misc
/
emu
/
Frodo.lha
/
Frodo
/
FrodoSIDCard.lha
/
DisableSID.asm
< prev
next >
Wrap
Assembly Source File
|
1995-02-15
|
682b
|
46 lines
*
* DisableSID.asm - EnableSID rückgängig machen
*
* Written in 1995 by Christian Bauer
*
INCLUDE "exec/types.i"
INCLUDE "exec/macros.i"
INCLUDE "exec/execbase.i"
SECTION "CODE",CODE
Main move.l (4).w,a6
move.w AttnFlags(a6),d0
btst #AFB_68040,d0 ;68040 vorhanden?
beq Exit
lea GetMMUProc(pc),a5
JSRLIB Supervisor ;MMU-Register lesen
btst #15,d0 ;MMU angeschaltet?
beq Exit
moveq #0,d0 ;Ja, DTT0 löschen
lea SetMMUProc(pc),a5
JSRLIB Supervisor ;MMU-Register setzen
Exit moveq #0,d0
rts
*
* Routinen zum Lesen/Setzen der MMU-Register (68040)
*
MACHINE 68040
GetMMUProc movec tc,d0
rte
SetMMUProc movec d0,dtt0
pflusha
rte
END