- mov al, 8 ; 8 bytes for each int\r
- mul cl ; cl * al = ax\r
- movzx ecx, ax ; ecx = offset in IDT (1/2 for dword list)\r
- ;;mov [(idt_list+ecx/2)], edi ; add new int to idt entry list\r
- mov dword [(idt_list+ecx)], edi ; add new int to idt entry list\r
+ mov al, 8 ; 8 bytes for each int\r
+ mul cl ; cl * al = ax\r
+ movzx ecx, ax ; ecx = IDT offset\r
+ shr ecx, 1 ; 1/2 for dword list\r
+ mov dword [(idt_list+ecx)], edi ; add to dword int list\r
+ movzx ecx, ax ; ecx = IDT offset\r