Added buffer to the console
Added hotkeys to switch between console buffers and to return to the home one Added clear screen command Added debug text outputs to the hello command and when loading sh
This commit is contained in:
43
initcode.asm
43
initcode.asm
@ -1,43 +0,0 @@
|
||||
|
||||
initcode.o: file format elf32-i386
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00000000 <start>:
|
||||
|
||||
|
||||
# exec(init, argv)
|
||||
.globl start
|
||||
start:
|
||||
pushl $argv
|
||||
0: 68 24 00 00 00 push $0x24
|
||||
pushl $init
|
||||
5: 68 1c 00 00 00 push $0x1c
|
||||
pushl $0 // where caller pc would be
|
||||
a: 6a 00 push $0x0
|
||||
movl $SYS_exec, %eax
|
||||
c: b8 07 00 00 00 mov $0x7,%eax
|
||||
int $T_SYSCALL
|
||||
11: cd 40 int $0x40
|
||||
|
||||
00000013 <exit>:
|
||||
|
||||
# for(;;) exit();
|
||||
exit:
|
||||
movl $SYS_exit, %eax
|
||||
13: b8 02 00 00 00 mov $0x2,%eax
|
||||
int $T_SYSCALL
|
||||
18: cd 40 int $0x40
|
||||
jmp exit
|
||||
1a: eb f7 jmp 13 <exit>
|
||||
|
||||
0000001c <init>:
|
||||
1c: 2f das
|
||||
1d: 69 6e 69 74 00 00 90 imul $0x90000074,0x69(%esi),%ebp
|
||||
|
||||
00000024 <argv>:
|
||||
24: 1c 00 sbb $0x0,%al
|
||||
26: 00 00 add %al,(%eax)
|
||||
28: 00 00 add %al,(%eax)
|
||||
...
|
Reference in New Issue
Block a user