== apollo_asm ==

* mouse button test
* run an infinite loop, taking 100% cpu, 
* until mouse button is pressed
* credits pisklak for the code

    clr.l    d0
    move.l   #0,d1
loop
    btst     #6,$bfe001
    beq      exit
    add.b    #60,d1
    cmp.b    #250,d1
    add.l    #1,d0
    bgt      loop
    moveq    #0,d0
exit    rts
  • mouse_button_test.txt
  • Last modified: 2016/08/31 11:31
  • (external edit)