From 03035c98b4ba3297b837e96080e78e0aac1e86db Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Mon, 31 Jan 2022 11:16:38 +0100 Subject: Promene --- include/10.libc/asm.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/10.libc/asm.h') diff --git a/include/10.libc/asm.h b/include/10.libc/asm.h index 9f2a9e6..ee15f00 100644 --- a/include/10.libc/asm.h +++ b/include/10.libc/asm.h @@ -1,9 +1,16 @@ -#ifndef ASM_H -#define ASM_H +#ifndef SOURCE_ASM_H +#define SOURCE_ASM_H #include +#define PIC1_COMMAND_PORT 0x20 +#define PIC1_DATA_PORT 0x21 +#define PIC2_COMMAND_PORT 0xA0 +#define PIC2_DATA_PORT 0xA1 + + extern uint8_t ioport_in(uint8_t port); -extern void ioport_out(uint8_t port, char data); +extern void ioport_out(uint8_t port, int data); + #endif -- cgit v1.2.3