|
Atari coding BBS
Re: 68030 cache disable |
Posted by: mikro
|
Jul,25.2011-10:16
|
This is what I use:
_asm_save_030_cache_settings:
movec cacr,d0
move.l d0,save_cacr
rts
_asm_deactivate_030_datacache:
movec cacr,d0
bset #0,d0 ; i cache on
bset #4,d0 ; i burst on
bclr #8,d0 ; d cache off
bclr #12,d0 ; d burst off
movec d0,cacr
rts
_asm_restore_030_cache_settings:
move.l save_cacr,d0
bset #11,d0 ; clear data cache
bset #3,d0 ; clear inst cache
movec d0,cacr
rts
But as you probably know, this is 030 specific thing, 040+ uses completely different registers/bits.
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|