RE: Line interrupts

2014-01-01 Thread Adrian Brown
Is this in z80 ? From: owner-sam-us...@nvg.ntnu.no [mailto:owner-sam-us...@nvg.ntnu.no] On Behalf Of Andrew Park Sent: 01 January 2014 15:37 To: sam-users@nvg.ntnu.no Subject: Line interrupts Hi all Happy new year lets hope we can see some more sam stuff this year. Any idea how i

RE: Line interrupts

2014-01-01 Thread Andrew Park
Yes im using jam assembler to write the code Thanks Andy From: owner-sam-us...@nvg.ntnu.no [mailto:owner-sam-us...@nvg.ntnu.no] On Behalf Of Adrian Brown Sent: 01 January 2014 15:59 To: sam-users@nvg.ntnu.no Subject: RE: Line interrupts Is this in z80 ? From:

Re: Line interrupts

2014-01-01 Thread Andrew Gillen
Set up an IM2 vector table, use the frame interrupt to set up the first line interrupt (send the line number you want to fire to port $f9), then have your line interrupt routine set up the second time it should trigger by sending the new line number again to port $f9. I do that more or less

Re: Line interrupts

2014-01-01 Thread Balor Price
On 01/01/2014 15:37, Andrew Park wrote: Hi all Happy new year lets hope we can see some more sam stuff this year. Any idea how i can set up a line interrupt routine between 32768 and 65535? I want to change the palette twice once at line 0 and then again on line 128. Many thanks Andy

RE: Line interrupts

2014-01-01 Thread Adrian Brown
I always run with a standard Rom replacement system so use IM mode 1. Stick a JP at $38 and handle the interrupt that way. It depends if you need to use the system ROM, but if you don't always consider running your code as a rom replacement, it also gives you the RST vectors for faster calls for