From: anonymous c. <nas...@ya...> - 2005-03-15 20:43:32
|
> 1: *Strage Linking Problem* I'm not a Linux/GCC expert. But in the first case your code becomes start(), whereas in the second case it becomes main(). So have you looked at what start() does in the second case? (Try objdump.) > 2: *Strange Syntax Error* > [...] > in edx,[ebp+4] > mov eax,dx > [...] > out [ebp+4],[ebp+8] > > If I try to assemble it I get this: > > io.s:7: error: invalid combination of opcode and operands Correct. The IN operands are restricted/fixed. Take a look at Intel/AMD's reference manuals. > io.s:8: error: invalid combination of opcode and operands Correct. The operands either need to be of the same size, or you need to use MOVSX or MOVZX. > io.s:18: error: invalid combination of opcode and operands Correct. The OUT operands are restricted/fixed. Take a look at Intel/AMD's reference manuals. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |