wrriting outp function in MSVC++
Posted: Wed Nov 12, 2008 6:49 am
hi
I'm try to develop my own os and i try to develop conio library for my os in visual studio 2008. i developed must of importants functions that i need, but i can't write outp and inp functions!!!
where is my wrong in this function?! ( I'm working in protected mode)
void outp(unsigned portid,int value)
{
_asm
{
mov edx,[portid]
mov eax,[value]
out dx,eax
}
}
sorry for my bad english
I'm try to develop my own os and i try to develop conio library for my os in visual studio 2008. i developed must of importants functions that i need, but i can't write outp and inp functions!!!
where is my wrong in this function?! ( I'm working in protected mode)
void outp(unsigned portid,int value)
{
_asm
{
mov edx,[portid]
mov eax,[value]
out dx,eax
}
}
sorry for my bad english