MC680x0/851 reassembler
- Size
- 278K (285,178 bytes)
- Added
- 2026-11-20 02:42
- Downloads
- 1
- Long Description
- When I was in need for a portable M68k reassembler I remembered Tim Ruehsen's IRA source, and put some effort into it to make it portable to any architecture and to any compiler. Parts were taken from Ilkka Lehtoranta's MorphOS port of IRA 1.05, who already cleaned the code from all SAS/C dependencies. But most effort was put into making the reassembler endian-independant. HISTORY -- Modifications for V2.00 -- Bug fixes: - ENTRY and OFFSET directives from the config file have been ignored - The BASEADR for base-relative addressing is always a real address now, which is loaded to the base address register, and not an offset. This caused some confusion when the binary's OFFSET is not 0. - MACHINE directive in the config file was emitted multiple times. - Fixed -M option to specifiy the CPU type. - Fixed parsing of RELOC32SHORT hunks. - Better support for raw binary input. - Fixed illegal access when making a label from a ROMtag name, and another one when running with -preproc over code which is not ended by an RTS or similar. New features: - Use BASEREG instead of the PhxAss-specific NEAR directive for base-relative addressing modes. There are more assemblers (including vasm 1.4 and PhxAss) supporting it. - Option -BASEABS. When specified, a label in base-relative addressing mode is written as an absolute label, without the base register name (as with IRA V1.05). The default behaviour now is to write base-relative references as "(label,An)". - Option -BITRANGE. Also recognizes bit-test/manipulation instructions as valid when accessing bits 8-15 in memory (e.g. btst #14,DMACONR). - Config file directive PTRS. Syntax: PTRS <adr1> [<adr2>]. It defines a single address or a range of addresses which contain 32-bit pointers to addresses from the reassembled binary. This directive is especially useful in data sections of a raw binary, which has no relocation information. IRA will create a label for all the pointers in that range. - Config file directive NBAS. Syntax: NBAS <adr1> <adr2>. Defines that the area between <adr1> and <adr2> should not use base-relative addressing modes (e.g. because the base register is used in another way here). IRA will start this area with an "ENDB An", to disable basereg-mode, and reenables base-relative mode with a BASEREG directive afterwards. - I made sure that there is always a valid size extension as instruction suffix and in indirect addressing modes. ".W" was mostly missing before. - Output an ORG directive instead of SECTION when the -binary option had been specified. - Switched from PhxAss specific MACHINE/FPU/PMMU directives to MC680x0/ MC68881/MC68851, which is understood by more assemblers (e.g. vasm, phxass, barfly, snma, etc.). -- Modifications for V2.01 -- Bug fixes: - Call fopen() in binary-mode where appropriate, for Windows support. New features: - " in strings are now encoded as "" by default. To get the PhxAss-specific (and vasm-supported) " encoding, use the new -ESCCODES option. - The string length is limited to 60 bytes, before a new line is started. -- Modifications for V2.02 -- Bug fixes: - Fixed NBAS config directive. Only the entry with the highest address worked. - File buffers for binary and config file name were too small. Extended from 32 to 128 bytes (as source and target file name buffer already were). - An immediate width-field in bitfield instructions showed up as '0' when it should have been '32'. - Multiple MACHINE directives in the config file confused IRA. - Fixed DIVxL.L, DIVx.L and MULx.L. - A new label is defined for the base-address, used in BASEREG. Using a SECSTRT_n-offset is unreliable when optimizing. New features: - New/improved BASEREG handling. The base-relative section specifier (BASESEC) has disappeared. It is sufficient to define base-relative addressing by a base-register and a base-address (e.g. -BASEREG=4,$12340). - New config file directive BASEOFF (also as optional third argument