Advertisement
Guest User

Untitled

a guest
May 29th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. void init_pic(void)
  2. {
  3. ioport_out(PIC1_COMMAND_PORT, 0x11);
  4. ioport_out(PIC2_COMMAND_PORT, 0x11);
  5. ioport_out(PIC1_DATA_PORT, 0x20);
  6. ioport_out(PIC2_DATA_PORT, 0x28);
  7. ioport_out(PIC1_DATA_PORT, 0x04);
  8. ioport_out(PIC2_DATA_PORT, 0x02);
  9. ioport_out(PIC1_DATA_PORT, 0x01);
  10. ioport_out(PIC2_DATA_PORT, 0x01);
  11. ioport_out(PIC1_DATA_PORT, 0xff);
  12. ioport_out(PIC2_DATA_PORT, 0xff);
  13. ioport_out(PIC1_DATA_PORT, 0xFC);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement