shahzeb_khan.Marwat-avatar

Program in assembly language

Write a program in assembly language in which the word "Pakistan" display ten times?
0%

1 reply

over 9 years ago
bandhura-avatar
Hi!
  1. %include 'system.inc'
  2. section.data
  3. hello db 'Hello, World!', 0Ah
  4. hbytes equ $-hello
  5. section.text
  6. global _start
  7. _start:
  8. push dword hbytes
  9. push dword hello
  10. push dword stdout
  11. sys.write
  12. push dword 0
  13. sys.exit