Ekrandaki görüntüyü renkleriyle birlikte Y ekseninde 2 kat genişletiyoruz.
;==============================================================;
; DİKEY EKRAN GENİŞLETİCİ ;
; 30-01-2015 / HADES ;
; UZUNLUK : 220 BYTE ;
;==============================================================;
org $8000
ld hl,screen
ld de,$4000
ld bc,6912
ldir
ld b,100
wait halt
djnz wait
call main
uloop jr uloop
;--------------------------------------------------------------;
main ld b,11
ld iy,srctab
tabloop push bc
ld l,(iy+0)
ld h,(iy+1)
ld e,(iy+22)
ld d,(iy+23)
push de
pop ix
call uzat
inc iy
inc iy
pop bc
djnz tabloop
ld hl,$4400
ld ix,$4020
call uzat1
ld hl,$4200
ld ix,$4400
ld c,2
call loop01
ld hl,$4100
ld ix,$4200
ld c,1
call loop01
ld hl,$4000
ld de,$4100
ld bc,$20
ldir
ld b,12
ld hl,$5960
ld de,$5ac0
loop02 push bc
ld bc,32
push hl
push bc
ldir
pop bc
pop hl
ldir
ld bc,64
sbc hl,bc
ex de,hl
sla c
sbc hl,bc
ex de,hl
pop bc
djnz loop02
ret
;--------------------------------------------------------------;
uzat push ix
call uzat1
ld de,$20
pop ix
add ix,de
uzat1 ld c,4
loop01 ld b,$20
loop00 ld a,(hl)
ld (ix+0),a
inc ixh
ld (ix+0),a
dec ixh
inc hl
inc ix
djnz loop00
ld de,$e0
add hl,de
inc d
add ix,de
dec c
jr nz,loop01
ret
;--------------------------------------------------------------;
srctab defw $4860,$4840,$4820,$4800
defw $40e0,$40c0,$40a0,$4080
defw $4060,$4040,$4020
destab defw $50c0,$5080,$5040,$5000
defw $48c0,$4880,$4840,$4800
defw $40c0,$4080,$4040
;--------------------------------------------------------------;
screen incbin "aticatac_ekran.bin"
;--------------------------------------------------------------;
end $8000
;==============================================================;