- times 446-($-$$) db 0
- db 80h ; active partition
- db 20h ; start head
- db 21h ; start cylinder
- db 0 ; start sector
- db 0ch ; type
- db 28h ; last head
- db 20h ; last cylinder
- db 08h ; last sector
- dd 00000800h ; first lba
- dd 0001f800h ; number of sectors (lba)
+init_spk:
+ xor ax, ax
+ mov [32], ax
+ mov word [34], timer_intr
+
+ mov al, PIT_CMD_CHAN2 | PIT_CMD_HILO | PIT_CMD_SQWAVE
+ out PIT_CMD, al
+ mov ax, DIV_ROUND(osc_freq, 440)
+ out PIT_DATA2, al
+ mov al, ah
+ out PIT_DATA2, al