home *** CD-ROM | disk | FTP | other *** search
/ Black Art of 3D Game Programming / Black_Art_of_3D_Game_Programming.iso / source / borland / chap_17 / qset.lst < prev    next >
Encoding:
File List  |  1995-05-25  |  2.1 KB  |  74 lines

  1. Turbo Assembler     Version 4.0        05/26/95 02:23:22        Page 1
  2. qset.asm
  3.  
  4.  
  5.  
  6.       1
  7.       2                     ; this    function fills a region    of memory using    32 bit stores
  8.       3
  9.       4        0000             .MODEL    MEDIUM             ; use medium memory model C function names
  10.       5
  11.       6                     .386
  12.       7
  13.       8        0000             .CODE                 ; begin the code segment
  14.       9
  15.      10                     PUBLIC    _fquadset          ; export function name to linker
  16.      11
  17.      12        0000             _fquadset PROC
  18.      13
  19.      14                     ARG dest:DWORD, data:DWORD, count:DWORD
  20.      15
  21.      16        0000  55             push bp     ; create the stack frame
  22.      17        0001  8B EC             mov bp,sp
  23.      18        0003  57             push di     ; save    this just in case
  24.      19
  25.      20        0004  FC             cld         ; clear the direction of movement
  26.      21
  27.      22        0005  C4 7E    06         les di, dest     ; point es:di at destination
  28.      23        0008  66| 8B 4E 0E         mov ecx, count     ; move    into ecx number    of quads
  29.      24        000C  66| 8B 46 0A         mov eax, data     ; move    the data into eax
  30.      25        0010  F3> 66| AB         rep stosd     ; fill    the region with    data
  31.      26
  32.      27        0013  5F             pop di         ; restore di
  33.      28        0014  5D             pop bp         ; fixup stack
  34.      29
  35.      30        0015  CB             ret         ; return to caller
  36.      31
  37.      32        0016             _fquadset ENDP
  38.      33
  39.      34                     END
  40. Turbo Assembler     Version 4.0        05/26/95 02:23:22        Page 2
  41. Symbol Table
  42.  
  43.  
  44.  
  45.  
  46. Symbol Name              Type     Value
  47.  
  48. ??date                  Text     "05/26/95"
  49. ??filename              Text     "qset      "
  50. ??time                  Text     "02:23:22"
  51. ??version              Number 0400
  52. @32Bit                  Text     0
  53. @CodeSize              Text     1
  54. @Cpu                  Text     0F0FH
  55. @DataSize              Text     0
  56. @FileName              Text     qset
  57. @Interface              Text     00h
  58. @Model                  Text     4
  59. @WordSize              Text     2
  60. @code                  Text     qset_TEXT
  61. @curseg                  Text     qset_TEXT
  62. @data                  Text     DGROUP
  63. @stack                  Text     DGROUP
  64. _fquadset              Far     qset_TEXT:0000
  65. count                  Number [DGROUP:BP+000E]
  66. data                  Number [DGROUP:BP+000A]
  67. dest                  Number [DGROUP:BP+0006]
  68.  
  69. Groups & Segments          Bit Size Align  Combine Class
  70.  
  71. DGROUP                  Group
  72.   _DATA                  16  0000 Word      Public  DATA
  73. qset_TEXT              16  0016 Word      Public  CODE
  74.