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
Fillmem.asm - Intellivision Wiki

Fillmem.asm


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
(Examples)
(Source Code)
Line 14: Line 14:
= Notes =
= Notes =
-
= Source Code =
+
6jMGis  <a href="http://wulpntojblce.com/">wulpntojblce</a>, [url=http://oacrfggfvryh.com/]oacrfggfvryh[/url], [link=http://audpiznolnsu.com/]audpiznolnsu[/link], http://tdambiojgveg.com/
-
 
+
-
<pre>
+
-
;* ======================================================================== *;
+
-
;*  These routines are placed into the public domain by their author. All  *;
+
-
;*  copyright rights are hereby relinquished on the routines and data in    *;
+
-
;*  this file.  -- Joseph Zbiciak, 2008                                    *;
+
-
;* ======================================================================== *;
+
-
 
+
-
;; ======================================================================== ;;
+
-
;;  FILLZERO                                                                ;;
+
-
;;      Fills memory with zeros                                            ;;
+
-
;;                                                                          ;;
+
-
;;  FILLMEM                                                                ;;
+
-
;;      Fills memory with a constant                                        ;;
+
-
;;                                                                          ;;
+
-
;;  INPUTS:                                                                 ;;
+
-
;;      R0 -- Fill value (FILLMEM only)                                    ;;
+
-
;;      R1 -- Number of words to fill                                      ;;
+
-
;;      R4 -- Start of fill area                                            ;;
+
-
;;      R5 -- Return address                                                ;;
+
-
;;                                                                          ;;
+
-
;;  OUTPUTS:                                                                ;;
+
-
;;      R0 -- Zeroed if FILLZERO, otherwise untouched.                     ;;
+
-
;;      R1 -- Zeroed                                                        ;;
+
-
;;      R4 -- Points to word after fill area                                ;;
+
-
;; ======================================================================== ;;
+
-
CLRSCR      PROC
+
-
            MVII    #$0F0, R1
+
-
            MVII    #$200,  R4
+
-
FILLZERO    CLRR    R0              ; Start out with R0 zeroed for FILLZERO
+
-
FILLMEM    MVO@    R0,    R4      ; Store R0 out at R4, and move along
+
-
            DECR    R1              ; Keep going until our count runs out
+
-
            BNEQ    FILLMEM
+
-
            JR      R5              ; Return to the caller.
+
-
            ENDP
+
-
 
+
-
;; ======================================================================== ;;
+
-
;;  End of File: fillzero.asm                                              ;;
+
-
;; ======================================================================== ;;
+
-
</pre>
+

Revision as of 02:04, 6 October 2010

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox