mirror of
https://github.com/nineties/planckforth
synced 2024-12-26 21:58:42 +01:00
Add shift operations
This commit is contained in:
parent
72766e46c5
commit
44e0b4f666
1 changed files with 25 additions and 13 deletions
38
planck.xxd
38
planck.xxd
|
@ -6,10 +6,10 @@
|
||||||
00000028: 3400 2000 0100 0000 e_ehsize,e_phentsize,e_phnum,e_shentsize
|
00000028: 3400 2000 0100 0000 e_ehsize,e_phentsize,e_phnum,e_shentsize
|
||||||
00000030: 0000 0000 0100 0000 e_shnum,e_shstrndx,<phdr>p_type=PT_LOAD
|
00000030: 0000 0000 0100 0000 e_shnum,e_shstrndx,<phdr>p_type=PT_LOAD
|
||||||
00000038: 0000 0000 0080 0408 p_offset,p_vaddr=0x08048000
|
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
|
00000048: 0000 2000 0700 0000 p_memsz(128KB),p_flags=PF_X|PF_W|PF_R
|
||||||
00000050: 0010 0000 b883 0408 p_align, <here>
|
00000050: 0010 0000 f483 0408 p_align, <here>
|
||||||
00000058: 8c83 0408 0000 0000 <latest:init="V">, <sp0>
|
00000058: c883 0408 0000 0000 <latest:init="V">, <sp0>
|
||||||
00000060: e480 0408 5c81 0408 <interpreter>key, find
|
00000060: e480 0408 5c81 0408 <interpreter>key, find
|
||||||
00000068: 8881 0408 3081 0408 execute, jump
|
00000068: 8881 0408 3081 0408 execute, jump
|
||||||
00000070: f0ff ffff be60 8004 -16, movl $interpreter, %esi
|
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;
|
00000360: 0f94 c00f b6c0 50ad setl %al; movzbl %al, %eax; pushl %eax; next;
|
||||||
00000368: ff20 0000 0000 0000
|
00000368: ff20 0000 0000 0000
|
||||||
|
|
||||||
0000036c: 5083 0408 0176 0000 v: argv
|
0000036c: 5083 0408 017b 0000 {: shl
|
||||||
00000374: 7883 0408 8b05 5c80 movl sp0,%eax;
|
00000374: 7883 0408 5958 d3e0 popl %ecx; popl %eax; shll %cl,%eax
|
||||||
0000037c: 0408 89c3 83c3 0453 movl %eax,%ebx; addl $4,%ebx; pushl %ebx
|
0000037c: 50ad ff20 0000 0000 pushl %eax; next;
|
||||||
00000384: ff30 adff 2000 0000 pushl (%eax); next;
|
|
||||||
|
|
||||||
0000038c: 6c83 0408 0156 0000 V: implementation
|
00000380: 6c83 0408 017d 0000 }: shr
|
||||||
00000394: 9883 0408 68a0 8304 pushl $version
|
00000388: 8c83 0408 5958 d3e8 popl %ecx; popl %eax; shrl %cl,%eax
|
||||||
0000039c: 08ad ff20 6861 6e64 next; <version>hand
|
00000390: 50ad ff20 0000 0000 pushl %eax; next;
|
||||||
000003a4: 2d77 7269 7474 656e -written
|
|
||||||
000003ac: 2069 3338 362d 6c69 i386-li
|
00000394: 8083 0408 0129 0000 ): sar
|
||||||
000003b4: 6e75 7800 nux
|
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; <version>hand
|
||||||
|
000003e0: 2d77 7269 7474 656e -written
|
||||||
|
000003e8: 2069 3338 362d 6c69 i386-li
|
||||||
|
000003f0: 6e75 7800 nux
|
||||||
|
|
Loading…
Reference in a new issue