Why is the interrupt in the VC? ?

zhaozj2021-02-16  80

Why is the interrupt in the VC? ? Just like the following procedure:

Class window {public: int active; virtual void textout (int);};

Void window :: textout (int x) {_ASM {Mov ESI, this Mov Edx, [ESI] this.active MOV AH, 02H INT 21H}}

Void main () {window1; window1.active = 07; window1.textout (0);}

There is also a problem, is it only 32-bit registers in VC, such as EAX; can you use 16 bits? If you can, can you give an example?

转载请注明原文地址:https://www.9cbs.com/read-15760.html

New Post(0)