1
;;; Test 68HC11 linker relaxation and fixup of bcc/bra branches
6
;; Next 'bra' is assembled as a 'jmp'. It is relaxed to 'bra L3'
7
;; during a second pass of relax.
10
;; Next 'jmp' must be relaxed to a 'bra' during the first pass.
11
;; The branch offset must then be adjusted by consecutive relax.
15
bne L1 ; Branch not adjusted
17
beq L1 ; Backward branch, adjust -1
19
jbne L1 ; Backward branch, adjust -2
20
bgt L1 ; All possible backward branchs, adjust -2
39
;; Relax several insn to reduce block by 15
56
jmp _start ; -> relax to bra _start
57
bne L2 ; Backward branch, adjust -1
58
beq L3 ; Forward branch, adjust -2
60
beq L3 ; Forward branch, adjust -1