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
(Step 3: Displaying the time)
m (Step 4: Go back to step 1)
Line 554: Line 554:
         [[CMP]]    PTIC,  R0      ; Has the time changed?
         [[CMP]]    PTIC,  R0      ; Has the time changed?
         [[BEQ]]    @@wait_time    ; No:  Keep looping
         [[BEQ]]    @@wait_time    ; No:  Keep looping
-
+
 
         ;; Step 2:  Snapshot the time  
         ;; Step 2:  Snapshot the time  
         [[DIS]]                    ; Disable ints (begin critical section)
         [[DIS]]                    ; Disable ints (begin critical section)
Line 566: Line 566:
         [[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 605: Line 605:
Labels are free.  Don't be afraid to add labels if it makes the code clearer.
Labels are free.  Don't be afraid to add labels if it makes the code clearer.
<br/><br/>
<br/><br/>
 +
== Setting Things Up ==
== Setting Things Up ==

Revision as of 20:38, 21 November 2007

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox