4711
Extract a helper for appending strings to raw buffers. I'd been resisting this idea, but it actually turns out to be a pretty clean abstraction in the end.
This commit is contained in:
parent
4cc517e0de
commit
b847538071
|
@ -77,94 +77,53 @@ trace: # t : (address trace-stream), line : string
|
||||||
52/push-EDX
|
52/push-EDX
|
||||||
53/push-EBX
|
53/push-EBX
|
||||||
56/push-ESI
|
56/push-ESI
|
||||||
# EAX = t
|
57/push-EDI
|
||||||
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 0/r32/EAX 8/disp8 . # copy *(EBP+8) to EAX
|
# EDI = t
|
||||||
# EBX = line
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 7/r32/EDI 8/disp8 . # copy *(EBP+8) to EDI
|
||||||
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 3/r32/EBX 0xc/disp8 . # copy *(EBP+12) to EBX
|
# ESI = line
|
||||||
# append line to t.data from t.write
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 6/r32/ESI 0xc/disp8 . # copy *(EBP+12) to ESI
|
||||||
#
|
# ECX = t.write
|
||||||
# pseudocode:
|
8b/copy 0/mod/indirect 7/rm32/EDI . . . 1/r32/ECX . . # copy *EDI to ECX
|
||||||
# destend = &t.data[t.length]
|
# EDX = t.length
|
||||||
# oldw = t.write
|
8b/copy 1/mod/*+disp8 7/rm32/EDI . . . 2/r32/EDX 8/disp8 . # copy *(EDI+8) to EDX
|
||||||
# if line.length == 0 return
|
# EAX = _append(&t.data[t.write], &t.data[t.length], line)
|
||||||
# t.write += line.length + 1 # for newline
|
# push line
|
||||||
# dest = &t.data[oldw]
|
56/push-ESI
|
||||||
# srcend = &line.data[line.length]
|
# push &t.data[t.length]
|
||||||
# src = &line.data[0]
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 2/index/EDX . 3/r32/EBX 0xc/disp8 . # copy EDI+EDX+12 to EBX
|
||||||
# while true:
|
53/push-EBX
|
||||||
# if src >= srcend break
|
# push &t.data[t.write]
|
||||||
# if dest >= destend break # for now silently ignore filled up trace buffer
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 1/index/ECX . 3/r32/EBX 0xc/disp8 . # copy EDI+ECX+12 to EBX
|
||||||
# *dest = *src
|
53/push-EBX
|
||||||
# ++src
|
# call
|
||||||
# ++dest
|
e8/call _append/disp32
|
||||||
# if dest >= destend return
|
# discard args
|
||||||
# *dest = 10/newline
|
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP
|
||||||
#
|
# if EAX == 0 return
|
||||||
# key registers to set up for the loop:
|
81 7/subop/compare 3/mod/direct 0/rm32/EAX . . . . . 0/imm32 # compare EDX
|
||||||
# EAX/dest, ECX/destend, EBX/src, ESI/srcend
|
|
||||||
# we save EDX for byte operations (has to be one of the first 4 registers)
|
|
||||||
#
|
|
||||||
# register setup before the loop:
|
|
||||||
# EAX = *(EBP+8) # t
|
|
||||||
# EBX = *(EBP+12) # line
|
|
||||||
# ECX = *(EAX+8) # t.length
|
|
||||||
# ECX = EAX+12+ECX # destend = &t.data[t.length]
|
|
||||||
# ESI = *EAX # oldw = t.write
|
|
||||||
# EDX = *EBX # line.length
|
|
||||||
# *EAX = *EAX + EDX # update t.write (allowed to go past t.length)
|
|
||||||
# # do this here just because it's convenient
|
|
||||||
# ++ *EAX # for the newline
|
|
||||||
# EAX = EAX+12+ESI # dest = &t.data[oldw]
|
|
||||||
# ESI = EBX+4+EDX # srcend = &line.data[line.length]
|
|
||||||
# EBX = EBX+4 # src = &line.data[0]
|
|
||||||
#
|
|
||||||
# EAX/t and EBX/line are already initialized
|
|
||||||
# ECX = t.length
|
|
||||||
8b/copy 1/mod/*+disp8 0/rm32/EAX . . . 1/r32/ECX 8/disp8 . # copy *(EAX+8) to ECX
|
|
||||||
# ECX/destend = &t.data[t.length]
|
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 1/index/ECX . 1/r32/ECX 0xc/disp8 . # copy EAX+ECX+12 to ECX
|
|
||||||
# ESI/oldw = t.write
|
|
||||||
8b/copy 0/mod/indirect 0/rm32/EAX . . . 6/r32/ESI . . # copy *EAX to ESI
|
|
||||||
# EDX = line.length
|
|
||||||
8b/copy 0/mod/indirect 3/rm32/EBX . . . 2/r32/EDX . . # copy *EBX to EDX
|
|
||||||
# if EDX == 0 return
|
|
||||||
81 7/subop/compare 3/mod/direct 2/rm32/EDX . . . . . 0/imm32 # compare EDX
|
|
||||||
74/jump-if-equal $trace:end/disp8
|
74/jump-if-equal $trace:end/disp8
|
||||||
# t.write += line.length
|
# t.write += EAX
|
||||||
01/add 0/mod/indirect 0/rm32/EAX . . . 2/r32/EDX . . # add EDX to *EAX
|
01/add 0/mod/indirect 7/rm32/EDI . . . 0/r32/EAX . . # add EAX to *EDI
|
||||||
# t.write++ (for the newline we'll append below)
|
# refresh ECX = t.write
|
||||||
81 0/subop/add 0/mod/indirect 0/rm32/EAX . . . . . 1/imm32 # add to *EAX
|
8b/copy 0/mod/indirect 7/rm32/EDI . . . 1/r32/ECX . . # copy *EDI to ECX
|
||||||
# EAX/dest = &t.data[oldw]
|
# EAX = _append(&t.data[t.write], &t.data[t.length], line)
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 6/index/ESI . 0/r32/EAX 0xc/disp8 . # copy EAX+ESI+12 to EAX
|
# push line
|
||||||
# ESI/srcend = &line.data[line.length]
|
68/push Newline/imm32
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 3/base/EBX 2/index/EDX . 6/r32/ESI 4/disp8 . # copy EBX+EDX+4 to ESI
|
# push &t.data[t.length]
|
||||||
# EBX/src = &line.data[0]
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 2/index/EDX . 3/r32/EBX 0xc/disp8 . # copy EDI+EDX+12 to EBX
|
||||||
81 0/subop/add 3/mod/direct 3/rm32/EBX . . . . . 4/imm32 # add to EBX
|
53/push-EBX
|
||||||
# while (true)
|
# push &t.data[t.write]
|
||||||
$trace:loop:
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/EDI 1/index/ECX . 3/r32/EBX 0xc/disp8 . # copy EDI+ECX+12 to EBX
|
||||||
# if EBX/src >= ESI/srcend break
|
53/push-EBX
|
||||||
39/compare 3/mod/direct 3/rm32/EBX . . . 6/r32/ESI . . # compare EBX with ESI
|
# call
|
||||||
7d/jump-if-greater-or-equal $trace:break/disp8
|
e8/call _append/disp32
|
||||||
# if EAX/dest >= ECX/destend break (for now silently ignore filled up trace buffer)
|
# discard args
|
||||||
39/compare 3/mod/direct 0/rm32/EAX . . . 1/r32/ECX . . # compare EAX with ECX
|
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP
|
||||||
7d/jump-if-greater-or-equal $trace:break/disp8
|
# t.write += EAX
|
||||||
# copy one byte
|
01/add 0/mod/indirect 7/rm32/EDI . . . 0/r32/EAX . . # add EAX to *EDI
|
||||||
8a/copy-byte 0/mod/indirect 3/rm32/EBX . . . 2/r32/DL . . # copy byte at *EBX to DL
|
|
||||||
88/copy-byte 0/mod/indirect 0/rm32/EAX . . . 2/r32/DL . . # copy byte at DL to *EAX
|
|
||||||
# updates
|
|
||||||
40/increment-EAX
|
|
||||||
43/increment-EBX
|
|
||||||
eb/jump $trace:loop/disp8
|
|
||||||
$trace:break:
|
|
||||||
# finally, append a newline
|
|
||||||
# if EAX/dest >= ECX/destend return
|
|
||||||
39/compare 3/mod/direct 0/rm32/EAX . . . 1/r32/ECX . . # compare EAX with ECX
|
|
||||||
7d/jump-if-greater-or-equal $trace:end/disp8
|
|
||||||
# append
|
|
||||||
ba/copy-to-EDX 0x0a/imm32
|
|
||||||
88/copy-byte 0/mod/indirect 0/rm32/EAX . . . 2/r32/DL . . # copy byte at DL to *EAX
|
|
||||||
$trace:end:
|
$trace:end:
|
||||||
# restore registers
|
# restore registers
|
||||||
|
5f/pop-to-EDI
|
||||||
5e/pop-to-ESI
|
5e/pop-to-ESI
|
||||||
5b/pop-to-EBX
|
5b/pop-to-EBX
|
||||||
5a/pop-to-EDX
|
5a/pop-to-EDX
|
||||||
|
@ -175,6 +134,57 @@ $trace:end:
|
||||||
5d/pop-to-EBP
|
5d/pop-to-EBP
|
||||||
c3/return
|
c3/return
|
||||||
|
|
||||||
|
_append: # out : address, outend : address, s : (array byte) -> num_bytes_appended/EAX
|
||||||
|
# prolog
|
||||||
|
55/push-EBP
|
||||||
|
89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP
|
||||||
|
# save registers
|
||||||
|
51/push-ECX
|
||||||
|
52/push-EDX
|
||||||
|
53/push-EBX
|
||||||
|
56/push-ESI
|
||||||
|
57/push-EDI
|
||||||
|
# EAX/num_bytes_appended = 0
|
||||||
|
b8/copy-to-EAX 0/imm32
|
||||||
|
# EDI = out
|
||||||
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 7/r32/EDI 0x8/disp8 . # copy *(EBP+8) to EDI
|
||||||
|
# EDX = outend
|
||||||
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 2/r32/EDX 0xc/disp8 . # copy *(EBP+12) to EDX
|
||||||
|
# ESI = s
|
||||||
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 6/r32/ESI 0x10/disp8 . # copy *(EBP+16) to ESI
|
||||||
|
# ECX = line.length
|
||||||
|
8b/copy 0/mod/indirect 6/rm32/ESI . . . 1/r32/ECX . . # copy *ESI to ECX
|
||||||
|
# ECX/srcend = &line.data[line.length]
|
||||||
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/ESI 1/index/ECX . 1/r32/ECX 4/disp8 . # copy ESI+ECX+4 to ECX
|
||||||
|
# ESI/src = &line.data[0]
|
||||||
|
81 0/subop/add 3/mod/direct 6/rm32/ESI . . . . . 4/imm32 # add to ESI
|
||||||
|
$_append:loop:
|
||||||
|
# if ESI/src >= ECX/srcend break
|
||||||
|
39/compare 3/mod/direct 6/rm32/ESI . . . 1/r32/ECX . . # compare ESI with ECX
|
||||||
|
7d/jump-if-greater-or-equal $_append:end/disp8
|
||||||
|
# if EDI/out >= EDX/outend break (for now silently ignore filled up trace buffer)
|
||||||
|
39/compare 3/mod/direct 7/rm32/EDI . . . 2/r32/EDX . . # compare EDI with EDX
|
||||||
|
7d/jump-if-greater-or-equal $_append:end/disp8
|
||||||
|
# copy one byte from ESI/src to EDI/out
|
||||||
|
8a/copy-byte 0/mod/indirect 6/rm32/ESI . . . 3/r32/BL . . # copy byte at *ESI to BL
|
||||||
|
88/copy-byte 0/mod/indirect 7/rm32/EDI . . . 3/r32/BL . . # copy byte at BL to *EDI
|
||||||
|
# updates
|
||||||
|
40/increment-EAX
|
||||||
|
46/increment-ESI
|
||||||
|
47/increment-EDI
|
||||||
|
eb/jump $_append:loop/disp8
|
||||||
|
$_append:end:
|
||||||
|
# restore registers
|
||||||
|
5f/pop-to-EDI
|
||||||
|
5e/pop-to-ESI
|
||||||
|
5b/pop-to-EBX
|
||||||
|
5a/pop-to-EDX
|
||||||
|
59/pop-to-ECX
|
||||||
|
# epilog
|
||||||
|
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
|
||||||
|
5d/pop-to-EBP
|
||||||
|
c3/return
|
||||||
|
|
||||||
clear-trace-stream: # t : (address trace-stream)
|
clear-trace-stream: # t : (address trace-stream)
|
||||||
# prolog
|
# prolog
|
||||||
55/push-EBP
|
55/push-EBP
|
||||||
|
|
|
@ -33,7 +33,6 @@ Test-ostream:
|
||||||
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
# 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes
|
||||||
|
|
||||||
# main: (manual test if this is the last file loaded)
|
# main: (manual test if this is the last file loaded)
|
||||||
#? e8/call test-write-appends/disp32
|
|
||||||
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
e8/call run-tests/disp32 # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
|
||||||
# syscall(exit, Num-test-failures)
|
# syscall(exit, Num-test-failures)
|
||||||
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
8b/copy 0/mod/indirect 5/rm32/.disp32 . . 1/r32/EBX Num-test-failures/disp32 # copy *Num-test-failures to EBX
|
||||||
|
@ -44,12 +43,6 @@ write: # f : fd or (address stream), s : (address array byte) -> <void>
|
||||||
# prolog
|
# prolog
|
||||||
55/push-EBP
|
55/push-EBP
|
||||||
89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP
|
89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP
|
||||||
# save registers
|
|
||||||
50/push-EAX
|
|
||||||
51/push-ECX
|
|
||||||
52/push-EDX
|
|
||||||
53/push-EBX
|
|
||||||
56/push-ESI
|
|
||||||
# if (f < 0x08000000) _write(f, s), return # f can't be a user-mode address, so treat it as a kernel file descriptor
|
# if (f < 0x08000000) _write(f, s), return # f can't be a user-mode address, so treat it as a kernel file descriptor
|
||||||
81 7/subop/compare 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 8/disp8 0x08000000/imm32 # compare *(EBP+8)
|
81 7/subop/compare 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 8/disp8 0x08000000/imm32 # compare *(EBP+8)
|
||||||
7f/jump-if-greater $write:else/disp8
|
7f/jump-if-greater $write:else/disp8
|
||||||
|
@ -63,84 +56,38 @@ write: # f : fd or (address stream), s : (address array byte) -> <void>
|
||||||
eb/jump $write:end/disp8
|
eb/jump $write:end/disp8
|
||||||
$write:else:
|
$write:else:
|
||||||
# otherwise, treat 'f' as a stream to append to
|
# otherwise, treat 'f' as a stream to append to
|
||||||
#
|
# save registers
|
||||||
# pseudocode:
|
50/push-EAX
|
||||||
# destend = &f.data[t.length]
|
51/push-ECX
|
||||||
# oldw = f.write
|
52/push-EDX
|
||||||
# if s.length == 0 return
|
53/push-EBX
|
||||||
# f.write += s.length
|
# ECX = f
|
||||||
# dest = &f.data[oldw]
|
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 1/r32/ECX 8/disp8 . # copy *(EBP+8) to ECX
|
||||||
# srcend = &s.data[s.length]
|
# EDX = f.write
|
||||||
# src = &s.data[0]
|
8b/copy 0/mod/indirect 1/rm32/ECX . . . 2/r32/EDX . . # copy *ECX to EDX
|
||||||
# while true:
|
# EBX = f.length
|
||||||
# if src >= srcend break
|
8b/copy 1/mod/*+disp8 1/rm32/ECX . . . 3/r32/EBX 4/disp8 . # copy *(ECX+4) to EBX
|
||||||
# if dest >= destend break # for now silently ignore filled up ostream buffer
|
# EAX = _append(&f.data[f.write], &f.data[f.length], s)
|
||||||
# *dest = *src
|
# push s
|
||||||
# ++src
|
ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12)
|
||||||
# ++dest
|
# push &f.data[f.length]
|
||||||
#
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 1/base/ECX 3/index/EBX . 3/r32/EBX 8/disp8 . # copy ECX+EBX+8 to EBX
|
||||||
# key registers to set up for the loop:
|
53/push-EBX
|
||||||
# EAX/dest, ECX/destend, EBX/src, ESI/srcend
|
# push &f.data[f.write]
|
||||||
# we save EDX for byte operations (has to be one of the first 4 registers)
|
8d/copy-address 1/mod/*+disp8 4/rm32/sib 1/base/ECX 2/index/EDX . 3/r32/EBX 8/disp8 . # copy ECX+EBX+8 to EBX
|
||||||
#
|
53/push-EBX
|
||||||
# register setup before the loop:
|
# call
|
||||||
# EAX = *(EBP+8) # f
|
e8/call _append/disp32
|
||||||
# EBX = *(EBP+12) # s
|
# discard args
|
||||||
# ECX = *(EAX+4) # f.length
|
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP
|
||||||
# ECX = EAX+8+ECX # destend = &f.data[f.length]
|
# f.write += EAX
|
||||||
# ESI = *EAX # oldw = f.write
|
01/add 0/mod/indirect 1/rm32/ECX . . . 0/r32/EAX . . # add EAX to *ECX
|
||||||
# EDX = *EBX # s.length
|
|
||||||
# *EAX = *EAX + EDX # update f.write (allowed to go past f.length)
|
|
||||||
# # do this here just because it's convenient
|
|
||||||
# EAX = EAX+8+ESI # dest = &f.data[oldw]
|
|
||||||
# ESI = EBX+4+EDX # srcend = &s.data[s.length]
|
|
||||||
# EBX = EBX+4 # src = &s.data[0]
|
|
||||||
#
|
|
||||||
# EAX = f
|
|
||||||
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 0/r32/EAX 8/disp8 . # copy *(EBP+8) to EAX
|
|
||||||
# EBX = s
|
|
||||||
8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none 3/r32/EBX 0xc/disp8 . # copy *(EBP+12) to EBX
|
|
||||||
# ECX = f.length
|
|
||||||
8b/copy 1/mod/*+disp8 0/rm32/EAX . . . 1/r32/ECX 4/disp8 . # copy *(EAX+4) to ECX
|
|
||||||
# ECX/destend = &f.data[f.length]
|
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 1/index/ECX . 1/r32/ECX 8/disp8 . # copy EAX+ECX+8 to ECX
|
|
||||||
# ESI/oldw = f.write
|
|
||||||
8b/copy 0/mod/indirect 0/rm32/EAX . . . 6/r32/ESI . . # copy *EAX to ESI
|
|
||||||
# EDX = s.length
|
|
||||||
8b/copy 0/mod/indirect 3/rm32/EBX . . . 2/r32/EDX . . # copy *EBX to EDX
|
|
||||||
# if EDX == 0 return
|
|
||||||
81 7/subop/compare 3/mod/direct 2/rm32/EDX . . . . . 0/imm32 # compare EDX
|
|
||||||
74/jump-if-equal $write:end/disp8
|
|
||||||
# f.write += s.length
|
|
||||||
01/add 0/mod/indirect 0/rm32/EAX . . . 2/r32/EDX . . # add EDX to *EAX
|
|
||||||
# EAX/dest = &f.data[oldw]
|
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 6/index/ESI . 0/r32/EAX 8/disp8 . # copy EAX+ESI+8 to EAX
|
|
||||||
# ESI/srcend = &s.data[s.length]
|
|
||||||
8d/copy-address 1/mod/*+disp8 4/rm32/sib 3/base/EBX 2/index/EDX . 6/r32/ESI 4/disp8 . # copy EBX+EDX+4 to ESI
|
|
||||||
# EBX/src = &s.data[0]
|
|
||||||
81 0/subop/add 3/mod/direct 3/rm32/EBX . . . . . 4/imm32 # add to EBX
|
|
||||||
# while (true)
|
|
||||||
$write:loop:
|
|
||||||
# if EBX/src >= ESI/srcend break
|
|
||||||
39/compare 3/mod/direct 3/rm32/EBX . . . 6/r32/ESI . . # compare EBX with ESI
|
|
||||||
7d/jump-if-greater-or-equal $write:end/disp8
|
|
||||||
# if EAX/dest >= ECX/destend break (for now silently ignore filled up ostream buffer)
|
|
||||||
39/compare 3/mod/direct 0/rm32/EAX . . . 1/r32/ECX . . # compare EAX with ECX
|
|
||||||
7d/jump-if-greater-or-equal $write:end/disp8
|
|
||||||
# copy one byte
|
|
||||||
8a/copy-byte 0/mod/indirect 3/rm32/EBX . . . 2/r32/DL . . # copy byte at *EBX to DL
|
|
||||||
88/copy-byte 0/mod/indirect 0/rm32/EAX . . . 2/r32/DL . . # copy byte at DL to *EAX
|
|
||||||
# updates
|
|
||||||
40/increment-EAX
|
|
||||||
43/increment-EBX
|
|
||||||
eb/jump $write:loop/disp8
|
|
||||||
$write:end:
|
|
||||||
# restore registers
|
# restore registers
|
||||||
5e/pop-to-ESI
|
|
||||||
5b/pop-to-EBX
|
5b/pop-to-EBX
|
||||||
5a/pop-to-EDX
|
5a/pop-to-EDX
|
||||||
59/pop-to-ECX
|
59/pop-to-ECX
|
||||||
58/pop-to-EAX
|
58/pop-to-EAX
|
||||||
|
$write:end:
|
||||||
# epilog
|
# epilog
|
||||||
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
|
89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP
|
||||||
5d/pop-to-EBP
|
5d/pop-to-EBP
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue