Can I make my own library with my assembly code inside it and how would I do it

See previous related discussion:

There I asked:

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?

I still want to know that. Do you understand that Java runs as bytecode on JVM?