mirror of
https://github.com/nineties/planckforth
synced 2024-12-26 21:58:42 +01:00
Add "C"
This commit is contained in:
parent
f3a5a180dc
commit
c683f98fd4
2 changed files with 13 additions and 9 deletions
|
@ -6,6 +6,7 @@ $ make
|
|||
|
||||
# Builtin Words
|
||||
|
||||
| char | semantics |
|
||||
|:----:|:------------------:|
|
||||
| Q | Exit the process |
|
||||
| char | semantics |
|
||||
|:----:|:-------------------------:|
|
||||
| Q | ( -- ) Exit the process |
|
||||
| C | ( -- n ) Size of Cells |
|
||||
|
|
15
planck.xxd
15
planck.xxd
|
@ -6,14 +6,17 @@
|
|||
00000028: 3400 2000 0100 0000 e_ehsize,e_phentsize,e_phnum,e_shentsize
|
||||
00000030: 0000 0000 0100 0000 e_shnum,e_shstrndx,<phdr> PT_LOAD
|
||||
00000038: 0000 0000 0080 0408 p_offset,p_vaddr=0x08048000
|
||||
00000040: 0000 0000 9500 0000 p_paddr,p_filesz
|
||||
00000040: 0000 0000 1001 0000 p_paddr,p_filesz
|
||||
00000048: 0000 0008 0700 0000 p_memsz(128MB),PF_X|PF_W|PF_R
|
||||
00000050: 0010 0000 0000 0000 p_align, <segment>(54: here)
|
||||
00000058: 0000 0000 8880 0408 (58: latest) <interpreter>(5c: key)
|
||||
00000060: 0000 0000 0000 0000 (60: find) (64: execute)
|
||||
00000050: 0010 0000 0000 0000 p_align, <here>
|
||||
00000058: 0000 0000 0081 0408 <latest>, <interpreter>(5c: key)
|
||||
00000060: 8880 0408 0000 0000 (60: find) (64: execute)
|
||||
00000068: 0000 0000 f0ff ffff (68: jump) (6c: -16)
|
||||
00000070: be5c 8004 08bd 0080 (70: movl $interpreter,%esi) (75: movl $0x10048000,%ebp)
|
||||
00000078: 0410 adff 2000 0000 (7a: next)
|
||||
00000080: 0000 0000 0151 0000 "Q"
|
||||
00000080: 0000 0000 0151 0000 "Q" quit
|
||||
00000088: 8c80 0408 31db b801 xorl %ebx,%ebx; mov $SYS_EXIT,%eax;
|
||||
00000090: 0000 00cd 80 int $0x80
|
||||
00000090: 0000 00cd 8000 0000 int $0x80
|
||||
00000098: 8080 0408 0143 0000 "C" cellsize
|
||||
00000100: 0481 0408 6804 0000 pushl $4
|
||||
00000108: 00ad ff20 0000 0000 next
|
||||
|
|
Loading…
Reference in a new issue