Re: A83: Re: Sprite Routine 83+


[Prev][Next][Index][Thread]

Re: A83: Re: Sprite Routine 83+




here is the source code for putSprite in ION

;-----> Draw a sprite
; b=size of sprite
; l=yc
; a=xc
; ix holds pointer
putSprite:
	ld	e,l
	ld	h,$00
	ld	d,h
	add	hl,de
	add	hl,de
	add	hl,hl
	add	hl,hl
	ld	e,a
	and	$07
	ld	c,a
	srl	e
	srl	e
	srl	e
	add	hl,de
	ld	de,gbuf
	add	hl,de
putSpriteLoop1:
sl1:	ld	d,(ix)
	ld	e,$00
	ld	a,c
	or	a
	jr	z,putSpriteSkip1
putSpriteLoop2:
	srl	d
	rr	e
	dec	a
	jr	nz,putSpriteLoop2
putSpriteSkip1:
	ld	a,(hl)
	xor	d
	ld	(hl),a
	inc	hl
	ld	a,(hl)
	xor	e
	ld	(hl),a
	ld	de,$0B
	add	hl,de
	inc	ix
	djnz	putSpriteLoop1
	ret


----------------------------------------------
Original Message
From: ""<Sk8a4good@aol.com>
Subject: Re: A83: Re: Sprite Routine 83+
Date: Sun, 14 Jan 2001 14:13:03 EST

>
>i dont see a sprite routine in the source for ion
>
>

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com