home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities / codemaker / CodeMaker / Exemples / !Exemple0 / s / ScreUtils < prev   
Text File  |  1992-12-19  |  2KB  |  56 lines

  1. ;------------------------------------------------------------------------------
  2. ;        CodeMaker !Exemple0 : ScreUtils
  3. ;        Frank Lyonnet 1992 
  4. ;        You can contact me on internet : lyonnet@ufrima.imag.fr .
  5. ;                                         lyonnet@imag.fr .
  6. ;                        on french RTEL : bal ARCHETYPE .
  7. ;                               by mail : Frank Lyonnet
  8. ;                                         420 , Chemin de la Cassine
  9. ;                                         73000 Chambéry
  10. ;                                         France      
  11. ;------------------------------------------------------------------------------
  12.  
  13.                 GET     h.RegNames
  14.                 AREA    |C$$code|, CODE, READONLY
  15.                 EXPORT  |clear_screen13|
  16.  
  17. ;------------------------------------------------------------------------------
  18. ;       clear_screen13
  19. ;------------------------------------------------------------------------------
  20. ;       First param : pointer to screen area  
  21. ;------------------------------------------------------------------------------
  22.  
  23. Cs_HeaderStart  DCB     "clear_screen13",0
  24.                 ALIGN
  25. Cs_HeaderEnd    DCD     &ff000000+Cs_HeaderEnd-Cs_HeaderStart
  26.  
  27. |clear_screen13| 
  28.                 STMFD   r13!,{r4-r9,r10,r11,r14}
  29.  
  30.                 MOV     r1,#0
  31.                 MOV     r2,#0
  32.                 MOV     r3,#0
  33.                 MOV     r4,#0
  34.                 MOV     r5,#0
  35.                 MOV     r6,#0
  36.                 MOV     r7,#0
  37.                 MOV     r8,#0
  38.                 MOV     r9,#0
  39.                 MOV     r10,#0
  40.  
  41.                 GBLA    Ligne
  42. Ligne           SETA    1
  43.                 WHILE   Ligne<=2048
  44.         
  45.                 STMIA  r0!,{r1-r10}
  46.  
  47. Ligne           SETA    Ligne+1
  48.  
  49.                 WEND 
  50.  
  51.                 LDMFD   r13!,{r4-r9,r10,r11,pc}^
  52.  
  53.                 END
  54.  
  55.