home *** CD-ROM | disk | FTP | other *** search
/ Tutto per Internet / Internet.iso / soft95 / Java / espints / espinst.exe / classes / espresso / LocalItem.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-02-28  |  756 b   |  39 lines

  1. package espresso;
  2.  
  3. class LocalItem extends Item {
  4.    int disp;
  5.    int pos;
  6.  
  7.    void incr(int var1) {
  8.       Gen.checkInit(this.pos, this.disp);
  9.       Gen.emitop1w(132, this.disp);
  10.       Gen.emit1(var1 & 255);
  11.    }
  12.  
  13.    void store(Typ var1) {
  14.       Gen.letInit(this.disp);
  15.       if (this.disp <= 3) {
  16.          Gen.emitop(59 + Gen.typecode(var1) * 4 + this.disp);
  17.       } else {
  18.          Gen.emitop1w(54 + Gen.typecode(var1), this.disp);
  19.       }
  20.  
  21.    }
  22.  
  23.    void load(Typ var1) {
  24.       Gen.checkInit(this.pos, this.disp);
  25.       if (this.disp <= 3) {
  26.          Gen.emitop(26 + Gen.typecode(var1) * 4 + this.disp);
  27.       } else {
  28.          Gen.emitop1w(21 + Gen.typecode(var1), this.disp);
  29.       }
  30.  
  31.    }
  32.  
  33.    LocalItem(int var1, int var2) {
  34.       super(5);
  35.       this.pos = var1;
  36.       this.disp = var2;
  37.    }
  38. }
  39.