Tak povedzme ze mam vypracovane skoro cele zadanie, ale jedno riesenie je s pouzitim NAND a v druhom mam pouzit multiplexory. neviete mi poradit ako na tie multiplexory?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi prspevky Menu.model small
.stack 100
.data ret db 255 dup($)
.code pom db 248 dup($)
citaj: proc
mov ah,01
int 21h
ret
citaj: endp
start: mov ax,@data
modv ds,ax
mov cx,0
vstup: call citaj
mov [POM+CX],ac
cmp al,10
je vypis
cmp cx,246
je vypis
inc cx
jmp vstup
vypis: mov [ret],'c'
mov ax,cx
div 100
add ah,'0'
mov [ret+1],ah
sub ah,ah
div 10
add an,'0'
mov [ret+2],ah
add al,'0'
mov [ret+3],al
mov [ret+4],'>'
mov [ret+5],'<'
bx=0
kopir: mov [ret+6+bx],[pom+bx]
inc bx
cmp cx,bx
jae kopir
mov [ret+6+bx],'>'
mov ah,09
mov dx,offset ret
int 21h
mov ah,4ch
int 21h
end start