This commit is contained in:
Kartik Agaram 2019-07-07 07:54:04 -07:00
parent 764b5726df
commit 633c289f30
1 changed files with 8 additions and 7 deletions

View File

@ -1066,13 +1066,14 @@ $compute-addresses:end:
c3/return
test-compute-addresses:
# segments:
# - 'a': {0x1000, 0, 5}
# - 'b': {0x2018, 5, 1}
# - 'c': {0x5444, 6, 12}
# labels:
# - 'l1': {'a', 3, 0}
# - 'l2': {'b', 0, 0}
# input:
# segments:
# - 'a': {0x1000, 0, 5}
# - 'b': {0x2018, 5, 1}
# - 'c': {0x5444, 6, 12}
# labels:
# - 'l1': {'a', 3, 0}
# - 'l2': {'b', 0, 0}
#
# trace contains in any order (comments in parens):
# segment 'a' starts at address 0x00001094. (0x34 + 0x20 for each segment)