Posted by WItekPL Thu 8th Feb 2007 01:24 - Syntax is ASM (NASM based) - 25 views
Download | New Post | Modify | Diff | Hide line numbers
Download | New Post | Modify | Diff | 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
-
wypisz_t:
-
mov ah,09h
-
mov dx,offset napis_t
-
int 21h
-
koniec:
-
mov ax,4c00h
-
int 21h
-
program:
-
mov ax tak_nie
-
cmd ax, 1
-
je call wypisz_t
-
jne call wypisz_n
-
koniec
-
-
napis_t db 'Prawda&'
-
napis_n db 'Fałsz&'
-
tak_nie dd 1
-
-
cseg ends
-
end start
-
-
-
-
-
-
PermaLink to this entry https://pastebin.co.uk/10077
The following amendments have been posted:
Posted by WItekPL Thu 8th Feb 2007 01:24 - Syntax is ASM (NASM based) - 25 views
Download | New Post | Modify | Diff | Hide line numbers
Download | New Post | Modify | Diff | Hide line numbers