aboutsummaryrefslogtreecommitdiff
path: root/ia32/syscall.sts
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-10-17 03:33:08 +0300
committerexegete <nikitf-97@mail.ru>2020-10-17 03:33:08 +0300
commitb6b9e29c1484c9c8b8af2b382d3a9d796c310217 (patch)
tree531c498be57a6ed4c61035e33dade9d6a18ae755 /ia32/syscall.sts
parent808a161313e0a03ead45f843fee3d9c40bec02bd (diff)
downloadcryptrobber-b6b9e29c1484c9c8b8af2b382d3a9d796c310217.tar
cryptrobber-b6b9e29c1484c9c8b8af2b382d3a9d796c310217.tar.xz
cryptrobber-b6b9e29c1484c9c8b8af2b382d3a9d796c310217.zip
Common dir added, stderr output, minor changes
Diffstat (limited to 'ia32/syscall.sts')
-rw-r--r--ia32/syscall.sts48
1 files changed, 29 insertions, 19 deletions
diff --git a/ia32/syscall.sts b/ia32/syscall.sts
index 92d4d3a..3acfef2 100644
--- a/ia32/syscall.sts
+++ b/ia32/syscall.sts
@@ -1,7 +1,7 @@
defasm sys_exit
- # b8 ?' # 1 ?. ; mov eax, 1
- # 31 ?' # db ?' ; xor ebx, ebx
- # cd ?' # 80 ?' ; int 0x80
+ # b8 ?' # 1 ?. ; mov eax, 1
+ # 31 ?' # db ?' ; xor ebx, ebx
+ # cd ?' # 80 ?' ; int 0x80
; no need in next since this is the last instruction
_data_segment ?choose
@@ -9,23 +9,33 @@ _data_segment ?choose
_code_segment ?choose
defasm sys_read
- # b8 ?' # 3 ?. ; mov eax, 3
- # 31 ?' # db ?' ; xor ebx, ebx
- # b9 ?' _iobuf ?. ; mov ecx, _iobuf
- # ba ?' # 1 ?. ; mov edx, 1
- # cd ?' # 80 ?' ; int 0x80
- # 31 ?' # db ?' ; xor ebx, ebx
- # 8a ?' # 1d ?' _iobuf ?. ; mov bl, [_iobuf]
- # 53 ?' ; push ebx
- # 50 ?' ; push eax
+ # b8 ?' # 3 ?. ; mov eax, 3
+ # 31 ?' # db ?' ; xor ebx, ebx
+ # b9 ?' _iobuf ?. ; mov ecx, _iobuf
+ # ba ?' # 1 ?. ; mov edx, 1
+ # cd ?' # 80 ?' ; int 0x80
+ # 31 ?' # db ?' ; xor ebx, ebx
+ # 8a ?' # 1d ?' _iobuf ?. ; mov bl, [_iobuf]
+ # 53 ?' ; push ebx
+ # 50 ?' ; push eax
next
defasm sys_write
- # 58 ?' ; pop eax
- # a2 ?' _iobuf ?. ; mov [_iobuf], al
- # b8 ?' # 4 ?. ; mov eax, 4
- # bb ?' # 1 ?. ; mov ebx, 1
- # b9 ?' _iobuf ?. ; mov ecx, _iobuf
- # ba ?' # 1 ?. ; mov edx, 1
- # cd ?' # 80 ?' ; int 0x80
+ # 58 ?' ; pop eax
+ # a2 ?' _iobuf ?. ; mov [_iobuf], al
+ # b8 ?' # 4 ?. ; mov eax, 4
+ # bb ?' # 1 ?. ; mov ebx, 1
+ # b9 ?' _iobuf ?. ; mov ecx, _iobuf
+ # ba ?' # 1 ?. ; mov edx, 1
+ # cd ?' # 80 ?' ; int 0x80
+next
+
+defasm sys_write_err
+ # 58 ?' ; pop eax
+ # a2 ?' _iobuf ?. ; mov [_iobuf], al
+ # b8 ?' # 4 ?. ; mov eax, 4
+ # bb ?' # 2 ?. ; mov ebx, 2
+ # b9 ?' _iobuf ?. ; mov ecx, _iobuf
+ # ba ?' # 1 ?. ; mov edx, 1
+ # cd ?' # 80 ?' ; int 0x80
next