VOGONS

Common searches


Search results

Display options

bioscom() problem

Hi, I´m having problems with Turbo C´s bioscom() function. It works very well configuring port (cmd 0) and returning status (cmd 3). But I can neither send nor receive bytes. It´s funny because I can send, receive, configure, and read status directly with inportb() and outportb() funtions. Interrupt …

Re: Interrupt functions in C

Thank you so much, wd for making a time to answer. That's by design, there is an exceptional event, the handler is responsible to clear up the situation. I get the interrupt because in a int a/int b, b equals 0. So, adjusting b to 1 before returning from ISR works nice. I´m not doing this in ASM ( …

Interrupt functions in C

Hi all. I´m new here. I use Dosbox to program in Turbo C. Just an old fashion hobby of mine. Recently, I tried to replace an interrupt vector, eg. divide by zero interrupt (INT 0) using getvect() and setvect() with my own code (a printf() message). The problem is when interrupt function returns, …

Page 1 of 1