samira3
10-05-2009, 17:01
با سلام
من برنامه دارم که سی واسمبلی داره
اون چه طوری اجرا بگیرم خودم با پروژه و tccسعی کردم اگه کسی بلده بهم کمک کنه
این اسمبلی
.model small
.data
.code
public _sot
_sot proc far
push bp
mov bp,sp
mov al,0b6h
out 43h,al
mov ax ,word ptr[bp+04]
out 42h,al
mov al,ah
out 42h,al
or al,00000011b
out 61h,al
_sot endp
end
ای سی
#include <iostream.h>
#include <conio.h>
#include <dos.h>
extern void near sot(int);
int main(void)
{
clrscr();
int x,y;
cout<<"inter ferkanc:";
cin>>x;
y=(1.19*1000*1002.6)/x;
sot(y);
delay(500);
asm {
and al,11111100b
out 61h,al
}
return 0;
}
من برنامه دارم که سی واسمبلی داره
اون چه طوری اجرا بگیرم خودم با پروژه و tccسعی کردم اگه کسی بلده بهم کمک کنه
این اسمبلی
.model small
.data
.code
public _sot
_sot proc far
push bp
mov bp,sp
mov al,0b6h
out 43h,al
mov ax ,word ptr[bp+04]
out 42h,al
mov al,ah
out 42h,al
or al,00000011b
out 61h,al
_sot endp
end
ای سی
#include <iostream.h>
#include <conio.h>
#include <dos.h>
extern void near sot(int);
int main(void)
{
clrscr();
int x,y;
cout<<"inter ferkanc:";
cin>>x;
y=(1.19*1000*1002.6)/x;
sot(y);
delay(500);
asm {
and al,11111100b
out 61h,al
}
return 0;
}