xgate1.s 289 B

123456789101112131415161718
  1. ;;; Test branches and branch relocate with XGATE
  2. ;;;
  3. .sect .text
  4. .globl _start
  5. _start:
  6. ldw r1,#var1 ; expands to two IMM8 %hi,%lo relocate
  7. tst r1
  8. beq linked_ad1
  9. tst r2
  10. beq the_end
  11. bra linked_ad2
  12. the_end:
  13. rts
  14. .sect .data
  15. var1: fdb 0x1234