-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathum.S
32 lines (27 loc) · 1.03 KB
/
um.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*****************************************************************************/
/* File: um.S */
/* */
/* Description: Usermode code. */
/* */
/* Author: Shoily O Rahman <[email protected]> */
/* */
/* Date: Jun 20, 2021 */
/* */
/*****************************************************************************/
.code32
.text
.globl _um_start
_um_start:
push %ebp
mov %esp,%ebp
sub $0x4,%esp
movl $0x1,-0x4(%ebp)
loop:
int $0x80
mov -0x4(%ebp),%eax
inc %eax
mov %eax,-0x4(%ebp)
jmp loop
nop
leave
ret