MCPcopy Create free account
hub / github.com/cvut/qtrvsim / code_from_string

Method code_from_string

src/machine/instruction.cpp:1465–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1463 return 4;
1464}
1465size_t Instruction::code_from_string(
1466 uint32_t *code,
1467 size_t buffsize,
1468 QString str,
1469 Address inst_addr,
1470 RelocExpressionList *reloc,
1471 const QString &filename,
1472 unsigned line,
1473 bool pseudoinst_enabled) {
1474 auto inst = TokenizedInstruction::from_line(std::move(str), inst_addr, filename, line);
1475 return Instruction::code_from_tokens(code, buffsize, inst, reloc, pseudoinst_enabled);
1476}
1477
1478Instruction::ParseError::ParseError(QString message) : message(std::move(message)) {}
1479

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected