[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'Hello world' for monitor mode and an assembler?
In article <m3fz5pygl0.fsf@pearl.local>,
Scott Hemphill <hemphill@alumni.caltech.edu> wrote:
>russotto@grace.speakeasy.net (Matthew Russotto) writes:
>
>> In article <pan.2004.09.09.19.48.25.837776@ataliross.co.uk>,
>> Alistair J Ross <mail@ataliross.co.uk> wrote:
>> >
>> >300: JSR $FBDD
>> >303: RTS
>> >
>> >I had to know that JSR $FBDD was 2 memory instructions long.
>> Actually, it's 3. 20 DD FB, I think.
>>
>> But it's easier than that.
>>
>> ! 300: JSR $FBDD
>> ! RTS
>
>How about
>
> 300: JMP $FBDD
>
>and let it do the RTS.
More efficient, but it misses the point of the example which is to
show how to assemble multiple instructions in the mini-assembler
without an explicit address for each.