Actions

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:
maaseh bereshit
+
<pre>
 
+
pushl $42 #l ength
Sh"A O"H 227a, 228a
+
lea output, %eax
berachot 59a, 59b
+
pushl %eax # string address
M"T berachot 10:17[14] etc
+
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 21: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.