21 October 2021, 20:03 | #1 |
Registered User
Join Date: Feb 2018
Location: Northumberland, UK
Posts: 272
|
CIA interrupt for reading keyboard
Hey!
I'm busy implementing some code to read keypresses via a Level2 interrupt, which roughly follows the code from this example: https://github.com/Sakura-IT/Amiga-p...merAndScreen.s Everything works great, I can read the keypresses just fine however when my program quits and returns to the CLI, the prompt doesn't appear and keyboard entry obviously no longer works. Has anyone got any ideas why installing this interrupt would cause a problem like this? Shout if you need some example code and I'll put something together. Cheers, Daniel |
21 October 2021, 21:13 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Please post an exe, maybe is a tiny careless mistake
|
21 October 2021, 21:29 | #3 |
German Translator
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 183
|
in my short test, the program works
A1200 configuration, with asmone >r, pass1, pass2 >a, wo prg then in shell >prg a black screen opens, now you can leave the program with 'ESC' the cursor is now standing behind the prompt |
21 October 2021, 22:33 | #4 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 828
|
Ooo it's my piece of code .
As ross said perhaps there is a mistake. Hm.... Perhaps I should restore cia registers first and then restore PORTS int (in code is opposite). |
21 October 2021, 23:40 | #5 |
Registered User
Join Date: Feb 2018
Location: Northumberland, UK
Posts: 272
|
Your wish is my command ross:
Robocop Obviously AGA only. Should run as-is. Press ESC key to quit (and freeze). Thanks. Yeah, no doubt I've missed something really simple here as it works for the most part! |
22 October 2021, 00:13 | #6 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
22 October 2021, 00:21 | #7 | |
Registered User
Join Date: Feb 2018
Location: Northumberland, UK
Posts: 272
|
Quote:
Thanks for pointing that out, nice spot and all fixed now! Thanks to Asman for the original code, and to Rock'n Roll for testing that original code too! Now I can go and enjoy a glass of beer! Cheers guys! |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CIA or vertical blank/copper interrupt for playing music in an intro? | pushead | Coders. Asm / Hardware | 25 | 24 April 2021 11:40 |
Keyboard interrupt hang | Muzza | Coders. Asm / Hardware | 15 | 28 January 2021 14:58 |
CIA periodic interrupt | jotd | Coders. Asm / Hardware | 12 | 02 January 2021 21:22 |
example of a CIA timer interrupt in assembler using cia.resource | Apollo | Coders. Asm / Hardware | 3 | 05 July 2013 08:40 |
CIA timer interrupt handler called twice during mod playback | absence | Coders. General | 5 | 16 March 2009 18:55 |
|
|