Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722
Introducing Interrupts - Intellivision Wiki

Introducing Interrupts


Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/content/30/6867330/html/intellivision/wiki/includes/MagicWord.php on line 722
From Intellivision Wiki

Jump to: navigation, search
(The Wait Code)
m (Protected "Introducing Interrupts" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
Line 709: Line 709:
and INCLUDE directives for all of the library functions.  This particular
and INCLUDE directives for all of the library functions.  This particular
example needs  
example needs  
-
<CODE>[http://sdk-1600.spatula-city.org/examples/library/fillmem.asm fillmem.asm]</CODE>  
+
<CODE>[[fillmem.asm]]</CODE>  
and  
and  
-
<CODE>[http://sdk-1600.spatula-city.org/examples/library/prnum16.asm prnum16.asm]</CODE> from SDK-1600.  Download these files and put them in a directory.
+
<CODE>[[prnum16.asm]]</CODE> from SDK-1600.  Download these files and put them in a directory.
Then put the following source code in a new file named <CODE>elapsed.asm</CODE>
Then put the following source code in a new file named <CODE>elapsed.asm</CODE>
in the same directory.  This source code contains all of the snippets from
in the same directory.  This source code contains all of the snippets from
Line 982: Line 982:
as we did previously in the [[Hello World Tutorial]].  We'll also use the  
as we did previously in the [[Hello World Tutorial]].  We'll also use the  
an infinite loop.  We'll reuse [http://sdk-1600.spatula-city.org/ SDK-1600's]
an infinite loop.  We'll reuse [http://sdk-1600.spatula-city.org/ SDK-1600's]
-
[http://sdk-1600.spatula-city.org/examples/library/print.asm PRINT] and [http://sdk-1600.spatula-city.org/examples/library/fillmem.asm CLRSCR]
+
[[print.asm|PRINT]] and [[fillmem.asm|CLRSCR]]
functions.  This results in the following code:
functions.  This results in the following code:
Line 1,026: Line 1,026:
The source listing below puts all the fragments above into a complete program.
The source listing below puts all the fragments above into a complete program.
Mainly, this just adds the cartridge header, the <CODE>INCLUDE</CODE>
Mainly, this just adds the cartridge header, the <CODE>INCLUDE</CODE>
-
directives to include  
+
directives to include [[print.asm]] and [[fillmem.asm]]
-
[http://sdk-1600.spatula-city.org/examples/library/print.asm print.asm] and
+
-
[http://sdk-1600.spatula-city.org/examples/library/fillmem.asm fillmem.asm]
+
from SDK-1600, and assigns <CODE>WTIMER</CODE> a location in 8-bit memory.   
from SDK-1600, and assigns <CODE>WTIMER</CODE> a location in 8-bit memory.   
The bold portions are the new portions.
The bold portions are the new portions.

Latest revision as of 08:42, 4 December 2010

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox