
> I've occasionally wished for a compiler that would recognize the
> assembly languages from obsolete architectures, as an alternative
> to the the object-code emulators that seem to be popular. I guess
> it's a bit tricky, though...
Do you mean convert the assembler source for architectures A to machine code for architectures B?
e.g.If so, XCASM can already do thisCode: Select all
Z80 input ld A,(HL) ld B,C PIC output movf z80_reg_L,w movwf FSR bsf STATUS,IRP btfsc z80_reg_H,0 bsf STATUS,IRP movf INDF,w movwf z80_reg_A movf z80_reg_C,w movwf z80_reg_B
XCASM is the meta assembler used by the XCSB compiler and the PIC edition of ZMech.
http://www.xcprod.com/titan/XCSB - optimising PIC compiler LITE edition free for personal non-commercial use