简体   繁体   中英

int 21 equivalent in C++ windows XP

Interrupts are not working in inline-assembler of C++(i tried VC++ 10, GCC 4, Digital Mars). Is there any interrupt-equivalent windows free-to-access memory areas? How can i reach system properties and video ram?(can i?)

These i would like to know:

mov ah,06h
mov dl,35h 
int 21f    //would print '5' on screen but it isnt (works in only pure assembler)

and:

mov ax,1500h
mov ch,97h
int 2f   //would get me info for the cache-hit number on DI:SI

Thank you

Win32 applications don't call interrupts, they call system services. There's a number of assembly for Windows tutorials on Iczelion's page .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM