interrupt doesn't work

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
krillzip

interrupt doesn't work

Post by krillzip »

I have problem with interrupts using inline asm under borland 5.5.
The code I use is this.

int main()
{
asm
{
mov ah, 0x00
mov al, 0x13
int 0x10
}
while(true){}

return 0;
}

It's an example for changing to 320x200,
I compile the code under borland C++ using tasm 5.3. When I run
the code as a dos program under win2000, the program crashes when
it does the interrupt instruction. It works fine if I remark the int line.
Does anybody have a solution on this problem.

Thanx very mush // krillzip
Kernel Panic

RE:interrupt doesn't work

Post by Kernel Panic »

>On 2002-02-07 05:37:28, krillzip wrote:
>Does anybody have a solution on this problem.
Are you sure you link is as a DOS executable? =)
Kernel Panic

RE:interrupt doesn't work

Post by Kernel Panic »

>On 2002-02-07 05:37:28, krillzip wrote:
>Does anybody have a solution on this problem.
Are you sure you link it as a DOS executable? =)
Guest

RE:interrupt doesn't work

Post by Guest »

Hi...The code worked on my NT when I changed the
0x representation to the h representation...
like mov al,13h
int 10h




>On 2002-02-07 05:37:28, krillzip wrote:
>I have problem with interrupts using inline asm under borland 5.5.
>The code I use is this.
>
>int main()
>{
> asm
> {
> mov ah, 0x00
> mov al, 0x13
> int 0x10
> }
> while(true){}
>
> return 0;
>}
>
>It's an example for changing to 320x200,
>I compile the code under borland C++ using tasm 5.3. When I run
>the code as a dos program under win2000, the program crashes when
>it does the interrupt instruction. It works fine if I remark the int line.
>Does anybody have a solution on this problem.
>
>Thanx very mush // krillzip
Post Reply