This commit is contained in:
Kartik Agaram 2018-11-17 20:45:22 -08:00
parent 95decf9f34
commit 267fd885b2
3 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ write: # f : fd or (address stream), s : (address array byte) -> bytes_written/
89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP
# 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)
7f/jump-if-greater $write:fake/disp8
7d/jump-if-greater-or-equal $write:fake/disp8
# push args
ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 0xc/disp8 . # push *(EBP+12)
ff 6/subop/push 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . . 8/disp8 . # push *(EBP+8)

Binary file not shown.

Binary file not shown.