From 1ede6ca979fdc1dcc48ac1484fb4c5f7ef3cfe38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 5 Dec 2005 08:17:18 +0000 Subject: [PATCH] feat: gestion du PNP et de l'ISA/EISA --- programs/isa.asm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 programs/isa.asm diff --git a/programs/isa.asm b/programs/isa.asm new file mode 100644 index 0000000..2d50ab9 --- /dev/null +++ b/programs/isa.asm @@ -0,0 +1,39 @@ +.model tiny +.486 +smart +.code + +org 0100h + +start: + +PNP_ADR_PORT equ 0x279 +PNP_WRITE_PORT equ 0xA79 +;MIN and MAX READ_ADDR must have the bottom two bits set +MIN_READ_ADDR equ 0x203 +MAX_READ_ADDR equ 0x3FF +;READ_ADDR_STEP must be a multiple of 4 +READ_ADDR_STEP equ 8 + +;bits +CONFIG_WAIT_FOR_KEY equ 0x02 +CONFIG_RESET_CSN equ 0x04 +IDENT_LEN equ 9 + +;renvoie le timer en ax +ctc: + cli + mov dx,043h + mov al,0 + out dx,al + mov dx,40h + in al,dx + mov ah,al + in al,dx + sti + ret + +;attend pendant ax microsecondes +usleep: + +end start