컴파일할 때 자꾸 에러가 나서 그러는데요.
제가 인라인 어셈블리는 전혀 몰라서 해결이 안되네요. 좀 도와주세요.
16bit 프로그램을 32bit 프로그램으로 업그레이드 하는 과정에서 생기는 에러 같은데요.ㅠㅜ
Info :Transferring to E:\10. Borland C++ Projects\20090205\TASM32.EXE @C:\Users\YOUNGT~1\AppData\Local\Temp\RSP0.$$$
Fatal: Could not locate: TASM32.EXE
1. could not locate:TASM32.EXE를 해결해야 할 듯한데요.ㅠㅜ
TASM 5.0을 인터넷에서 구해서 깔아서 TASM32.EXE 파일을 얻긴했는데, Borland C++ 5.02 프로그램에서 어떻게 해야하는지를 모르겠습니다.
현재 상황은 윈도우 98에 Borland C++5.02를 깔았네요.
2. 이 소스를 32비트 소스로 바꾸려면 어떻게 해야하나요?
--------------------------------------------------------------------------------------------------
port.cpp 파일
--------------------------------------------------------------------------------------------------
#include
#include
#include "port.h"
void Setport(unsigned short address, short value)
{
__asm {
mov DX, [address] ;
mov AX, [value] ;
out DX,AX ;
};
}
void Setportb(unsigned short address, char value)
{
__asm {
mov DX, [address] ;
mov AL, [value] ;
out DX,AL ;
};
}
unsigned char Readportb(unsigned short address)
{
unsigned char bvalue;
bvalue = 0;
__asm{
mov DX, [address] ;
in AL, DX ;
mov bvalue, AL ;
};
return bvalue;
}
short Readport(unsigned short address)
{
short bvalue;
bvalue = 0;
__asm{
mov DX, [address] ;
in AX, DX ;
mov bvalue, AX ;
};
return bvalue;
}
--------------------------------------------------------------------------------------------------
port.h 파일
--------------------------------------------------------------------------------------------------
unsigned char _cdecl Readportb(unsigned short);
short _cdecl Readport(unsigned short);
void _cdecl Setport(unsigned short,short);
void _cdecl Setportb(unsigned short,char);
--------------------------------------------------------------------------------------------------