precompute command args and opcode