SlideShare a Scribd company logo
1 of 39
Download to read offline
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

Viewers also liked

Compresseur hp heatpump
Compresseur hp heatpumpCompresseur hp heatpump
Compresseur hp heatpumpEUROPAGES
 
2. norma dasar adminstrasi negara
2. norma dasar adminstrasi negara2. norma dasar adminstrasi negara
2. norma dasar adminstrasi negaraDian Oktavia
 
Architects Seminar Kenzo tange
Architects Seminar Kenzo tangeArchitects Seminar Kenzo tange
Architects Seminar Kenzo tangeAniruddh Jain
 
Kenzo tange and tadao ando
Kenzo tange and tadao andoKenzo tange and tadao ando
Kenzo tange and tadao andovikashsaini78
 
Kenzo Tange- Architect
Kenzo Tange- ArchitectKenzo Tange- Architect
Kenzo Tange- Architectvinod singh
 

Viewers also liked (7)

Compresseur hp heatpump
Compresseur hp heatpumpCompresseur hp heatpump
Compresseur hp heatpump
 
Daimachi
DaimachiDaimachi
Daimachi
 
2. norma dasar adminstrasi negara
2. norma dasar adminstrasi negara2. norma dasar adminstrasi negara
2. norma dasar adminstrasi negara
 
Architects Seminar Kenzo tange
Architects Seminar Kenzo tangeArchitects Seminar Kenzo tange
Architects Seminar Kenzo tange
 
Kenzo Tange
Kenzo Tange Kenzo Tange
Kenzo Tange
 
Kenzo tange and tadao ando
Kenzo tange and tadao andoKenzo tange and tadao ando
Kenzo tange and tadao ando
 
Kenzo Tange- Architect
Kenzo Tange- ArchitectKenzo Tange- Architect
Kenzo Tange- Architect
 

Recently uploaded

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceIES VE
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Joyful assembly language - Assembly Language Tanka