freetimer.s 397 B

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