Page 1 of 1

interrupt doesn't work

Posted: Thu Feb 07, 2002 12:00 am
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

RE:interrupt doesn't work

Posted: Thu Feb 07, 2002 12:00 am
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? =)

RE:interrupt doesn't work

Posted: Thu Feb 07, 2002 12:00 am
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? =)

RE:interrupt doesn't work

Posted: Fri Feb 08, 2002 12:00 am
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