Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
.data
msg db 'Hello, world$', 0
.code
main:
; Initialize data segment
mov ax, cs
mov ds, ax
mov es, ax
; Initialize the linked list
mov dx, 1
mov [2000h], dx
mov word ptr [2002h], 0
mov word ptr [2004h], 0
mov dx, [2000h]
call print_num
mov dx, 2
mov [2010h], dx
mov word ptr [2012h], 2000h
mov word ptr [2014h], 0
mov word ptr [2004h], 2010h
mov dx, [2010h]
call print_num
mov cx, 3
mov bx, 2010h
add_nodes:
cmp cx, 9
jge end_add
mov dx, cx
lea di, [bx + 10h]
mov [di], dx
mov word ptr [di + 2], bx
mov word ptr [di + 4], 0
mov word ptr [bx + 4], di
mov bx, di
mov dx, [bx]
call print_num
inc cx
jmp add_nodes
end_add:
call print_newline
mov cx, 9
mov bx, di
print_prev:
cmp cx, 0
je end_prev
mov dx, [bx]
call print_num
mov bx, [bx + 2]
dec cx
jmp print_prev
end_prev:
call print_newline
mov cx, 9
mov bx, 2000h
print_next:
cmp cx, 0
je end_next
mov dx, [bx]
call print_num
mov bx, [bx + 4]
dec cx
jmp print_next
end_next:
call print_newline
; Exit to DOS
mov ah, 4Ch
int 21h
print_num proc
pusha
mov cx, 0
print_digit:
xor dx, dx
div word ptr [10]
push dx
inc cx
test ax, ax
jnz print_digit
print_loop:
pop dx
add dl, '0'
mov ah, 02h
int 21h
loop print_loop
popa
ret
print_num endp
print_newline proc
mov ah, 02h
mov dl, 0Dh
int 21h
mov dl, 0Ah
int 21h
ret
print_newline endp
end main
![]() |
Notes.io is a web-based application for 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 12 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