freetimer.s 410 B

12345678910111213141516171819202122232425
  1. .xdef OSVFreeTimer
  2. .text
  3. OSVFreeTimer:
  4. subq.w #1,%d0
  5. cmpi.w #2,%d0
  6. bcc.s .L__timer_ffai
  7. muls.w #12,%d0
  8. move.l 0x74,%a0
  9. cmp.l #132133782,(%a0,-4)
  10. bne.s .L__timer_fok
  11. move.l #-1,-32(%a0,%d0.w)
  12. move.l (%a0,-32),%d0
  13. and.l (%a0,-20),%d0
  14. addq.l #1,%d0
  15. bne.s .L__timer_fok
  16. bclr.b #2,0x600001
  17. move.l (%a0,-8),0x74:w
  18. bset.b #2,0x600001
  19. .L__timer_fok:
  20. moveq #1,%d0
  21. rts
  22. .L__timer_ffai:
  23. clr.w %d0
  24. rts