Jump to content

Interrupt Mask Register

- - - - -

  • Please log in to reply
2 replies to this topic

#1
katjaschmidt

katjaschmidt

    Newbie

  • Members
  • Pip
  • 2 posts
Hello

i am trying to mask the interrupt for the system timer in my pc,
using the 21H adress (Interrupt Mask Register) as adress, and sending the OCW1.

However, on none of the computers i ve tried it did work (AMD K6, Pentium 1, AMD Athlon 1400), although they are all IBM compatible.

The code is:
.Stack 100h

.Model Small

.Data

.Code

mov ax,@data

mov ds, ax


in al, 21h

or al, 01h ; masking timer interrupt

out 21h, al


mov ah, 4ch

int 21h

I have no idea why it doesnt work, as the code depicted is the same as in manuals i read,
yet the system timer interrupt is not maskable.

Help would be very much appreciated.

#2
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
Why not just use the CLI instruction to mask interrupts and STI to unmask them?
Latinamne loqueris?

#3
katjaschmidt

katjaschmidt

    Newbie

  • Members
  • Pip
  • 2 posts
Thank you Mebob
i solved the issue few hours ago.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users