home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / TASMSWAN.ZIP / TABLE.ASM < prev    next >
Assembly Source File  |  1989-07-17  |  485b  |  30 lines

  1. %TITLE  "Table processing Demo"
  2.  
  3.     IDEAL
  4.     DOSSEG
  5.     MODEL    small
  6.     STACK    256
  7.  
  8.     DATASEG
  9. ;-----------------------------------------------------------------------
  10. ; indices       0,1,2,3, 4, 5, 6, 7, 8, 9
  11. ;-----------------------------------------------------------------------
  12. table    db    0,1,4,9,16,25,36,49,64,81
  13.  
  14.     CODESEG
  15.  
  16. Start:
  17.     mov    ax,@data
  18.     mov    ds,ax
  19.     mov    bx,offset table
  20.     mov    cx,9
  21. @@10:
  22.     mov    al,cl
  23.     xlat
  24.     loop    @@10
  25. Exit:
  26.     mov    ax,04C00h
  27.     int    21h
  28.  
  29.     END    Start
  30.