Skip to content

Commit e996106

Browse files
committed
Fixed strcmp and print functions
1 parent fe58a2b commit e996106

File tree

14 files changed

+26
-27
lines changed

14 files changed

+26
-27
lines changed

OS.iso

0 Bytes
Binary file not shown.

build/OS.bin

24 Bytes
Binary file not shown.

build/full_kernel.bin

24 Bytes
Binary file not shown.

build/full_kernel.elf

260 Bytes
Binary file not shown.

build/kernel.o

64 Bytes
Binary file not shown.

build/output.c.o

4 Bytes
Binary file not shown.

build/vga_text_driver.c.o

-20 Bytes
Binary file not shown.

debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
i386-elf-ld -o build/full_kernel.elf -Ttext 0x1000 build/*.o
2-
qemu-system-i386 -s -S build/OS.bin & i386-elf-gdb -ex "target remote localhost:1234" -ex "symbol-file build/full_kernel.elf"
2+
qemu-system-i386 -s -S -cdrom OS.iso & i386-elf-gdb -ex "target remote localhost:1234" -ex "symbol-file build/full_kernel.elf"

iso/floppy.img

0 Bytes
Binary file not shown.

kernel/drivers/vga_text_driver.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ uint16_t vga_struct(const char _char, color_t _color)
3636

3737
coords get_cursor_position(uint16_t _offset)
3838
{
39-
coords pos = {
40-
_offset % VGA_WIDTH,
41-
_offset / VGA_WIDTH
39+
return (coords){
40+
_offset % VGA_WIDTH, // X coordinate
41+
_offset / VGA_WIDTH // Y coordinate
4242
};
43-
return pos;
4443
}

0 commit comments

Comments
 (0)