TOS - RTSHC08.c

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,621件の閲覧回数
roberto_m
Contributor III

Hi to all,

Looking into RTSHC08.c I've found:

void _ICMP(int j, ...) {
/* DESC:     16 bit compare i <rel> j
   IN:       X:A i, TOS j
   OUT:
   WRITTEN:  A,H,X */

  asm {
                CPX     j:0
                BNE     _ICMP_0
                CMP     j:1
                BEQ     _ICMP_0
                CLRA
                BCS     _ICMP_1
                LDA     #2
  _ICMP_1:       ;
                CMP     #1
  _ICMP_0:       ; // flags are set for i - j
                _PUL_RA
                AIS     #2                      ; // free pushed parameter
                JMP     0,X ! {HX+SR}, {HX+A}
  }
}

 

What is TOS? It is very popular in that file, but no documentation on it. Is it a command? what does it mean (transfer on stack?)?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,025件の閲覧回数
tonyp
Senior Contributor II

TOS (in this context) usually stands for Top Of Stack.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,026件の閲覧回数
tonyp
Senior Contributor II

TOS (in this context) usually stands for Top Of Stack.

0 件の賞賛
返信