diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-03-06 12:08:42 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-03-06 12:08:42 -0800 |
commit | c1737cbaae4e0712beff129094aa73d51204f9a7 (patch) | |
tree | 12cf0e1f022a211f594a52354d6516f617a48f19 /apps/survey.subx | |
parent | 4032286f9bb231139b733e5444b862006d3b9119 (diff) | |
download | mu-c1737cbaae4e0712beff129094aa73d51204f9a7.tar.gz |
6083
Diffstat (limited to 'apps/survey.subx')
-rw-r--r-- | apps/survey.subx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/survey.subx b/apps/survey.subx index 488b066f..06f6625d 100644 --- a/apps/survey.subx +++ b/apps/survey.subx @@ -654,7 +654,7 @@ compute-offsets: # in: (addr stream byte), segments: (addr stream {string, segm # if slice-empty?(segment-tmp) # abort # seg = get-or-insert(segments, curr-segment-name) - # seg->starting-address = parse-hex-int(segment-tmp) + # seg->starting-address = parse-hex-int-from-slice(segment-tmp) # seg->file-offset = *file-offset # trace("segment '", curr-segment-name, "' is at file offset ", seg->file-offset) # segment-offset = 0 @@ -987,10 +987,10 @@ $compute-offsets:update-curr-segment-name: 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp # . ebx = eax 89/copy 3/mod/direct 3/rm32/ebx . . . 0/r32/eax . . # copy eax to ebx - # seg->address = parse-hex-int(segment-tmp) - # . eax = parse-hex-int(segment-tmp) + # seg->address = parse-hex-int-from-slice(segment-tmp) + # . eax = parse-hex-int-from-slice(segment-tmp) 68/push compute-offsets:segment-tmp/imm32 - e8/call parse-hex-int/disp32 + e8/call parse-hex-int-from-slice/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp # . seg->address = eax |