2 ; nasm -f bin -o bootcard.img bootcard.asm
3 ; cat bootcard.img >/dev/<usbstick>
18 PIT_CMD_SQWAVE equ 06h
21 %define DIV_ROUND(a, b) ((a) / (b) + ((a) % (b)) / ((b) / 2))
73 mov word [34], timer_intr
75 mov al, PIT_CMD_CHAN2 | PIT_CMD_HILO | PIT_CMD_SQWAVE
77 mov ax, DIV_ROUND(osc_freq, 440)
104 str1: db 'message message blah',0
105 str2: db 'Michael & Athina',0
107 times 446-($-$$) db 0
112 times 510-($-$$) db 0
115 ; vi:ft=nasm ts=8 sts=8 sw=8: