1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
.globl _ubox_read_vm LDIRMV = 0x0059 _ubox_read_vm:: ld hl, #2 add hl, sp ld e, (hl) inc hl ld d, (hl) inc hl ld c, (hl) inc hl ld b, (hl) inc hl ld a, (hl) inc hl ld h, (hl) ld l, a jp LDIRMV