Posted By

trusktr on 11/29/10


Tagged

arrays Assembly MASM


Versions (?)

How to print stuff from an array in assembly.


 / Published in: Assembler
 

  1. ;
  2. mov di, 0 ;reset counter
  3. print_array1:
  4. mov ax, [int_arr+di] ;print dec from array at position DI
  5. call putdec$
  6. inc di
  7. cmp di, 100
  8. jb print_array1
  9.  
  10. call newline
  11. call newline

Report this snippet  

You need to login to post a comment.