aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_sprite_pat8.z80
blob: c48588e362465815bde7098055062d75550dad3d (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
.globl _ubox_set_sprite_pat8
.globl _ubox_write_vm

SP_PATTERNS = 0x3800

_ubox_set_sprite_pat8::
	ld e, l
	ld d, h

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

	push de
	ld de, #8
	; hl: dst, de: len, stack: src
	call _ubox_write_vm

	pop hl
	inc sp
	jp (hl)