[PATCH]: Fix gas to handle 68HC12 call and indexed addressing modes

Stephane Carrez stcarrez@nerim.fr
Tue Aug 13 14:40:00 GMT 2002


Hi!

This patch fixes the assembling of call instructions for 68HC12.  We now generate
the appropriate relocs (24-bit for page+address).  It also fix indexed addressing
modes (the indirect addressing was incorrect).

Commited on mainline.

	Stephane

2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>

	* config/tc-m68hc11.c (md_begin): Take into account additional
	page operand for call instruction.
	(print_opcode_format): Likewise.
	(check_range): Likewise for page range checking.
	(get_operand): Don't skip a possible comma in operands.
	(fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
	(fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
	(fixup24): New to handle call reloc.
	(build_insn): Handle missing page operand for call instruction.
	(find): Likewise.
	(md_apply_fix3): Take into account new relocs.
	(get_operand): Fix the mode for indexed indirect addressing.
	(build_indexed_byte): Fix post index byte for indexed indirect mode.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tc-m68hc11.c.diffs
URL: <https://sourceware.org/pipermail/binutils/attachments/20020813/8ed036a9/attachment.ksh>


More information about the Binutils mailing list