Re: A82: Halt command


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

Re: A82: Halt command




You better make sure that interrupts are enabled or it should crash. Just
make it:

delay:
    ei
    ld b,20
delay2:
    halt
    djnz delay2
    ret

82 Master
World of 82

Evil Sam wrote:

>    What would cause a halt command to crash?
>
> example:
>   delay:   ;crashes
>     ld b,20
>   delay2:
>     halt
>     djnz Delay2
>     ret
>
>   delay:   ;works
>     ld b,20
>   delay2:
>     push bc
>     pop bc
>     djnz Delay2
>     ret
>
>   I found a way to shrink BD by 960 bytes. The process involves writing
> screen data to APD_BUF and displaying it with ROM_CALL(RESTOR_DISP),
> would this cause the halt command to freeze the calc?
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com




References: