Skip to content

Commit d52647d

Browse files
authored
v0.02 update added
1 parent bf4f658 commit d52647d

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

boot.ASM

+36-9
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,49 @@ org 7C00h
2222
;Printing text 1
2323
mov ax, 1301h
2424
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
2727
int 10h
2828

2929
;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
3147
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
3551
int 10h
3652

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
3760
jmp $
3861

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
4166

4267
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

Comments
 (0)