Difference between revisions of "Temp"
From RonWareWiki
(Replacing page with 'maaseh bereshit Sh"A O"H 227a, 228a berachot 59a, 59b M"T berachot 10:17[14] etc') |
|||
| Line 1: | Line 1: | ||
| − | + | <pre> | |
| − | + | pushl $42 #l ength | |
| − | + | lea output, %eax | |
| − | + | pushl %eax # string address | |
| − | + | pushl $1 # file descriptor number | |
| + | mov $4,%eax # system call number | ||
| + | push %eax | ||
| + | int $0x80 # make the system call | ||
| + | </pre> | ||
| + | You can see mach/i386/syscall_sw.h for the different software interrupts available, and sys/syscall.h for the different system call numbers. | ||
Revision as of 19:12, 21 April 2009
pushl $42 #l ength lea output, %eax pushl %eax # string address pushl $1 # file descriptor number mov $4,%eax # system call number push %eax int $0x80 # make the system call
You can see mach/i386/syscall_sw.h for the different software interrupts available, and sys/syscall.h for the different system call numbers.