     DEVICE ZXSPECTRUM48
    ORG $8000
    di
    ld sp,0
    ld b, 11
    ld c, 22
    ld a, 2
bucle:
    call pintaXYZ
    djnz bucle



fin: jr fin

pintaXYZ:
    push af
    push de 
    push hl

    ld h,0
    ld l,b
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,hl
    add hl,hl
    ld d,0
    ld e,c
    add hl, de
    ld de, $5800
    add hl, de
    add A 
    add A 
    add A 
    ld (hl),a 
    pop hl
    pop de 
    pop af
    ret

printaH:
    push af
    push bc 
    push de
    ld c,0
bph:
    call pintaXYZ
    inc c 
    ld d, a
    ld a, c
    cp 32
    jr nz, bph
    pop af
    pop de
    pop hl
    ret 

