Bug #5926
closed
Support of char strings in syntax format and trace
Added by Mikhail Chupilko almost 9 years ago.
Updated almost 9 years ago.
Assignee:
Andrei Tatarnikov
Published in build:
150522
Description
Char strings are not supported in NML specifications. It is impossible to write mnemonics of operators like LSL, RSL and so on instead of their correspondent values 0, 1, etc. ARM assembler requires exactly mnemonics..
- Status changed from New to Open
- % Done changed from 0 to 30
Partial fix: r3646. Now constructs like this are supported:
syntax = format("xxx %s %s", "yyyy", "zzzz")
Then I will try to support conditions.
- Status changed from Open to Resolved
- % Done changed from 30 to 100
r3647 - supported the ternary "if" operator for strings in format statements. That is, now constructs like this are supported:
format("xxx %s %s", if HI == LO then "yyyy" else "DDDD" endif, "zzzz")
NOTE: Nesting of 'if' constructs and using arguments other than strings is not allowed for string-based conditional statements. Other use cases than this one are not supported yet.
Does this work for you? Is this enough to accomplish your task?
Or do you need "elif" statements and more complex conditions to be supported too?
- Status changed from Resolved to Open
OK. Wait. I know how to improve this further to make more flexible. Tomorrow.
Improved r3648. See if this works for you. Nesting is supported.
- Status changed from Open to Resolved
- Status changed from Resolved to New
Thanks. Nested "if" constructs are the most desirable. I checked the latest version of the tool: unfortunately, the nesting seems to be not supported yet.
- Status changed from New to Resolved
Supported elif
constructs: r3650. Please check if it works fine now.
- Status changed from Resolved to Closed
- Published in build set to 150522
Also available in: Atom
PDF