the inline assembler
Walter Bright
newshound at digitalmars.com
Thu Jun 29 17:23:30 PDT 2006
llee wrote:
> In article <e7sa56$3qb$1 at 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.
More information about the Digitalmars-d
mailing list