format binary number

This commit is contained in:
Tibo Ulens 2021-10-08 13:59:51 +02:00
parent 4b385cf8f0
commit 6f971cf6c7

View file

@ -174,7 +174,7 @@ beep:
;; bit 5-4 = access mode (lobyte/hibyte) ;; bit 5-4 = access mode (lobyte/hibyte)
;; bit 3-1 = operating mode (square wave generator) ;; bit 3-1 = operating mode (square wave generator)
;; bit 0 = BCD/binary mode (16-bit binary) ;; 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 out PIT_MODECOMMAND_PORT, al ; write to PIT control port
;; Read byte and convert to a usable frequency ;; 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 ;; 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 ;; fill the binary with zeroes until it is 510 bytes in size
;; (magic number will use up the remaining 2) ;; (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 dw 0xAA55 ;; Magic number to mark sector as bootable