I have a problem I want to use assembler interrupts with C but it says
Unhandled exception in 0x009B1F01 in ConsoleApplication3.exe: 0xC0000005: Access violation when reading location 0xFFFFFFFF.
the code is as follows
long random() {
int R = 0;
_asm {
MOV AH, 2CH
INT 21H
MOV AH,DH
MOV R, EAX
}
return R;
}