// BinOpHandlerBox - BinOp instruction handler (simplified via CoreHandlerBaseBox)
// Handles: %dst = %lhs op_kind %rhs (Add/Sub/Mul/Div/Mod)

using selfhost.vm.hakorune-vm.core_handler_base as CoreHandlerBaseBox

static box BinOpHandlerBox {
  // Handle binop instruction via unified core handler
  // inst_json: {"op":"binop","dst":3,"op_kind":"Add","lhs":1,"rhs":2}
  // Returns: Result.Ok(0) or Result.Err(message)
  handle(inst_json, regs) { return CoreHandlerBaseBox.handle_core_op("binop", inst_json, regs) }
}
