1 year ago

#249970

test-img

Νίκος Αντωνετσής

Why does interrupt 0x10 works after cli instruction?

I have the following code which I was expecting not to work:

cli
lgdt [gdt_32_descriptor]

mov ah , 0x0e 
mov al , 'f'
int 0x10

I was expecting after using cli instruction, that int 0x10 would not work. Though I normally get an f printed. Does this mean cli didn't clean bios interrupts?

assembly

x86

boot

0 Answers

Your Answer

Accepted video resources