June 30, 2006 Re: the inline assembler | ||||
---|---|---|---|---|
| ||||
Posted in reply to llee | llee wrote:
> In article <e7sa56$3qb$1@digitaldaemon.com>, Frits van Bommel says...
>> This should compile:
>>
>> void main()
>> {
>> long interrupt_code;
>> asm
>> {
>> mov AH, interrupt_code ;
>> int 0x21 ;
>> }
>> }
>>
> The same error results.
I tried it, and it compiles correctly. However, it won't run because Win32 programs cannot execute interrupt instructions.
|
Copyright © 1999-2021 by the D Language Foundation