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_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(): 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
m (Step 4: Go back to step 1)
(Putting it All Together)
Line 725: Line 725:
   
   
  <B>
  <B>
-
 
         ROMW    16      ; 16-bit ROM
         ROMW    16      ; 16-bit ROM
         ORG    $5000  ; Standard ROM memory map starts at $5000
         ORG    $5000  ; Standard ROM memory map starts at $5000
-
 
+
  ;----------------------------------------------------------------------------
  ;----------------------------------------------------------------------------
  ; EXEC-friendly ROM header.
  ; EXEC-friendly ROM header.
Line 744: Line 743:
  ONES:  DECLE  1, 1, 1, 1, 1  ; Color stack initialization
  ONES:  DECLE  1, 1, 1, 1, 1  ; Color stack initialization
  ;----------------------------------------------------------------------------
  ;----------------------------------------------------------------------------
-
 
+
  TITLE  STRING  $107, "Timer Demo", 0  ; Title string and date (2007)
  TITLE  STRING  $107, "Timer Demo", 0  ; Title string and date (2007)
   
   
Line 778: Line 777:
         [[MVI]]    HOUR,  R0      ; Read hours count
         [[MVI]]    HOUR,  R0      ; Read hours count
         [[EIS]]                    ; Enable ints (end critical section)
         [[EIS]]                    ; Enable ints (end critical section)
-
 
+
         ;; Step 3:  Display the updated time
         ;; Step 3:  Display the updated time
         [[MVII]]    #2,    R2      ; Set our field width to 2
         [[MVII]]    #2,    R2      ; Set our field width to 2
         [[MVII]]    #7,    R3      ; Set our format word to "white"
         [[MVII]]    #7,    R3      ; Set our format word to "white"
         [[MVII]]    #$200 + 5*20 + 5, R4    ; Start in row 5, column 5
         [[MVII]]    #$200 + 5*20 + 5, R4    ; Start in row 5, column 5
-
 
+
         [[CALL]]    PRNUM16.z      ; Display the hours
         [[CALL]]    PRNUM16.z      ; Display the hours
         [[INCR]]    R4              ; Leave a blank space after hours
         [[INCR]]    R4              ; Leave a blank space after hours
-
 
+
         [[PULR]]    R0              ; Get minutes
         [[PULR]]    R0              ; Get minutes
         [[CALL]]    PRNUM16.z      ; Display the minutes
         [[CALL]]    PRNUM16.z      ; Display the minutes
Line 860: Line 859:
and the rest of the code to update the displayed time. Wash, rinse, repeat.
and the rest of the code to update the displayed time. Wash, rinse, repeat.
<br/><br/>
<br/><br/>
-
 
== Further Things to Contemplate ==
== Further Things to Contemplate ==

Revision as of 20:40, 21 November 2007

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox