68080 asm: Mouse button test

* 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

You are here: start » apollo_core » code_samples » mouse_button_test

Last modified: le 2019/11/23 09:12