Re: A86: Newbie Loop Question
[Prev][Next][Index][Thread]
Re: A86: Newbie Loop Question
>
>
>Hello,
>I'm new to asm and I can't get this program to 'work'. All it's
supposed to
>do is draw 5 lines of 8 pixels each (xor'd each time)...It does that,
but
>then the program just keeps running...please help.
>
>Program:
>
>#include "asm86.h"
>#include "ti86asm.inc"
>
>.org _asm_exec_ram
>
> call _clrLCD
> ld hl, $FC00
> ld a, %10101010
> ld b, 5
>loop: ld (hl), a
> inc l
> xor %11111111
> djnz loop
>
>.end
>.end
>
>Thanx,
>Dave VanEe
>
>
After your "djnz loop" add a "ret" otherwise the calc doesn't know to
RETurn and it keeps going and going and going and going.
Matt
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com