SlideShare a Scribd company logo
Joyful Assembly Language
Kunio Miyamoto, Ph.D.
1
Assembly language tanka
Kunio Miyamoto, Ph.D.
2
About me
Copyright by Kunio Miyamoto 3
About me
It’s a Joke 
Copyright by Kunio Miyamoto 4
What is Tanka?
• Tanka is…
• Japanese Short Poem
• 5-7-5-7-7 Style
– Number is the letters of character in each part
• Includes “Kigo(季語)”
– “Kigo” is the season word
• Rule and style
5
In Wikipedia
• Tanka (短歌 "short poem") is a genre of
classical Japanese poetry and one of the
major genres of Japanese literature
• http://en.wikipedia.org/wiki/Tanka
Copyright by Kunio Miyamoto
Example
• 東海の小島の磯の白砂に
われ泣きぬれて
蟹(かに)とたはむる(石川啄木)
• On the white sand
Of the beach of a small island
In the Eastern Sea
I, my face streaked with tears,
Am playing with a crab(Takuboku Ishikawa)
Copyright by Kunio Miyamoto
Example
• 東海の小島の磯の白砂に
われ泣きぬれて
蟹(かに)とたはむる(石川啄木)
• On the white sand
Of the beach of a small island
In the Eastern Sea
I, my face streaked with tears,
Am playing with a crab(Takuboku Ishikawa)
Copyright by Kunio Miyamoto
とうかいの
こじまのいその
しろすなに
われなきぬれて
かにとたはむる
Example
• 東海の小島の磯の白砂に
われ泣きぬれて
蟹(かに)とたはむる(石川啄木)
• On the white sand
Of the beach of a small island
In the Eastern Sea
I, my face streaked with tears,
Am playing with a crab(Takuboku Ishikawa)
Copyright by Kunio Miyamoto
Remember
This Style
What is
assembly language tanka?
• Assembler TANKA is…
• Machine Language Short Poem(!)
• 5-7-5-7-7 Style
• Includes “Kigo(季語)”
– “Kigo” is the season word
• Rhythmic
e.g.: Ends or starts same code in each part
• Executable(!)
10
Example
.section .text
.global main
.type main, @function
main:
push $0x43412054
push $0x53524946
mov %esp, %ecx
xor %ebx, %ebx
inc %ebx
mov %ebx, %eax
add %eax, %eax
add %eax, %eax
nop
mov %eax, %edx
add %edx, %edx
int $0x80
add %edx, %esp
ret
Copyright by Kunio Miyamoto
ONLY
14 Instructions!
Runs on Linux/x86
Style?
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Copyright by Kunio Miyamoto
5bytes
5bytes
7bytes
7bytes
7bytes
Style?
Copyright by Kunio Miyamoto
Remember
This Style
Season Word?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Season Word?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
“FIRST AC” Is the
Season Word
of “June”
Rhythm?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Rhythm?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Same value
Rhythm?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Same value
Rhythm?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Refrain
Rhythm?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Same value
Same value
Refrain
Rhythmic!
Comparing Style
Copyright by Kunio Miyamoto
Assembly Language Tanka
Comparing Style
Copyright by Kunio Miyamoto
(Traditional) TankaAssembly Language Tanka
Comparing Style
Copyright by Kunio Miyamoto
(Traditional) TankaAssembly Language Tanka
Same
Style!
Executable?
Copyright by Kunio Miyamoto
Executable?
Copyright by Kunio Miyamoto
Of Course!
BTW
Copyright by Kunio Miyamoto 26
BTW
Copyright by Kunio Miyamoto 27
BTW
It’s a Joke 
Copyright by Kunio Miyamoto 28
Same
Style!
5 great assembly language
tankist
• Tankist = Assembly language tanka author
Copyright by Kunio Miyamoto
Copyright by Kunio Miyamoto
In other programming
language tanka?
• Shell Script(/bin/sh)
– line1: #!/bin/sh ← 9letters
Copyright by Kunio Miyamoto
In other programming
language tanka?
• Shell Script(/bin/sh)
– line1: #!/bin/sh ← 9letters
• C language
– Line1: main() ←6letter
Copyright by Kunio Miyamoto
In other programming
language tanka?
• Shell Script(/bin/sh)
– line1: #!/bin/sh ← 9letters
• C language
– Line1: main() ←6letter
Copyright by Kunio Miyamoto
Assembly language tanka is
useful?
Yes!
Learning the
• Assembly language programming
• Optimization
• Shellcode programming
etc…
Copyright by Kunio Miyamoto
Shellcode?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
Shellcode?
Copyright by Kunio Miyamoto
68 54 20 41 43
68 46 49 52 53 89 e1
31 db 43 89 d8
01 c0 01 c0 90 89 c2
01 d2 cd 80 01 d4 c3
No 0x00!
Interesting?
Copyright by Kunio Miyamoto
Interesting?
At first, write!
Copyright by Kunio Miyamoto
Copyright by Kunio Miyamoto
Thank you!
If question,
Twitter: @wakatono
Facebook: https://www.facebook.com/wakatono
Search “wakatono” by Google

More Related Content

PDF
Play_using_Proxy
PDF
Flash? Wer braucht das eigentlich noch
PDF
Ssmjp201410 wakatono
PDF
講義資料(公開用)
PDF
Play_using_Proxy
PDF
PPT
Best Moments of 2009 Oscars
PPTX
Jose Luis Sert
Play_using_Proxy
Flash? Wer braucht das eigentlich noch
Ssmjp201410 wakatono
講義資料(公開用)
Play_using_Proxy
Best Moments of 2009 Oscars
Jose Luis Sert

Viewers also liked (7)

PDF
Compresseur hp heatpump
PPTX
2. norma dasar adminstrasi negara
PPT
Architects Seminar Kenzo tange
PPTX
Kenzo Tange
PPTX
Kenzo tange and tadao ando
PPT
Kenzo Tange- Architect
Compresseur hp heatpump
2. norma dasar adminstrasi negara
Architects Seminar Kenzo tange
Kenzo Tange
Kenzo tange and tadao ando
Kenzo Tange- Architect
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
A Presentation on Artificial Intelligence
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
A Presentation on Touch Screen Technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Encapsulation theory and applications.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Chapter 5: Probability Theory and Statistics
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
MIND Revenue Release Quarter 2 2025 Press Release
A comparative study of natural language inference in Swahili using monolingua...
A Presentation on Artificial Intelligence
Enhancing emotion recognition model for a student engagement use case through...
OMC Textile Division Presentation 2021.pptx
Hindi spoken digit analysis for native and non-native speakers
A Presentation on Touch Screen Technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Getting Started with Data Integration: FME Form 101
Encapsulation theory and applications.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Heart disease approach using modified random forest and particle swarm optimi...
Tartificialntelligence_presentation.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Chapter 5: Probability Theory and Statistics
DP Operators-handbook-extract for the Mautical Institute
WOOl fibre morphology and structure.pdf for textiles
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Unlocking AI with Model Context Protocol (MCP)
Ad

Joyful assembly language - Assembly Language Tanka