Re: A89: conditional subroutines


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

Re: A89: conditional subroutines




What I've been doing is setting up the conditions within the subroutines
like this, it's a little more elegant:

 bsr doThis
;


doThis:

 cmp.w #10,that
 beq return
;


return:
 rts



>
>In a message dated 12/12/1998 7:35:26 PM Pacific Standard Time,
>ComAsYuAre@aol.com writes:
>
>> am i missing something or are there no opcodes for conditional subroutine
>>  calls?  you can branch on a condition, but that isn't a subroutine.
>>
>>  am i missing something?
>
>Try this:
>
>  cmp d0, 1
>  beq skipcall
>  bsr lib::function
>skipcall:
>
>If d0 is 1, it skips the call.
>
>
>Daniel Imfeld