NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: Silwc on November 29, 2012, 08:32:31 PM

Title: int 15h/86h
Post by: Silwc on November 29, 2012, 08:32:31 PM
Hello, I'm trying to use int 15h/86h interruption to wait, but I get Segmentation fault.
I move 86h into ah, and some numbers into cx and dx. Is there anything else I need to set?
Thanks for any help :)
Title: Re: int 15h/86h
Post by: Frank Kotler on November 29, 2012, 08:59:45 PM
Segmentation fault? What's your OS, Silwc? BIOS interrupts are only available in 16-bit code, of course, but ah, cx, and dx should do it - carry-flag set on error.

Best,
Frank

Title: Re: int 15h/86h
Post by: Silwc on November 29, 2012, 09:20:19 PM
Oh, that clears it up, I was working with 16-bit code, but wanted to test this interruption before putting it in my code and I was using 32-bit code to test it.  :-[
Thank you very much!