]> git.sur5r.net Git - cc65/commitdiff
interruptor is now supported by the runtime
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 26 Oct 2004 19:46:26 +0000 (19:46 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 26 Oct 2004 19:46:26 +0000 (19:46 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3265 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/vic20.sgml
src/ld65/cfg/vic20.cfg

index ff1eaba5b1da06b3ef7b1bf3f5a3a8d24fa809a9..7bea979d171465eb4f86538735fd125d2dc84f5d 100644 (file)
@@ -214,6 +214,14 @@ code:
 </verb></tscreen>
 
 
+<sect1>Interrupts<p>
+
+The runtime for the VIC20 uses routines marked as <tt/.CONDES/ type 2 for
+interrupt handlers. Such routines must be written as simple machine language
+subroutines and will be called automatically by the interrupt handler code
+when they are linked into a program. See the discussion of the <tt/.CONDES/
+feature in the <htmlurl url="ca65.html" name="assembler manual">.
+
 
 
 <sect>Bugs/Feedback<p>
index 4dcae7e678f0bcd67a82f938ab4600d079ccbcde..0c347cc46f100b557b0200538862c98c172add4e 100644 (file)
@@ -20,6 +20,11 @@ FEATURES {
            type = destructor,
            label = __DESTRUCTOR_TABLE__,
            count = __DESTRUCTOR_COUNT__;
+    # condes functions with type 2 are called in the interrupt
+    CONDES: segment = RODATA,
+           type = interruptor,
+           label = __INTERRUPTOR_TABLE__,
+           count = __INTERRUPTOR_COUNT__;
 }
 SYMBOLS {
     __STACKSIZE__ = $400;      # 1K stack