aboutsummaryrefslogtreecommitdiff
path: root/src/ubox/ubox_read_vm.z80
blob: 78df980fad11c9d8b3f748e72fca1ab8ac0162d5 (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
.globl _ubox_read_vm

LDIRMV = 0x0059

_ubox_read_vm::
	ex de, hl
	; dst -> de
	; len -> hl
	ld c, l
	ld b, h
	; len -> bc

	ld hl, #2
	add hl, sp
	ld a, (hl)
	inc hl
	ld h, (hl)
	ld l, a
	; src -> hl

	call LDIRMV

	pop hl
	pop bc
	jp (hl)