home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
c
/
killchiprev.s
< prev
next >
Wrap
Text File
|
1995-02-27
|
1KB
|
63 lines
exec_i = 1
intuition_i = 1
INCDIR "DH0:Source/"
INCLUDE "Includes.i"
start: bra.s .real
dc.b "Kill AA-ChipRevBits $VER: 1.0 React",0
CNOP 0,4
.real: BaseReg VarBase,a5
lea VarBase(pc),a5
move.l 4.W,a6
lea GfxName(a5),a1
jsr OpenOldLibrary(a6)
move.l d0,Gfx(a5)
beq.s .err
lea IntName(a5),a1
jsr OpenOldLibrary(a6)
move.l d0,Int(a5)
beq.s .err
jsr Forbid(a6)
jsr DisAble(a6)
move.l Gfx(a5),a0
move.b $ec(a0),d0 ; ChipREvBits
;bclr #0,d0 ; No Big Blits/Hires Agnus
bclr #1,d0 ; No Hires Denise
bclr #2,d0 ; No AA_Alice
bclr #3,d0 ; No AA_Lisa
move.b d0,$ec(a0)
move.l Int(a5),a6
jsr ReMakeDisplay(a6)
move.l 4.W,a6
jsr Enable(a6)
jsr PerMit(a6)
.err: move.l 4.W,a6
move.l Gfx(a5),d0
beq.s .nGfx
move.l d0,a1
jsr CloseLibrary(a6)
.nGfx: move.l Int(a5),d0
beq.s .nInt
move.l d0,a1
jsr CloseLibrary(a6)
.nInt: moveq #0,d0
rts
VarBase:
GfxName: dc.b "graphics.library",0
IntName: dc.b "intuition.library",0
CNOP 0,4
GFX: dc.l 0
Int: dc.l 0