home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fujiology Archive
/
fujiology_archive_v1_0.iso
/
!FALCON
/
LINEOUT
/
DELTA.ZIP
/
DELTASRC.ZIP
/
DELTA.SRC
/
BLACK.SO
< prev
next >
Wrap
Text File
|
2003-01-02
|
2KB
|
85 lines
; Intense darkness effect.
; A 'screen' for delta.
;======= OBJECT EQUATES ====================================================
;======= OBJECT TABLE ======================================================
; Must be first in object!!
Darkness.table:
DC.L Darkness.mainLoop
DC.L Darkness.init
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L rts
DC.L 0
;======= INIT SUBROUTINE ===================================================
; OUTPUT:
; d0.l: 0 = All clear, neg = Error! Not initialized!
Darkness.init:
; Insert pre-running initialising stuff here! Loading, precalculating, etc.
.success:
moveq #0,d0
rts
.error: moveq #-1,d0
rts
;======= REALTIME INIT SUBROUTINE ==========================================
Darkness.realtimeInit:
move.w monitormode,d0
cmpi.w #vga60,d0
beq.s .vga60
cmpi.w #vga100,d0
beq.s .vga100
cmpi.w #rgb50,d0
beq.s .rgb50
rts
.vga60: move.l #vga60_16bit_160_200,Darkness.resRout
rts
.vga100:move.l #vga100_16bit_160_100,Darkness.resRout
rts
.rgb50: move.l #rgb50_16bit_320_100,Darkness.resRout
rts
;======= MAINLOOP SUBROUTINE ===============================================
Darkness.mainLoop:
move.l frmcnt,d0
sub.l lastframecount,d0
bne.s .end_init
bsr.w Darkness.realtimeInit
.end_init:
movea.l scr,a0
bsr.l CLEAR_320100TSCR
lea scr,a0
move.l (a0)+,d0
move.l (a0)+,d1
move.l (a0),-4(a0)
move.l d0,(a0)
move.l d1,-8(a0)
movea.l Darkness.resRout,a0
suba.l a1,a1
movea.l d0,a2
.again: bsr.l Screen.requestUpdate
tst.l d0
bmi.s .again
clr.l Darkness.resRout
rts
Darkness.resRout:
DC.L 0