From 44e0b4f666a92fb6a4174501baf7e7fb0ec0f7b2 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Sun, 10 Jan 2021 20:40:18 +0900 Subject: [PATCH] Add shift operations --- planck.xxd | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/planck.xxd b/planck.xxd index 986e350..58297f1 100644 --- a/planck.xxd +++ b/planck.xxd @@ -6,10 +6,10 @@ 00000028: 3400 2000 0100 0000 e_ehsize,e_phentsize,e_phnum,e_shentsize 00000030: 0000 0000 0100 0000 e_shnum,e_shstrndx,p_type=PT_LOAD 00000038: 0000 0000 0080 0408 p_offset,p_vaddr=0x08048000 -00000040: 0000 0000 b803 0000 p_paddr,p_filesz +00000040: 0000 0000 f403 0000 p_paddr,p_filesz 00000048: 0000 2000 0700 0000 p_memsz(128KB),p_flags=PF_X|PF_W|PF_R -00000050: 0010 0000 b883 0408 p_align, -00000058: 8c83 0408 0000 0000 , +00000050: 0010 0000 f483 0408 p_align, +00000058: c883 0408 0000 0000 , 00000060: e480 0408 5c81 0408 key, find 00000068: 8881 0408 3081 0408 execute, jump 00000070: f0ff ffff be60 8004 -16, movl $interpreter, %esi @@ -151,14 +151,26 @@ 00000360: 0f94 c00f b6c0 50ad setl %al; movzbl %al, %eax; pushl %eax; next; 00000368: ff20 0000 0000 0000 -0000036c: 5083 0408 0176 0000 v: argv -00000374: 7883 0408 8b05 5c80 movl sp0,%eax; -0000037c: 0408 89c3 83c3 0453 movl %eax,%ebx; addl $4,%ebx; pushl %ebx -00000384: ff30 adff 2000 0000 pushl (%eax); next; +0000036c: 5083 0408 017b 0000 {: shl +00000374: 7883 0408 5958 d3e0 popl %ecx; popl %eax; shll %cl,%eax +0000037c: 50ad ff20 0000 0000 pushl %eax; next; -0000038c: 6c83 0408 0156 0000 V: implementation -00000394: 9883 0408 68a0 8304 pushl $version -0000039c: 08ad ff20 6861 6e64 next; hand -000003a4: 2d77 7269 7474 656e -written -000003ac: 2069 3338 362d 6c69 i386-li -000003b4: 6e75 7800 nux +00000380: 6c83 0408 017d 0000 }: shr +00000388: 8c83 0408 5958 d3e8 popl %ecx; popl %eax; shrl %cl,%eax +00000390: 50ad ff20 0000 0000 pushl %eax; next; + +00000394: 8083 0408 0129 0000 ): sar +0000039c: a083 0408 5958 d3f8 popl %ecx; popl %eax; sarl %cl,%eax +000003a4: 50ad ff20 0000 0000 pushl %eax; next; + +000003a8: 9483 0408 0176 0000 v: argv +000003b0: b483 0408 8b05 5c80 movl sp0,%eax; +000003b8: 0408 89c3 83c3 0453 movl %eax,%ebx; addl $4,%ebx; pushl %ebx +000003c0: ff30 adff 2000 0000 pushl (%eax); next; + +000003c8: a883 0408 0156 0000 V: implementation +000003d0: d483 0408 68dc 8304 pushl $version +000003d8: 08ad ff20 6861 6e64 next; hand +000003e0: 2d77 7269 7474 656e -written +000003e8: 2069 3338 362d 6c69 i386-li +000003f0: 6e75 7800 nux