Posted by WitekPL Thu 8th Feb 2007 01:38 - Syntax is ASM (NASM based) - 15 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
cseg segment
-
assume cs:cseg, ds:cseg, es:cseg
-
org 100h
-
start:
-
jmp program
-
wypisz_n:
-
mov ah,09h
-
mov dx, offset napis_n
-
int 21h
-
jmp koniec
-
wypisz_t:
-
mov ah,09h
-
mov dx,offset napis_t
-
int 21h
-
jmp koniec
-
koniec:
-
mov ax,4c00h
-
int 21h
-
program:
-
cmp [tak_nie], 1
-
je wypisz_t
-
jmp wypisz_n
-
-
-
napis_t db 'Prawda$'
-
napis_n db 'Fałsz$'
-
tak_nie dw 1
-
-
cseg ends
-
end start
-
-
-
-
-
-
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
Download | New Post | Modify | Hide line numbers