movw.s 293 B

12345678910111213
  1. ;;; Bug. movw used R_M68HC12_16B which was 1 byte misaligned.
  2. .sect .text
  3. .globl _start
  4. _start:
  5. start:
  6. movw gp_max_on,x, gp_clk,x
  7. movw 0x22,sp, gp_clk,y
  8. movw gp_clk,x, 0x12,sp
  9. movw 0x1001,x, 0x2002,y
  10. movw small_off,sp, gp_max_on,y
  11. tfr x,y
  12. rts