author | Tony Garnock-Jones <tonygarnockjones@gmail.com> |
Wed, 16 Jan 2019 17:15:58 +0000 | |
changeset 438 | 1fe179d53161 |
parent 324 | aaedb3bcc2ea |
permissions | -rw-r--r-- |
324
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
1 |
# Based on the teachings of http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html |
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
2 |
# and the content of https://developer.apple.com/library/mac/#documentation/developertools/conceptual/MachORuntime/Reference/reference.html |
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
3 |
|
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
4 |
origin: |
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
5 |
machoheader: |
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
6 |
.long 0xfeedfacf # MH_MAGIC_64 |
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
7 |
|
aaedb3bcc2ea
Experiments with x86_64 syscalls from assembler on OS X 10.6.
Tony Garnock-Jones <tonygarnockjones@gmail.com>
parents:
diff
changeset
|
8 |
// Totally unfinished, so far. See tiny_osx.S. |