A.D.A. Amiga Demoscene Archive

        Welcome guest!

  

  

  

log in with SceneID

  

Demos Amiga Demoscene Archive Forum / Coding / multiple mouse clicks

 

Author Message
windrago
Member
#1 - Posted: 5 Oct 2018 03:46
Reply Quote
Hello there,

I am learning my way through Amiga assembler.
I want to "watch the changes in the registries as I make changes. Basically every time I click the left mouse button, it does something, I look at the registries and then so forth until the rts is met.

Unfortunately, it detects one click and ignores the others. It seems that right after the first detection how to clear something, but what/how I don't know. Any help would unblock my learning!

Code:
step1:

btst #6,$bfe001
bne step1

; make the first change to the registry
movea.l #$00000039,a0

step2:
btst #6,$bfe001
bne step2

move.b #$44,(a0)

step3:
btst #6,$bfe001
bne step3

move.b #$9B,$04(a0)

rts

Setup:
Asm One 1.18
FS-UAE
macOS
noname
Member
#2 - Posted: 7 Oct 2018 10:27
Reply Quote
It just runs through. If you really wanted to go this way, also check for release of mousebutton.

Better, yet, use the debugger (ad) without all that mouse stuff.
windrago
Member
#3 - Posted: 9 Oct 2018 03:37 - Edited
Reply Quote
thank you for the lead.
ad was exactly what I was looking for!
noname
Member
#4 - Posted: 9 Oct 2018 17:27 - Edited
Reply Quote
Great :)

Also Asm-One 1.02 Manual

 

  Please log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0