Posted by deus Thu 8th Feb 2007 01:35 - Syntax is ASM (NASM based) - 15 views
Modification of posting from WItekPL Thu 8th Feb 2007 01:24
Download | New Post | Modify | Diff | Hide line numbers
Modification of posting from WItekPL Thu 8th Feb 2007 01:24
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
-
ret
-
wypisz_t:
-
mov ah,09h
-
mov dx,offset napis_t
-
int 21h
-
ret
-
koniec:
-
mov ax,4c00h
-
int 21h
-
program:
-
cmp [tak_nie], 1
-
jnz zero
-
call wypisz_t
-
jmp koniec
-
zero:
-
call wypisz_n
-
jmp koniec
-
-
napis_t db 'Prawda$'
-
napis_n db 'Falsz$'
-
tak_nie db 1
-
-
cseg ends
-
end start
PermaLink to this entry https://pastebin.co.uk/10078