שאלה
יש לי את התוכנית הבאה:
יש לי את התוכנית הבאה:
#include<windows.h> #include<iostream> using namespace std; void main() { int i, num; long time; cout << "Enter the number of times: "; cin >> num; cout << endl; cout << "Enter the time diffrence: "; cin >> time; cout << endl; for(i=0;i<num;i++) { _asm { mov al,1 mov dx,378h out dx, al } Sleep(time); } cout << "Done" << endl; system("PAUSE"); }
הבעיה היא שקוד האסמבלי לא רץ או לא עושה את מה שהוא צריך מישהו יודע במקרה איך לגרום לזה לפעול? ומצורף אחד השרשורים שהיו בנושא תודה מראש