-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopyright.inc
More file actions
32 lines (31 loc) · 831 Bytes
/
copyright.inc
File metadata and controls
32 lines (31 loc) · 831 Bytes
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
31
32
_user_code _copyright
xor eax, eax
mov al, _SYSCALL_ARGCPY
int 030H
cmp dword [_USER_SHELL_ARGUMENT_VIRTUAL], 0H
jz _copyright_start
xor eax, eax
mov al, _SYSCALL_WRITE
mov ebx, _TELETYPE_CURRENT
mov ecx, _copyright_invalid
mov edx, _copyright_invalid.sizeof
int 030H
mov ebx, (not 0H)
jmp _copyright_exit
_copyright_start:
xor eax, eax
mov al, _SYSCALL_WRITE
mov ebx, _TELETYPE_CURRENT
mov ecx, _copyright_display
mov edx, _copyright_display.sizeof
int 030H
xor ebx, ebx
_copyright_exit:
xor eax, eax
mov al, _SYSCALL_EXIT
int 030H
_copyright_display string\
"Copyright achiu-au@42", 00AH,\
"License MIT, this kernel is for educational purpose only", 00AH
_copyright_invalid string "copyright invalid usage", 00AH
end _user_code