>
> > I noticed that the interrupts are turned off after each pset/point.
> > This causes the 'keypressed' not to function since the 50/60
> > hz
> > interrupt also scans for keys. Please add a "/$FB" after the
> > inline function.
> It works! Thank you very much :)
> Perhapse interrupts are turnerd off to speed up the routines?
Nope... the interrupts are turned off to make sure that between
the sequence of OUT instructions no interrupt is accepted.
>
> There is another way to handle keys instead of the keypressed
> function ??
>
This is the keypressed routine that is used in turbo pascal 3.3e,
i don't know how the original turbo pascal 3.0 did it. But this
is very fast.
LD HL,(0F3FAH)
LD A,(0F3F8H)
SUB L
LD A,1 ; assume there are characters present
JR NZ,L0316_OK ; jump if characters present
DEC A ; FALSE if not
L0316_OK:
LD L,A
LD H,0
RET
_______________________________________________
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx