[A83] Re: Official H**s Replacement Commands & Questions & PulseWidthMod


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

[A83] Re: Official H**s Replacement Commands & Questions & PulseWidthModulation







>From: "Kirk Meyer" <kirk.meyer@colorado.edu>
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: Official H**s Replacement Commands & Questions & 
>PulseWidthModulation

>#define WAIT ei\ halt\ djnz $-2
>begin:
>     ld b,0
>loop:
>     bcall(_getky)
>     cp kDown
>     inc b \ ret
>     jr nz,notdown
>notdown:

um... Take a second look at that jr...

>     cp kUp
>     jr nz,notup
>     dec b \ ret
>notup:
>     cp kClear
>     ret z
>     ld a,$C3    ;off
>     out($00),a
>     WAIT
>     ld a,$C0    ;on
>     WAIT
>     jr loop
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




Follow-Ups: