/*
Kopp VM
Node.js powered Java virtual machine (JVM)

Copyright 2014 Sam Saint-Pettersen.

Released under the MIT/X11 License.
Please see LICENSE file.
*/

var magic = parseInt('CAFEBABE', 16); // Magic value: 0xCAFEBABE.

// A `class` file consists of a single `ClassFile` structure.
var ClassFile = {
    u4: magic,
    u2: minor_version,
    u2: major_version,
    u2: constant_pool_count,
    cp_info: constant_pool[constant_pool_count-1],
    u2: access_flags,
    u2: this_class,
    u2: super_class,
    u2: interfaces_count,
    u2: interfaces[interfaces_count],
    u2: fields_count,
    field_info: fields[fields_count],
    u2: methods_count,
    method_info: methods[methods_count],
    u2: attributes_count,
    attribute_info: attributes[attributes_count]
};

@@ -303,16 +303,17 @@
 %7B%0A    u4
+a
 : magic,
@@ -319,16 +319,17 @@
 ,%0A    u2
+b
 : minor_
@@ -343,16 +343,17 @@
 ,%0A    u2
+c
 : major_
@@ -367,16 +367,17 @@
 ,%0A    u2
+d
 : consta
@@ -448,16 +448,17 @@
 ,%0A    u2
+e
 : access
@@ -471,16 +471,17 @@
 ,%0A    u2
+f
 : this_c
@@ -492,16 +492,17 @@
 ,%0A    u2
+g
 : super_
@@ -506,32 +506,33 @@
 er_class,%0A    u2
+h
 : interfaces_cou
@@ -541,16 +541,17 @@
 ,%0A    u2
+i
 : interf
@@ -580,16 +580,17 @@
 ,%0A    u2
+j
 : fields
@@ -641,16 +641,17 @@
 ,%0A    u2
+k
 : method
@@ -706,16 +706,17 @@
 ,%0A    u2
+l
 : attrib

fix keys.