flat assembler
Message board for the users of flat assembler.
Index
> Main > TUTO: How to add intrrupt handler in ur code? |
Author |
|
baldr 28 Jul 2012, 11:42
delta67,
Loading ss with mov instruction inhibits all interrupts until after the execution of the next instruction. Common idiom is to follow mov ss, «stack_seg» with mov sp, «stack_off» — to fend off accidental interrupt while its vector is half-initialized). loop instruction checks cx after decrementing it, thus delays can be written as Code: xor cx, cx
loop $ |
|||
28 Jul 2012, 11:42 |
|
delta67 28 Jul 2012, 15:00
baldr wrote:
Thanks baldr for the cool hints ! |
|||
28 Jul 2012, 15:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.