Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing Assembly Code for a Tattoo

Tags:

assembly

nasm

I am requesting help with writing 32-bit assembly code for a simple "program tattoo.”

I would like to get a tattoo. After thinking it over, I have decided that I would like a tattoo that uses assembly code and deals with my daughter, Alisha. My idea is come up with an "illogical computation," one that defies the laws of assembly language. I want to pay homage to how illogical having a child seems to someone like me... someone who is used to 1s and 0s.

I'm thinking of using x86-based 32-bit registers like EAX, EBX, and ECX and of course some pushes and pops.

The tattoo would NOT have the comments (nothing in parentheses), but would include the start: notation.

start:
    mov eax, 53656C66h   (ASCII for "Self")
    mov ebx, 57696665h   (ASCII for "Wife")
    add ebx, eax

    push ebx
    push 3F81DBh         (Decimal 4162011 = daughter's birth date)

    pop ecx              (The first pop would give my daughter's birth date)
    pop ecx              (the second pop would NOT give the answer of eax added to ebx,
                          but would rather give my daughter’s nickname)
    ??? ecx

My idea is to replace ??? with the instruction to read and then show that the value in ecx is now 416c69h (ASCII for "Ali," my daughter's nickname). I think this idea would be awesome, and I will post pictures of the tattoo if I get it (of course).

My idea is that the last pop would defy computer logic. In essence, having a child defies the "logic" that we know, so this was my attempt to parallel the beauty of birth.

Any other ideas?

like image 985
user1435743 Avatar asked Jul 01 '12 21:07

user1435743


1 Answers

What's a bit weird is that the program does nothing, really. Why not instead write code that results in your daughter's name as a result of combining things such as your name, your wife's, and some encoding of her birth date? Perhaps through a series of XOR instructions with some meaningful values?

like image 112
Clafou Avatar answered Dec 31 '22 20:12

Clafou