flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > .. |
Author |
|
pool 11 Jan 2008, 05:22
..
Last edited by pool on 17 Mar 2013, 11:42; edited 1 time in total |
|||
11 Jan 2008, 05:22 |
|
LocoDelAssembly 11 Jan 2008, 06:25
masking as masking bits or what?
|
|||
11 Jan 2008, 06:25 |
|
shoorick 11 Jan 2008, 09:55
interrupts?
|
|||
11 Jan 2008, 09:55 |
|
edfed 11 Jan 2008, 11:32
the mask? with jim carrey?
|
|||
11 Jan 2008, 11:32 |
|
pool 17 Jan 2008, 10:53
..
Last edited by pool on 17 Mar 2013, 11:42; edited 1 time in total |
|||
17 Jan 2008, 10:53 |
|
dosin 17 Jan 2008, 18:30
http://neworder.box.sk/news/6876
This site may help.. Code: remap_pic: mov al, 0x11 ;; INIT command out 0x20, al ;; Send the INIT command to PIC1 call io_delay ;; Delays after IO reads out 0xA0, al ;; Send the INIT command to PIC2 call io_delay mov al, 0x20 ;; The start of the PIC1 interrupts out 0x21, al ;; Send the port to PIC1 DATA call io_delay mov al, 0x28 ;; The start of the PIC2 interrupts out 0xA1, al ;; Send the port to PIC2 DATA call io_delay mov al, 0x04 ;; Set the code for MASTER out 0x21, al ;; Set PIC1 as master call io_delay mov al, 0x02 ;; Set the code for SLAVE out 0xA1, al call io_delay mov al, 0x01 ;; 8086 mode code out 0x21, al call io_delay out 0xA1, al call io_delay mov al, 0xFB ;; This masks off all IRQs except the cascaded out 0x21, al call io_delay mov al, 0xFF ;; Masks off all IRQs on PIC2 out 0xA1, al call io_delay ret io_delay: jmp $+2 ret This is from that site - follow the link and it will give you a better description of what is going on in the above code.. |
|||
17 Jan 2008, 18:30 |
|
zhak 18 Jan 2008, 20:54
it's written that a software delay must be implemented when accessing i/o ports in the artictle at http://neworder.box.sk/news/6876. but i've read that this delay is not needed on modern PCs. so should there be any delays or not? my question corresponds to any i/o ports (keyboard, rtc, ide... etc) not only PIC ports.
|
|||
18 Jan 2008, 20:54 |
|
edfed 18 Jan 2008, 21:27
delayed version need to be used, because of compativility for older PCs.
but, in some years, it will be endless. the delay can be ignored cause of instructions beetwen two IO instructions. |
|||
18 Jan 2008, 21:27 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.