home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 110
/
EnigmaAmiga110CD.iso
/
software
/
varie
/
ksc_utils
/
colors.asm
< prev
next >
Wrap
Assembly Source File
|
2000-02-21
|
1KB
|
69 lines
; Colors v1.2 : pops up palette on top screen (needs reqtools)
; by Kyzer/CSG
; $VER: Colors.asm 1.2 (08.04.98)
;
incdir include:
include lvo/exec_lib.i
include lvo/reqtools_lib.i
include libraries/reqtools.i
include intuition/intuitionbase.i
include dos/dosextens.i
include utility/tagitem.i
Colors move.l 4.w,a6
sub.l a1,a1
jsr _LVOFindTask(a6)
move.l d0,a4
moveq #0,d0
tst.l pr_CLI(a4)
bne.s .nomsg
lea pr_MsgPort(a4),a0
jsr _LVOWaitPort(a6)
lea pr_MsgPort(a4),a0
jsr _LVOGetMsg(a6)
.nomsg move.l d0,-(sp)
lea intname(pc),a1
moveq #32,d0
jsr _LVOOpenLibrary(a6)
tst.l d0
beq.s .exit
move.l d0,a1
pea TAG_DONE.w
move.l ib_FirstScreen(a1), -(sp)
pea RT_Screen
jsr _LVOCloseLibrary(a6)
lea rtname(pc),a1
moveq #37,d0
jsr _LVOOpenLibrary(a6)
tst.l d0
beq.s .exit
move.l d0,a6
move.l sp,a0
lea reqname(pc),a2
suba.l a3,a3
jsr _LVOrtPaletteRequestA(a6)
adda.w #12,sp
move.l a6,a1
move.l 4.w,a6
jsr _LVOCloseLibrary(a6)
.exit move.l (sp)+,d0
beq.s .nomsg2
move.l d0,a2
jsr _LVOForbid(a6)
move.l a2,a1
jsr _LVOReplyMsg(a6)
jsr _LVOPermit(a6)
.nomsg2 moveq #0,d0
rts
rtname dc.b 'reqtools.library',0
intname dc.b 'intuition.library',0
reqname dc.b 'Colors',0