Lastplace Racing Team

Full Version: Happy Birthday Domagoj
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
[Image: Partytime.gif]

[Image: 9.gif]

Have a nice day Domagoj Wave
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 Tongue):
[attachment=2192]
Zoltan:

Sretan ti rodjendan Domagoj! Applause
Zelim ti puno uspeha u studiranju i u utrkama! Zdravlja i srece takodjer!Winktongue

Veia:
Happy birthday Domagoj! Banana
Have a nice day and do something special!Big Grin
Congratulations Domagoj!

Have a nice day!
Hope it's a great Birthday!

Quarter Century - Oh Boy!
Happy birthday Domagoj
Happy Birthday Domagoj, have fun Banana
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 Winktongue

@Andy... yeah it feels old Haha
Sretan rođendan, Domagoj! Smile

I'll spare you from assembly this time due to lack of spare time Tongue (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 Tongue)
Čestitam ti rođendan Domagoj!Applause
Puno sreće i uspeha u tvojim buducim namerema i planovima!
Pages: 1 2 3
Reference URL's