# Simple Assembly

**URL:** https://discourse.processing.org/t/simple-assembly/21330
**Category:** Coding Questions
**Created:** [May 26, 2020, 10:13pm UTC](https://discourse.processing.org/t/simple-assembly/21330 "2020-05-26T22:13:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AntiViral\_Builder](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)
#### Post date: [May 26, 2020, 10:13pm UTC](https://discourse.processing.org/t/simple-assembly/21330/1 "2020-05-26T22:13:56Z")

</div>

\*\*Hello There,  
I just need a simple way to install assembly code in certain routines as long as Processing puts its variables in it’s Stack I am good 2 go I really don’t need a lot of stuff just to read and write to memory and access real-precision variables. I know how to use assembly language, I just need to be able to insert it in to my Application, I do not know how to build my own libraries (yet), but that is what I need a routine to read/write to memory and to do the coprocessor stuff in it’s own precision. I’m trying to build an antivirus and I need these things to simulate the actions of computers to handle things like encryption \*\*

---

<div class="post-metadata">

### Author: ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)
#### Post date: [May 27, 2020, 4:04am UTC](https://discourse.processing.org/t/simple-assembly/21330/2 "2020-05-27T04:04:20Z")

</div>

Welcome to the forums!

Interesting question, I don’t know if its possible, but never say never.  
What do you need assembly for?

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 29, 2020, 5:45am UTC](https://discourse.processing.org/t/simple-assembly/21330/3 "2020-05-29T05:45:37Z")

</div>

> [@AntiViral\_Builder](#):
>
> install assembly code in certain routines

Do you mean you want to write your own JVM bytecode? Or do you mean calling out to a C library with inline assembly from Processing, e.g. through JNI?

Possibly relevant:

> <https://stackoverflow.com/questions/11632078/code-injecting-assembly-inlining-in-java>

> <https://stackoverflow.com/questions/14147332/assembly-programming-on-the-jvm>
