Jasml

The Java Assembling Language


Jasml Home

User Guide

A Simple Example

Jasml Syntax

Attributes

Java Macro Instructions

Java Macro Instruction Index

Javadoc

Download

 

SourceForge.net Logo

 

User Guide

Installation:

Download the JASML package, then unpack the file to your local directory, say, d:\jasml.
The directory should contain the following files and dirs:
jasml.jar , this is the JASML lib files.
doc , contains the documentation.
src , jasml source code.

Before running JASML, make sure:
1. JRE is properly installed and configured.
2. Adding jasml.jar to your classpath, this can be down with
set classpath=%classpath%;d:\jasml\jasml.jar
replace d:\jasml to your the directory where the files are unpackaged.

Command Line Parameters:

java jasml [-options] name
name            the name of the file to process.
options can be:
-d              decompile java class into .jasm file.
-c              compile jasm file into .class file.
-o              override without prompt if the file already exists.
-r              process all sub-directories.
                if this is specified, name must be a directory name.
-h              show a discription for each instruction.
-s              label will occupy a single line in generated .jasm file.
-l              generate LineNumberTable when decompiling classes.
	  

Samples:

java jasml -d c:\testpackage\SimpleClass.class      
                    decompile c:\testpackage\SimpleClass.class, into c:\testpackage\SimpleClass.jasm.

java jasml -d -h -s -l c:\testpackage\SimpleClass.class      
                    decompile c:\testpackage\SimpleClass.class, into c:\testpackage\SimpleClass.jasm,
                    generating a description of each macro instruction, outputing the LineNumberTable 
                    attribute for each method, and each label will occupy a single line in the
                    generated .jasm file.						 	

java jasml -d -o c:\testpackage\SimpleClass.class      
                    decompile c:\testpackage\SimpleClass.class, if c:\testpackage\SimpleClass.jasm 
                    already exists, override it.
				   
java jasml -d -o c:\testpackage
                    decompile all .class file in c:\testpackage, and override existing .jasm files.

java jasml -d -o -r c:\testpackage
                    decompile all .class file in c:\testpackage and its sub-directories, and 
                    override existing .jasm files.
				   						   	  				   				   
java jasml -c c:\testpackage\SimpleClass.jasm
                    compile c:\testpackage\SimpleClass.jasml into c:\testpackage\SimpleClass.class.
					
java jasml -c -o c:\testpackage\SimpleClass.jasm
                    compile c:\testpackage\SimpleClass.jasml into c:\testpackage\SimpleClass.class. 
                    if c:\testpackage\SimpleClass.class already exists, override it.

java jasml -c -o c:\testpackage\
                    compile all .jasm files in c:\testpackage and its sub-directory into .class files, 
                    and override all existing files.
	  


Copyright 2006 - Jiang Yang , All Rights Reserved