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

Re: What'd I find at the dump yesterday?



Dan Foster <usenet@evilphb.org> writes:
>For the interested, the assembly language listing for that small program is:

>0300- A9 00      LDA #$00              
>0302- 85 00      STA $00
>0304- 85 01      STA $01
>0306- 38         SEC
>0307- 20 1F FE   JSR $FE1F
>030A- B0 04      BCS $0310
>030C- 84 01      STY $01
>030E- E6 00      INC $00
>0311- 60         RTS

The last line should read

0310- 60         RTS

otherwise the branch after the JSR makes no sense.
-- 
David Wilson  School of IT & CS, Uni of Wollongong, Australia