format binary number
This commit is contained in:
parent
4b385cf8f0
commit
6f971cf6c7
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ beep:
|
|||
;; bit 5-4 = access mode (lobyte/hibyte)
|
||||
;; bit 3-1 = operating mode (square wave generator)
|
||||
;; bit 0 = BCD/binary mode (16-bit binary)
|
||||
mov al, 0b10110110
|
||||
mov al, 0b10_11_011_0
|
||||
out PIT_MODECOMMAND_PORT, al ; write to PIT control port
|
||||
|
||||
;; Read byte and convert to a usable frequency
|
||||
|
@ -324,5 +324,5 @@ is_from_virtual_kbd: db 0x00
|
|||
;; Magic number must be in the last 2 bytes of the sector so
|
||||
;; fill the binary with zeroes until it is 510 bytes in size
|
||||
;; (magic number will use up the remaining 2)
|
||||
;times 510 - ($ - $$) db 0
|
||||
times 510 - ($ - $$) db 0
|
||||
dw 0xAA55 ;; Magic number to mark sector as bootable
|
||||
|
|
Loading…
Reference in a new issue