.globl _ubox_set_sprite_pat8 .globl _ubox_write_vm SP_PATTERNS = 0x3800 _ubox_set_sprite_pat8:: 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 ld bc, #SP_PATTERNS add hl, bc push de ld bc, #8 push bc push hl call _ubox_write_vm pop af pop af pop af ret