skochinsky / jeff-tools

JEFF file format tools
27 stars 4 forks source link

Update to new Krakatau assembly syntax #1

Open Storyyeller opened 8 years ago

Storyyeller commented 8 years ago

I noticed that your tool is outputting legacy Jasmin/Krakatau syntax.

I would recommend updating to the new Krakatau syntax introduced last December, so that it is more reliable and can take advantage of the other features in Krakatau.

The most notable changes are that instead of doing

.limit stack 94 .limit locals 2 ; code here

you should do

.code stack 94 locals 2 ; code here .end code

Also, for field and method instructions, you should explicitly tag the type of constant pool reference (required in order to support Java 8 interface methods). For example, instead of

     invokespecial java/lang/Object/<init>()V

you should do

     invokespecial Method java/lang/Object <init> ()V
skochinsky commented 8 years ago

Thanks, I'll update it!