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

Re: Source Code for OS?



Paul Schlyter wrote:
> > Stop it or I'll post rot-13 encoded 6502 assembler! :)
> 
> OK:
> 
>     YBBC:   YQN $P08R,K
>             OCY YBBC
>             PZC $NQOR
>             OAR YBBC
>             OCY RKVG
>             NQP #1
>     RKVG:   EGF
> 

And what does that do?  I see the reference to the data in latch on a
slot 6 floppy drive, but what is at $ADBE?  I assume it is in the global
memory space of DOS 3.3 (ok, all variables in DOS 3.3 are globals, but
who's counting, right?)  Why the ADC #1?

    LOOP:   LDA $C08E,X
            BPL LOOP
            CMP $ADBE
            BNE LOOP
            BPL EXIT
            ADC #1
    EXIT:   RTS
 

-- 
dennis@usb.com                           Universal Savings Bank.

The three most dangerous things are a programmer with a soldering
iron, a manager who codes, and a user who gets ideas.