Files
x86-bare-metal-examples/test_pit_sleep_ticks.S
2019-07-19 00:00:00 +00:00

21 lines
356 B
ArmAsm

/* https://github.com/cirosantilli/x86-bare-metal-examples#pit_sleep_ticks */
#include "common.h"
BEGIN
IVT_PIT_SETUP
PIT_GENERATE_FREQUENCY
PIT_SET_FREQ 1000
sti
loop:
PUTC $'a
PUTC $'\n
PIT_SLEEP_TICKS $500
jmp loop
PIT_SLEEP_TICKS_GLOBALS
handler:
cli
PIT_SLEEP_TICKS_HANDLER_UPDATE
PIC_EOI
sti
iret