Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!sri-unix!hplabs!cae780!leadsv!eps2!jon From: jon@eps2.UUCP Newsgroups: comp.sys.m68k,comp.lang.c Subject: porting 16-bit int to 32-bit int with asm code Message-ID: <67@eps2.UUCP> Date: Tue, 24-Mar-87 04:06:08 EST Article-I.D.: eps2.67 Posted: Tue Mar 24 04:06:08 1987 Date-Received: Thu, 26-Mar-87 07:20:03 EST Organization: Scumtronics Inc. Lines: 34 Keywords: 10MB of code, assembler syntax Xref: utgpu comp.sys.m68k:279 comp.lang.c:1320 Hello, I may soon have the pleasure of porting about 10MB of code from our current machine to a new machine. 99% of it is in C, and about 1% in 680x0 assembly language. One of the problems I see is that on the old machine ints were 16-bits and on the new machine ints are 32-bits. Well, that's fine in C but in assembly language functions there are a bunch of lines which take function arguments off the stack and put them into registers like: movem 20(a6), d5-d7 which will now have to say: movem.l 20(a6), d5-d7 Also, the stupid assembler syntax is different so it really has to be: moveml a6@(20), d5-57 Has anyone ever had to do something similar? Any advice to offer? I guess I'll use awk, or write a program using lex to convert the asm stuff, even though I'll have to look at all the asm files anyway. Does anyone have a program to do this laying around? Thanks in advance. Bitchin' Camaro! Jonathan Hue Bitchin' Camaro! DuPont Design Technologies - Via Visuals Donuts on your lawn! (c) The Dead Milkmen, 1985 {amdcad!cae780,sun!sunncal}!leadsv!eps2!jon