Re: A86: Question


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

Re: A86: Question




A. El-Helw wrote:
> 
> Hello,
>         I am sorry if this is a stupid question, but I was trying to draw a line
> on one of my progs, and when I got it, I always get at least some junk
> around it... Anyone can see what I am doing wrong ?
> 
> Initialize:
>         call _runindicoff
>         call _clrLCD
>         ld b,85
>         ld c,0
>         ld d,85
>         ld e,64
>         ld h,1
>         call _ILine
>         call _getkey
>         ret
> 
>                                         =Ahmed
> 
> btw - clrscrn doesn't do the trick either...


There is a bug (or feature?) in the ROM that causes _ILine to display
part of the graph in the area around the line. Clearing the graph memory
first should fix the problem:

	ld hl,GRAPH_MEM
	ld (hl),0
	ld de,GRAPH_MEM+1
	ld bc,1024
	ldir
	set graphdraw,(iy+graphflags)

wil mahan
icq #4641865


References: