11-08-2009, 02:52 AM
11-08-2009, 03:24 AM
Code:
segment dataseg data
alphabet db 'abcdefghijklmnopqrstuvwxyzABCDEFGHICJKLMNOPQRSTUVWXYZ)!,:$ '
message resb 29
sequence db 45, 17, 4, 19, 0, 13, 58, 17, 14, 3, 4, 13, 3, 0, 13, 55, 58, 29, 14, 12, 0, 6, 14, 9, 54, 58, 56, 53, 57
segment codeseg code
...
congratulate:
mov cx, 0
.loop
mov bx, sequence
add bx, cx
mov dx, 0
mov dl, [bx]
mov bx, alphabet
add bx, dx
mov dl, [bx]
mov bx, message
add bx, cx
mov [bx], dl
inc cx
cmp cx, 29
jne .loop
mov dx, message
mov ah, 9h
int 21h
ret
...
.mainloop:
call congratulate
cmp word [pressesc], 1
jne .mainloop
.exit:
...Output (for the less geeky
):[attachment=2192]
11-08-2009, 03:05 PM
Zoltan:
Sretan ti rodjendan Domagoj!
Zelim ti puno uspeha u studiranju i u utrkama! Zdravlja i srece takodjer!
Veia:
Happy birthday Domagoj!
Have a nice day and do something special!
Sretan ti rodjendan Domagoj!

Zelim ti puno uspeha u studiranju i u utrkama! Zdravlja i srece takodjer!

Veia:
Happy birthday Domagoj!

Have a nice day and do something special!

11-08-2009, 05:02 PM
Congratulations Domagoj!
Have a nice day!
Have a nice day!
11-08-2009, 06:05 PM
Hope it's a great Birthday!
Quarter Century - Oh Boy!
Quarter Century - Oh Boy!
11-08-2009, 09:07 PM
Happy birthday Domagoj
11-08-2009, 09:59 PM
Happy Birthday Domagoj, have fun 

11-09-2009, 12:12 PM
Thank you guys!
@Zoltan, "cini" se da cemo ipak vozit skupa!
@Juha, now i realize what you meant when you said that you "quite liked it" about assembly
@Andy... yeah it feels old
@Zoltan, "cini" se da cemo ipak vozit skupa!
@Juha, now i realize what you meant when you said that you "quite liked it" about assembly

@Andy... yeah it feels old

11-08-2010, 08:56 PM
Sretan rođendan, Domagoj! 
I'll spare you from assembly this time due to lack of spare time
(though in a few days I probably could've made the same thing as last time but make it run on an Atmel Atmega32 printing the output to an Optrex F-51553 -series LCD display
)

I'll spare you from assembly this time due to lack of spare time
(though in a few days I probably could've made the same thing as last time but make it run on an Atmel Atmega32 printing the output to an Optrex F-51553 -series LCD display
)11-09-2010, 12:24 AM
Čestitam ti rođendan Domagoj!
Puno sreće i uspeha u tvojim buducim namerema i planovima!

Puno sreće i uspeha u tvojim buducim namerema i planovima!
![[Image: Partytime.gif]](http://i160.photobucket.com/albums/t167/sollidsnake/Partytime.gif)
![[Image: 9.gif]](http://i160.photobucket.com/albums/t167/sollidsnake/9.gif)
