Author Topic: int 15h/86h  (Read 6868 times)

Offline Silwc

  • Jr. Member
  • *
  • Posts: 3
int 15h/86h
« 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 :)

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: int 15h/86h
« Reply #1 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


Offline Silwc

  • Jr. Member
  • *
  • Posts: 3
Re: int 15h/86h
« Reply #2 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!