Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
TIMER_DISPLAY PROC
#start=led_display.exe# ;start led
mov di,120 ;120 secondtemp=di
TIMER_DISPLAY ENDP
TIMER PROC
mov ax,di
out 199,ax ;output port 199
; set 1 million microseconds interval (1 second)
mov cx,0fh
mov dx,4240h
mov ah,86h
int 15h ;wait
mov ah,0 ;86h degerini sifirlama
cmp ax,0
mov di,ax
jz STOP ;finish time
dec di ;geri sayim
TIMER ENDP
RAND PROC ; generate a rand no using the system time
RANDSTART:
mov ah, 00h ; interrupts to get system time
int 1ah ; CX:DX now hold number of clock ticks since midnight
mov ax, dx
xor dx, dx
mov cx, 10
div cx ; here dx contains the remainder of the division - from 0 to 9
mov bx, 2000h ; random number is in dl
mov [bx], dl
RAND ENDP
condition1: and dl, 5h
mov cl, [bx]
mov al, dl
mul cl
add al, 5h
mov cl, 5h
div cl ;key1 = ah
mov cl, 0
cmp ah, cl
je LOCK1OPENED ; first if condition
jne TIMER
condition2: mov dl, [bx]
and dl, 5h
mov cl, [bx] ;key2 = cl
or cl, dl
mov al, 0
cmp cl, al ; second if condition
jne LOCK2OPENED
je CLEAR
condition3: mov dl, [bx]
and dl, 5h
mov cl, [bx] ;key3 = dl
add dl, cl
sar dl, 2
mov al, 0
cmp dl, al
jne LOCK3OPENED ; third if condition
je CLEAR
condition4: mov dl, [bx]
and dl, 5h ;key4 = dl
mov cl, [bx]
xor dl, cl
mov al, 0
cmp dl, al ; fourth if condition
jne LOCK4OPENED
je CLEAR
condition5: mov dl, [bx]
and dl, 5h
mov al, [bx] ;key5 = ax
mul dl
mov cx, 0
cmp ax, cx ; fifth if condition
jne LOCK5OPENED
je CLEAR
ret
SCREEN PROC
LOCK1OPENED:
mov dx,offset Lock1
mov ah,09h ;Display String
int 21h
CALL condition2
ret
LOCK2OPENED:
mov dx,offset Lock2
mov ah,09h ;Display String
int 21h
CALL condition3
ret
LOCK3OPENED:
mov dx,offset Lock3
mov ah,09h ;Display String
int 21h
CALL condition4
ret
LOCK4OPENED:
mov dx,offset Lock4
mov ah,09h ;Display String
int 21h
CALL condition5
ret
LOCK5OPENED:
mov dx,offset Lock5
mov ah,09h ;Display String
int 21h
ret
CLEAR: ;clear screen
mov ah,00
mov al,02
int 10h
CALL TIMER
ret
STOP: ;not open locks
mov dx,offset Locked
mov ah,09h ;Display String
int 21h
ret
SCREEN ENDP
Lock1 db " Lock 1 was opened$"
Lock2 db 0ah,0dh," Lock 2 was opened$"
Lock3 db 0ah,0dh," Lock 3 was opened$"
Lock4 db 0ah,0dh," Lock 4 was opened$"
Lock5 db 0ah,0dh," Lock 5 was opened and I AM OUT:)$"
Locked db 0ah,0dh,"I could not open the locks$" ;0ah and 0dh provide new line
;0ah line feed(n),0dh carge return(r)
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team