Posted by WItekPL Thu 8th Feb 2007 01:24 - Syntax is ASM (NASM based) - 25 views
Download | New Post | Modify | Diff | Hide line numbers
  1.  
  2. cseg segment
  3. assume cs:cseg, ds:cseg, es:cseg
  4. org 100h
  5. start:
  6. jmp program
  7. wypisz_n:
  8.   mov ah,09h
  9.   mov dx, offset napis_n
  10.   int 21h
  11. wypisz_t:
  12.   mov ah,09h
  13.   mov dx,offset napis_t
  14.   int 21h       
  15. koniec:
  16.   mov ax,4c00h 
  17.   int 21h
  18. program:
  19.   mov ax tak_nie
  20.   cmd ax, 1
  21.   je call wypisz_t
  22.   jne call wypisz_n
  23.   koniec
  24.  
  25. napis_t db 'Prawda&'
  26. napis_n db 'Fałsz&'
  27. tak_nie dd 1
  28.  
  29. cseg ends
  30. end start
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  

PermaLink to this entry https://pastebin.co.uk/10077

The following amendments have been posted:

  1. WitekPL (Thu 8th Feb 2007 01:36)
  2. deus (Thu 8th Feb 2007 01:35)
Posted by WItekPL Thu 8th Feb 2007 01:24 - Syntax is ASM (NASM based) - 25 views
Download | New Post | Modify | Diff | Hide line numbers