Recent

Author Topic: [SOLVED] is it a top_reg or top_ref or top_local?  (Read 868 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 372
[SOLVED] is it a top_reg or top_ref or top_local?
« on: July 16, 2024, 10:40:46 pm »
Code: Pascal  [Select][+][-]
  1.        
  2. lw      $s0,108($sp)    <- taicpu(pp).oper[0]^.typ = top_reg         $s0          this I knew
  3. lw      $s1,($s0)       <- what type is $s0 is it  taicpu(pp).oper[1]^.typ = top_reg   or is it a  top_ref
  4.  

if it is a top_ref how to extract the register name?
« Last Edit: July 17, 2024, 12:17:44 am by Key-Real »

Key-Real

  • Sr. Member
  • ****
  • Posts: 372
Re: is it a top_reg or top_ref ?
« Reply #1 on: July 16, 2024, 11:12:51 pm »
or is it:

taicpu(pp).oper[1]^.typ = top_local

and can be accessable by taicpu(pp).oper[1]^.localoper^.localindexreg ?

Key-Real

  • Sr. Member
  • ****
  • Posts: 372
Re: is it a top_reg or top_ref or top_local?
« Reply #2 on: July 17, 2024, 12:17:28 am »
its:

taicpu(pp).oper[1]^.typ = top_ref

and is read by

taicpu(pp).oper[1]^.ref^.base

 

TinyPortal © 2005-2018