This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dual entry asm routine

I have this case of two virtually identical routines that must run at the ultimate speed.

One approach would be:

           RSEG ?DT?FormatBitSegment
FBSfcol:   DS    1

           RSEG  ?PR?FormatBitSegment?AVFMTBS
           USING  0

FormatScrollSegment:
           ......
           mov   a,FBSfcol
           ......
           sjmp  common

FormatBitSegment:
           ......
           mov   a,FBSfcol
           .......
common:    .......
           ......
           mov   a,FBSfcol
           ......
           ret

The question is not does it work, but is it legal re local storage etc..

Thanks in advance,

Erik