lucasw / amiga_assembly

Amiga assembly projects for use with Vasm
2 stars 0 forks source link

keyboard/joystick input #3

Open lucasw opened 6 years ago

lucasw commented 6 years ago

Detecting special keys looks easy, but is there an example of reading other keys?

Actually it is easy to detect the first keypress, then it needs to be cleared or otherwise it continues to report as pressed?

lucasw commented 6 years ago

Is there an example in https://github.com/alpine9000/amiga_examples ? No it looks mainly graphics oriented.

lucasw commented 6 years ago

https://groups.google.com/forum/#!topic/comp.sys.amiga.programmer/OPlTYUDbuCc

lucasw commented 6 years ago

https://github.com/keirf/Amiga-Stuff/blob/master/systest/keyboard.c

$bfec01  CIAA serial data register
lucasw commented 6 years ago

http://amiga-dev.wikidot.com/hardware:intenar - look at use of INTENA $dff09a

lucasw commented 6 years ago

Debugging with fs-uae

fs-uae  Documents/FS-UAE/Configurations/fsuae_config.fs-uae --load_state=1 --console_debugger=1

Then F12 d to stop execution and bring up the debugger.

? lists commands

z steps forward, but not clear where in own program it is.

Fork of uae with more useful debugger: http://eab.abime.net/showthread.php?t=82187

Good debugger instructions: http://eab.abime.net/showthread.php?t=70007

have instruction like clr.w $100 before the code you need to debug and use memwatch point to break when $100 is accessed (for example "w 0 100 2")

lucasw commented 6 years ago

Giving up on keyboard, just use joystick for now- the default is that the arrow keys and right alt and ctrl are the joystick 1 (the second joy/mouse).