2 ; nasm -f bin -o bootcard.img bootcard.asm
3 ; cat bootcard.img >/dev/<usbstick>
21 PIT_CMD_SQWAVE equ 06h
24 %define DIV_ROUND(a, b) ((a) / (b) + ((a) % (b)) / ((b) / 2))
44 mov al, (PIT_CMD_CHAN0 + (%1 << 6)) | PIT_CMD_HILO | PIT_CMD_SQWAVE
47 out PIT_DATA0 + %1, al
49 out PIT_DATA0 + %1, al
59 mov word [32], timer_intr
62 settimer 0, DIV_ROUND(osc_freq, 250)
112 mov ax, [music + 2 + bx] ; grab timeout
127 str1: db 'message message blah',0
128 str2: db 'Michael & Athina',0
141 times 446-($-$$) db 0
146 times 510-($-$$) db 0
149 ; vi:ft=nasm ts=8 sts=8 sw=8: