Mostly want to be able to change any bit in the register...
Really needs to be a ACC as well
EDIT:
I will try and get AI to write me one..
Code: Select all
moveq #0,d0 ; replace #0 with whatever you want
dc.l $4e7b0002 ; this is <movec d0,cacr> encoded for assemblers without movec
Code: Select all
; NOIBURST.S - Disable 68030 instruction burst
; Assemble with Devpac 3: opt p=68030
; Run from desktop, then run ROM benchmark
opt p=68030
pea super_off(pc)
move.w #38,-(sp) ; Supexec
trap #14 ; XBIOS
addq.l #6,sp
pea msg_off(pc)
move.w #9,-(sp) ; Cconws
trap #1 ; GEMDOS
addq.l #6,sp
move.w #1,-(sp) ; Cconin - wait for key
trap #1
addq.l #2,sp
clr.w -(sp) ; Pterm0
trap #1
super_off:
movec cacr,d0
bclr #12,d0 ; clear instruction burst enable
movec d0,cacr
rts
msg_off:
dc.b "Instruction burst DISABLED",13,10
dc.b "Press any key...",13,10,0
even