0x0584/corewar

handle arguments of different types

Closed this issue · 0 comments

mem_chunk() reads arguments based on their type

  • T_REG read the register number and store it in arg (if register number is invalid, return st_error
  • T_DIR read from value directly into arg either chunk or short_chunk
  • T_IND read the from arena either chunk or short_chunk into arg