An as compatibility issue.
Kernel 2.6.21.5, Slackware 12.0
Hi: I have an old source program. I suppose as is the standard assembler under Linux. Has as any option to make it accept the syntax shown in the following fragments from the source? Fragment 1: Code:
BASE= 170 ;ports 170h-177h Code:
packet_13 DB 0 Code:
get_MSF_field: EDIT: The syntax is for MASM, an old MS-DOS assembler. |
Quote:
My assembler is a little rusty but maybe if you showed the errors people could provide a solution. |
If the code window makes it difficult to read atapi.err please let me know. I can strip off the code, /code tokens.
Code:
semoi@darkstar:~/ata$ head -50 atapi.err |
I read the comment character for i386 is '#'. But this source uses ';' for comments. To change them by hand would be tiresome. To automaticly change them with the editor could replace a semicolon that should not be changed. Anyways there are quite a lot of errors cause by the semicolon.
|
as thought as was using AT&T syntax. I put '.intel_syntax noprefix' and the error count went down from 779 to 564. The MASM syntax is essentially Intel syntax. Namely, it is the same for all CPU (80x86) instructions.
|
All times are GMT -5. The time now is 01:30 AM. |