MCPcopy Create free account
hub / github.com/djhworld/simple-computer / extractFlagsFrom

Function extractFlagsFrom

asm/parser.go:160–167  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

158}
159
160func extractFlagsFrom(name string) ([]string, error) {
161 tokens := FLAGS_EXTRACTOR.FindStringSubmatch(name)
162 if len(tokens) != 2 {
163 return nil, fmt.Errorf("Could not extract flags from instruction %s", name)
164 }
165
166 return strings.Split(tokens[1], ""), nil
167}
168
169func parseIOInstruction(name string, operands string) (Instruction, error) {
170 arguments := IO_EXTRACTOR.FindStringSubmatch(operands)

Callers 1

parseLabelledJumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected