diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-04 15:53:28 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-15 15:12:50 -0400 |
| commit | 7ba5163f45803debbbc496d2981343a5ffa8a172 (patch) | |
| tree | c251f4ebc5e58a8cc55382cb7a5afc1222e59d16 /python | |
| parent | f0b152f29e3b0da7224ea18a0dfb9892a87660f6 (diff) | |
Separate local variable tokens in higher level ILs from stack variable tokens in lower levels, and improve token usage in disassembly
Diffstat (limited to 'python')
| -rw-r--r-- | python/architecture.py | 1 | ||||
| -rwxr-xr-x | python/examples/export_svg.py | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py index c979eacb..dcc01e4f 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -2795,6 +2795,7 @@ class InstructionTextToken: IntegerToken Integers KeywordToken **Not emitted by architectures** LocalVariableToken **Not emitted by architectures** + StackVariableToken **Not emitted by architectures** NameSpaceSeparatorToken **Not emitted by architectures** NameSpaceToken **Not emitted by architectures** OpcodeToken **Not emitted by architectures** diff --git a/python/examples/export_svg.py b/python/examples/export_svg.py index 4ff2106f..b2965c93 100755 --- a/python/examples/export_svg.py +++ b/python/examples/export_svg.py @@ -195,6 +195,9 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam font-size: 9pt; fill: {rgbStr('TextToken')}; }} + .InstructionToken {{ + fill: {rgbStr('InstructionColor')}; + }} .RegisterToken {{ fill: {rgbStr('RegisterColor')}; }} @@ -208,6 +211,9 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam fill: {rgbStr('DataSymbolColor')}; }} .LocalVariableToken, .ArgumentNameToken {{ + fill: {rgbStr('LocalVariableColor')}; + }} + .StackVariableToken {{ fill: {rgbStr('StackVariableColor')}; }} .IndirectImportToken, .ImportToken, .ExternalSymbolToken {{ @@ -252,7 +258,7 @@ def render_svg(function, offset, mode, form, showOpcodes, showAddresses, orignam .BaseStructureNameToken, .BaseStructureSeparatorToken {{ fill: {rgbStr('BaseStructureNameColor')}; }} - .TextToken, .InstructionToken, .BeginMemoryOperandToken, .EndMemoryOperandToken {{ + .TextToken, .BeginMemoryOperandToken, .EndMemoryOperandToken {{ fill: {rgbStr('TextToken')}; }} </style> |
