-
Notifications
You must be signed in to change notification settings - Fork 1
/
YieArVideo.i
52 lines (40 loc) · 1.11 KB
/
YieArVideo.i
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
;@
;@ YieArVideo.s
;@ Konami YieAr Video Chip emulator for GBA/NDS.
;@
;@ Created by Fredrik Ahlström on 2009-03-23.
;@ Copyright © 2009-2024 Fredrik Ahlström. All rights reserved.
;@
#if !__ASSEMBLER__
#error This header file is only for use in assembly files!
#endif
/** Game screen width in pixels */
#define GAME_WIDTH (256)
/** Game screen height in pixels */
#define GAME_HEIGHT (224)
/** Total horizontal pixel count */
#define H_PIXEL_COUNT (384)
.equ SPRSRCTILECOUNTBITS, 9
.equ SPRDSTTILECOUNTBITS, 8
.equ SPRGROUPTILECOUNTBITS, 0
.equ SPRBLOCKCOUNT, (1<<(SPRSRCTILECOUNTBITS - SPRGROUPTILECOUNTBITS))
.equ SPRTILESIZEBITS, 5
koptr .req r12
;@ YieArVideo.s
.struct 0
scanline: .long 0 ;@ These 3 must be first.
nextLineChange: .long 0
lineState: .long 0
periodicIrqFunc:.long 0 ;@
frameIrqFunc: .long 0
yieArState: ;@
yieArRegs: ;@
irqControl: .byte 0 ;@
sprMemReload: .byte 0
yaPadding: .space 2
sprMemAlloc: .long 0
spriteRomBase: .long 0
gfxRAM: .long 0
sprBlockLUT: .long 0
yieArSize:
;@----------------------------------------------------------------------------