File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ void ata_sys_disk_init() {
1616void ata_sys_disk_read (uint32_t lba , uint8_t * buffer ) {
1717 ata_wait_busy ();
1818
19- outb (ATA_DRIVE_SELECT , 0x0E | ((lba >> 24 ) & 0x0F )); // Select drive and set LBA bits 24-27
20- outb (ATA_SECTOR_COUNT , 1 ); // Read one sector
19+ outb (ATA_DRIVE_SELECT , 0x0E | ((lba >> 24 ) & 0x0F ));
20+ outb (ATA_SECTOR_COUNT , 1 );
2121
2222 outb (ATA_LBA_LOW , (uint8_t )(lba ));
2323 outb (ATA_LBA_MID , (uint8_t )(lba >> 8 ));
@@ -36,8 +36,8 @@ void ata_sys_disk_read(uint32_t lba, uint8_t* buffer) {
3636void ata_sys_disk_write (uint32_t lba , const uint8_t * buffer ) {
3737 ata_wait_busy ();
3838
39- outb (ATA_DRIVE_SELECT , 0x0E | ((lba >> 24 ) & 0x0F )); // Select drive and set LBA bits 24-27
40- outb (ATA_SECTOR_COUNT , 1 ); // Write one sector
39+ outb (ATA_DRIVE_SELECT , 0x0E | ((lba >> 24 ) & 0x0F ));
40+ outb (ATA_SECTOR_COUNT , 1 );
4141
4242 outb (ATA_LBA_LOW , (uint8_t )(lba ));
4343 outb (ATA_LBA_MID , (uint8_t )(lba >> 8 ));
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ void vga_clear_screen(const char *mode) {
1616 cx = 0 ;
1717 cy = 0 ;
1818 } else if (mode [0 ] == 'C' ) {
19- for (int y = 1 ; y < VHEIGHT - 1 ; y ++ ) { // 0 = üst bar, VHEIGHT-1 = alt bar
19+ for (int y = 1 ; y < VHEIGHT - 1 ; y ++ ) {
2020 for (int x = 0 ; x < VWIDTH ; x ++ ) {
21- vgabuffer [y * VWIDTH + x ] = VGA_ENTRY (' ' , txt_color ); // standart arkaplan ve yazı rengi
21+ vgabuffer [y * VWIDTH + x ] = VGA_ENTRY (' ' , txt_color );
2222 }
2323 }
2424 cx = 0 ;
You can’t perform that action at this time.
0 commit comments