Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // update I2 to the current memory size. update global offset.
  2. Type id_type =$1.type;
  3. if( id_type == INT8)
  4. {
  5.  
  6. offset=offset+1;
  7. }
  8.  
  9. else if( id_type == INT16 )
  10. {
  11. if((globalCurrentScopeOffset+2)%2 != 0 )
  12. {
  13. offset = 2 - globalCurrentScopeOffset%2 + 2;
  14. }
  15. else offset=offset+2;
  16.  
  17. }
  18. else if( id_type == INT32 )
  19. {
  20. if((globalCurrentScopeOffset+4)%4 != 0 )
  21. {
  22. offset = 4 - globalCurrentScopeOffset%4 + 4;
  23. }
  24. else offset=offset+4;
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement