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

Re: Test: the cycle



On Feb 17, 4:36 am, Vladimir Ivanov <vlad...@XXXyahooXXX.com> wrote:
> On Fri, 17 Feb 2012, Antoine Vignau wrote:
> > Second try!
>
> > The HEX way:
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
> > 38 20 1F FE 90 01 60 AD 36 C0 29 7F 8D 36 C0 60
>
> > The ASM way:
> > SEC
> > JSR IDROUTINE ($FE1F)
> > BCC iigs
> > RTS
>
> > iigs:
> > LDA $C036
> > AND £%0111_1111
> > STA $C036
> > RTS
>
> > av :-)
>
> A-ha, that must be what "Safe Hex" is like.
>
> In little more seriousness:
>
> LDA #$80
> TRB $C036
>
> is bit shorter and safer (atomic). There's this miniscule opportunity for
> the user to go into CDA just after "LDA $C036" and mess with the settings.



Unless I misunderstood Mike, he wanted to keep the ACC free.



Mikes Quote "I thought it involved reading a loaction, modifying a
bit, and replacing
it.  So it requires that the accumulator be free. "