0 Members and 2 Guests are viewing this topic.
Drawalignedsprite push hl ld a,c add a,a add a,c add a,a add a,a ld l,c push af ld a,l add a,b ld l,a pop af ld h,0 ld de,appbackupscreen add hl,de push de ld de,plotSScreen add de,hl sub a ld b,8 ld c,16 pop hl__Drawalignedspriteloop ld a,(hl) ex de,hl ld (hl),a inc de add hl,12 ex de,hl dec c sub a cp c jp z,__Drawalignedspriteend add 8 cp c jp z,__Drawalignedspriteloopnext djnz __Drawalignedspriteloop__Drawalignedspriteloopnext ld b,8 pop de sub a cp c jp nz,__Drawalignedspriteloop__Drawalignedspriteend ret
Clrscrn ld bc,768 ld hl,plotSScreen ld de,appbackupscreen sub a__Clrscrnloop ld (hl),a inc hl ex de,hl ld (hl),a inc hl ex de,hl dec bc cp b jp z,__Clrscrnloop cp c jp z,__Clrscrnloop__Clrscrnend ret
Clrscrn ld bc,768 ld hl,plotSScreen ld de,appbackupscreen sub a__Clrscrnloop ld (hl),a inc hl ld (de),a inc de dec bc cp b jp z,__Clrscrnloop cp c jp z,__Clrscrnloop__Clrscrnend ret
Clrscrn ld bc,768 ld hl,plotSScreen ld de,appbackupscreen sub a__Clrscrnloop ld (hl),a ldi jp pe,__Clrscrnloop ret
O.o what does the pe flag do? also, I've seen the po flag used before (ahem quigibo's grayscale routine) can you explain to me the fthe different flags (sorry for wasting your time )And, cool usage of the ldi instruction, I usually never use it much O.o
.page 0#include TaNrout.inc.page 1#include TaNrout.inc.page 2#include TaNrout.inc