I Can't Get Interrupts Working: Difference between revisions

→‎FASM notice: Fixed grammar. Also, ISR is an interrupt service routine, IRS are the world's largest collection of bureaucrats.
[unchecked revision][unchecked revision]
(added source tags)
(→‎FASM notice: Fixed grammar. Also, ISR is an interrupt service routine, IRS are the world's largest collection of bureaucrats.)
Line 125:
=== FASM notice ===
 
Since fasm dondoesn't accept the normal way as described Aboveabove, iI will describe it.
Fasm does, however, support shl, and shr, so to describe the higher part of an ISR address, we just use ''label shl 0x10'' where label is the name of the ISR.
so to describe the higher part of a irs address, we just use ''label shl 0x10''
were label are the name of the irs.
To define the higher part, we need to write a little more, since fasm use 64 bit, before compiling.
This means that IF we just shl and shr, it will be that same as before.
This is how we are supposed to do: (label shl 0x30) shr 0x30
Here is a little example, so you can see how it works:
simple, but not like Nasm.
a little example, so you can see how it works:
<source lang="asm">
idt:
Anonymous user