forked from aburguera/YAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INTRO.X68
52 lines (49 loc) · 1.8 KB
/
INTRO.X68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
; =============================================================================
; INTRO MANAGEMENT
; =============================================================================
; -----------------------------------------------------------------------------
INTPLOT
; PLOTS THE INTRO LOGO
; INPUT - NONE
; OUTPUT - NONE
; MODIFIES - NONE
; -----------------------------------------------------------------------------
MOVEM.L A0/D0-D7,-(A7)
; DRAW THE LOGO. SIZE OF THE PIC IS 304X160
LEA GFXLST,A0
MOVE.W #(SCRWIDTH-304)/2,D5 ; CENTER X
MOVE.W #SCRHEIGH/2-160,D6 ; PIC BOTTOM AT SCREEN CENTER
MOVE.W #26,D7
MOVE.B (GENFRMCT),D0
AND.L #$F,D0
SUB.W D0,D6
JSR GFXDRIDP ; DRAW PIC
; DRAW THE SUBTITLE
MOVE.L #$00FFFFFF,D1
MOVE.B #80,D0
TRAP #15 ; PEN TO WHITE
CLR.L D1
ADDQ.B #1,D0
TRAP #15 ; FILL TO BLACK
LEA STRTIT0,A1
MOVE.W #260,D2
JSR .PRTCTR
MOVE.W #400,D2
LEA STRTIT1,A1
BTST #4,(GENFRMCT)
BEQ .PRT
LEA STRTIT2,A1
.PRT JSR .PRTCTR
MOVEM.L (A7)+,A0/D0-D7
RTS
.PRTCTR JSR UTLSTRLN ; COMPUTE THE TITLE STRING LENGTH
MOVE.W D0,D3
MULU.W #GENCHRW,D3 ; CONVERT TO PIXELS
JSR GENCENTX ; GET CENTERED COORDINATE
MOVE.B #95,D0
TRAP #15
RTS
*~Font name~Courier New~
*~Font size~10~
*~Tab type~0~
*~Tab size~4~