Changeset 64 in dev for BasicCompiler64/stack_frame.cpp


Ignore:
Timestamp:
Mar 8, 2007, 2:49:34 AM (18 years ago)
Author:
dai_9181
Message:

すべてのオブジェクトを参照型に切り替えた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/stack_frame.cpp

    r20 r64  
    3838    }
    3939    return -(answer_sp-0x08);
     40}
     41int CStackFrame::GetNowSp(){
     42    return now_sp;
     43}
     44void CStackFrame::mov_sp( int reg ){
     45    //mov reg,rsp
     46    op_mov_RR( reg, REG_RSP );
     47
     48    //add reg,now_sp
     49    op_add_RV( reg, now_sp );
     50
     51    //スケジュールをセット
     52    obp-=sizeof(long);
     53    add();
     54    obp+=sizeof(long);
    4055}
    4156int CStackFrame::push(int reg){
Note: See TracChangeset for help on using the changeset viewer.