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

PermaLink to this entry https://pastebin.co.uk/10080
Posted by WitekPL Thu 8th Feb 2007 01:38 - Syntax is ASM (NASM based) - 15 views
Download | New Post | Modify | Hide line numbers