Re: A86: _clrLCD and a


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

Re: A86: _clrLCD and a




It happens more than you know :-)  (not to say I'm feeding you corrupted
information ...)

Yeah, I forgot that they could have used ld (hl),0


>
>>Yes, it has to clear at least one byte using A so that it can clear the
rest
>>of the screen.
>
>Wow, Dux is wrong for once! That happens very rarely, if ever.
>
>
>Try this code:
> ld a,$05 ;any old number
> call _clrLCD ;call it
> add a,$30 ;add 30 for the char offset
> ld b,a ;putc works with b
> jp _putc ;put it to screen
>
>
>It should print a 5 at the current position. Thus _clrLCD does not destroy
>a. It may push/pop around the routine tho.
>CHICANE
>ICQ: #14727618
>chicane on EFNET #ti
>Homepage: Under Construction.


Follow-Ups: