-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblitter.s
51 lines (47 loc) · 1.47 KB
/
blitter.s
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
include "jaguar.inc"
text
xdef _fill_background
_fill_background: ; void fill_background()
move.l B_CMD,d0
ror.w #1,d0
bcc.s _fill_background ; Wait Blitter ready
move.l _jag_vidmem,A1_BASE ; dest
move.l #60,A1_PIXEL
move.l #PIXEL8 | XADDPIX | WID320 | PITCH1,A1_FLAGS
move.l #$0001ff38,A1_STEP
move.l #2,B_PATD ; pattern Palette-Color 2
move.l #$00c800c8,B_COUNT ; 200x200 Bytes
move.l #UPDA1|PATDSEL,B_CMD
rts
xdef _fill_backgrid
_fill_backgrid: ; void fill_backgrid(uint16_t offset)
move.l B_CMD,d0
ror.w #1,d0
bcc.s _fill_backgrid ; Wait Blitter ready
move.l _jag_vidmem,A1_BASE ; dest
move.l 4(SP),A1_PIXEL ; offset
move.l #PIXEL8 | XADDPIX | WID320 | PITCH1,A1_FLAGS
move.l #$0001ffd8,A1_STEP
move.l #_block_nul,A2_BASE ; src
move.l #0,A2_PIXEL
move.l #PIXEL8 | XADDPIX | WID40 | PITCH1,A2_FLAGS
move.l #$0001ffd8,A2_STEP
move.l #$00280028,B_COUNT ; 40x40 Bytes
move.l #SRCEN|DSTEN| UPDA1|UPDA2|LFU_SORD,B_CMD
rts
xdef _show_logo
_show_logo: ; void show_logo()
move.l B_CMD,d0
ror.w #1,d0
bcc.s _show_logo ; Wait Blitter ready
move.l _jag_vidmem,A1_BASE ;destAdr
move.l #$60,A1_PIXEL ; offset
move.l #PIXEL8 | XADDPIX | WID320 | PITCH1,A1_FLAGS
move.l #$0001FF80,A1_STEP
move.l #_P2048title_data,A2_BASE ; src
move.l #0,A2_PIXEL
move.l #$0001FF80,A2_STEP
move.l #PIXEL8 | XADDPIX | WID128 |PITCH1,A2_FLAGS
move.l #$00800080,B_COUNT
move.l #SRCEN|DSTEN| UPDA1|UPDA2|LFU_REPLACE,B_CMD
rts