@@ -22,22 +22,49 @@ org 7C00h
22
22
;Printing text 1
23
23
mov ax , 1301h
24
24
mov bp , message1
25
- mov cx , 12 ; length of the string
26
- mov bl , 05h ; color. 02 - green, 05 - purple
25
+ mov cx , 11 ; length of the string
26
+ mov bl , 02h ; color. 02 - green, 05 - purple
27
27
int 10h
28
28
29
29
;Printing text 2
30
- mov dh , 1 ; moving cursor
30
+ mov dh , 1 ; moving cursor to line 1
31
+ mov ax , 1301h
32
+ mov bp , message2 ; name
33
+ mov cx , 14 ; length of the string
34
+ mov bl , 0Fh ; color
35
+ int 10h
36
+
37
+ ;Printing text 3
38
+ mov dh , 2 ; moving cursor to line 2
39
+ mov ax , 1301h
40
+ mov bp , message3 ; name
41
+ mov cx , 35 ; length of the string
42
+ mov bl , 04h ; color
43
+ int 10h
44
+
45
+ ;Printing text 4 (root)
46
+ mov dh , 3 ; moving cursor to line 3
31
47
mov ax , 1301h
32
- mov bp , message2
33
- mov cx , 32 ; length of the string
34
- mov bl , 05h ; color. 02 - green, 05 - purple
48
+ mov bp , message4 ; name
49
+ mov cx , 12 ; length of the string
50
+ mov bl , 0Fh ; color
35
51
int 10h
36
52
53
+ readInput: ; reading input and writing it to console
54
+ xor ax , ax
55
+ int 16h
56
+ mov ah , 0x0E
57
+ int 10h
58
+
59
+ jmp readInput
37
60
jmp $
38
61
39
- message1 db 'Hello Party!' , 0
40
- message2 db 'Dudnik OS by KitenokObed loaded!' , 0
62
+ message1 db 'Hello Party' , 0
63
+ message2 db 'ObedOS loaded!' , 0
64
+ message3 db ' - github.com/KitenokGene/ObedOS - ' , 0
65
+ message4 db 'root@obed $ ' , 0
41
66
42
67
times 510 - ($ - $$) db 0 ;Filling the remaining bytes with zeros up to the 510th byte
43
- db 0x55 , 0xAA ;Boot Signature
68
+ db 0x55 , 0xAA ;Boot Signature
69
+
70
+ ; text colors are: 0 - black, 1 - blue, 2 - green, 3 - yellow, 4 - red, 5 - purple, 6 - brown, 7 - light gray, 8 - dark gray, 9 - light blue, A - light green, B - light yellow, C - light red, D - light purple, E - light brown, F - White
0 commit comments