aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_tiles.z80
blob: 7e4f42e300e2043e12de5d84c84d5548b4ee30f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.globl _ubox_set_tiles

LDIRVM = 0x005c
BG_TILES = 0x0

_ubox_set_tiles::
	ld de, #BG_TILES
	ld bc, #256 * 8
	push hl
	call LDIRVM
	pop hl

	ld de, #BG_TILES + #256 * 8
	ld bc, #256 * 8
	push hl
	call LDIRVM
	pop hl

	ld de, #BG_TILES + #256 * 8 * 2
	ld bc, #256 * 8
	jp LDIRVM