How to print stuff from an array in assembly.


/ Published in: Assembler
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.