[A83] Re: Point of making your own lcd_busy?


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

[A83] Re: Point of making your own lcd_busy?



At 07:33 PM 2/8/2003 +0100, you wrote:
> > Van: Patai Gergely <patai_gergely@fastmail.fm>
> >
> > > Use:
> > >
> > >    EX (SP),HL
> > >    EX (SP),HL
> > >
> > This seems to be a very good idea, but you shouldn't forget to disable
> > interrupts (e. g. during the screen to LCD function) if you use it.
>
>Why?
>
>It changes the data _at_ the SP, not SP itself.

Indeed.  Even if an interrupt did go off between the statements, an 
interrupt that wouldn't crash the calc anyway would point SP back where it 
should be after.  So, unless there is an interrupt that messes with 
non-shadow HL, its safe.





Follow-Ups: References: