Stage0

From bootstrapping
Revision as of 00:46, 20 May 2017 by Rain1 (talk | contribs) (Created page with "== stage0 == This defines .hex language which is simply reading in hex octets and skipping comments. <pre> ## Done 48 c7 c7 00 00 00 00 # mov $0x0,%rdi 48 c7 c0 3c 00 00 00...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

stage0

This defines .hex language which is simply reading in hex octets and skipping comments.

## Done
48 c7 c7 00 00 00 00 # mov $0x0,%rdi
48 c7 c0 3c 00 00 00 # mov $0x3c,%rax
0f 05                # syscall

Example of .hex code from hex0.hex

This maps out an ELF file for linux which implements a compiler for hex (!).