ChangeREG
Written by Stephan Rupprecht
amigaos()stephan-rupprecht.de
WHAT IT IS
ChangeREG is a quick'n'dirty solution to port your programs to OS4
and amiga_compiler.h. It's not fast, it's pretty bad coded but it
gets the job done :-) What it does is to convert function prototypes
with register definitions to the definitions used by AmigaOS4 (see
include file 'amiga_compiler.h' of your SDK).
Example:
void __asm foobar(register __a0 char *a, register __d0 int b)
will be converted to
void ASM foobar(REG(a0, char *a), REG(d0, int b))
The program recognizes the following list of symbols:
__asm, __saveds, __regargs, __stdargs, __REGx(), __REG(x,y),
REG(x), _ax, _dx, register __ax, register __dx
where <x> is a register number.
INVOCATION
The program can only be started from a shell, it takes as first
parameter the source path or file (patterns are allowed) and as
2nd parameter the destination path.
Final words,
use at your own risc ;-)
| |