aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_sprite_pat16.z80
blob: 59d7ccbea4796f1292532b6abda79846c4aa999d (plain)
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
.globl _ubox_set_sprite_pat16
.globl _ubox_write_vm

SP_PATTERNS = 0x3800

_ubox_set_sprite_pat16::
	ld hl, #2
	add hl, sp

	ld e, (hl)
	inc hl
	ld d, (hl)
	inc hl

	ld l, (hl)
	ld h, #0
	add hl, hl
	add hl, hl
	add hl, hl
	add hl, hl
	add hl, hl
	ld bc, #SP_PATTERNS
	add hl, bc

	push de
	ld bc, #32
	push bc
	push hl
	call _ubox_write_vm
	pop af
	pop af
	pop af
	ret