Compare commits
No commits in common. "fef6715d179bb126690f38bc530745e1220cde29" and "6a8f5e97411f31f9054006427d3176a1c1d3c722" have entirely different histories.
fef6715d17
...
6a8f5e9741
@ -1,5 +1,6 @@
|
||||
#include "example/DreamcastVideo2.class.h"
|
||||
#include "example/DreamcastVideo.class.h"
|
||||
#include "example/Vec2.class.h"
|
||||
#include "java/io/PrintStream.class.h"
|
||||
#include "java/lang/Boolean.class.h"
|
||||
#include "java/lang/Byte.class.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
(const uint8_t *)&_binary_example_DreamcastVideo2_class_start,
|
||||
(const uint8_t *)&_binary_example_DreamcastVideo_class_start,
|
||||
(const uint8_t *)&_binary_example_Vec2_class_start,
|
||||
(const uint8_t *)&_binary_java_io_PrintStream_class_start,
|
||||
(const uint8_t *)&_binary_java_lang_Boolean_class_start,
|
||||
(const uint8_t *)&_binary_java_lang_Byte_class_start,
|
||||
|
@ -1,6 +1,7 @@
|
||||
CLASS_PATH = \
|
||||
example/DreamcastVideo2.class.o \
|
||||
example/DreamcastVideo.class.o \
|
||||
example/Vec2.class.o \
|
||||
java/io/PrintStream.class.o \
|
||||
java/lang/Boolean.class.o \
|
||||
java/lang/Byte.class.o \
|
||||
|
2
java.mk
2
java.mk
@ -23,8 +23,8 @@ OBJ = \
|
||||
c/parse_type.o
|
||||
|
||||
MAIN_DREAMCAST_OBJ = \
|
||||
c/main_dreamcast.o \
|
||||
c/sh7091_scif.o \
|
||||
c/main_dreamcast.o \
|
||||
images/java_text.data.o \
|
||||
images/java_cup.data.o \
|
||||
images/java_powered.data.o
|
||||
|
@ -41,7 +41,7 @@ def render_constructor(get_type, declaration):
|
||||
max_shift = 8 * (field.array_length - 1)
|
||||
for i in range(field.array_length):
|
||||
shift = max_shift - (i * 8)
|
||||
yield f"this.{field.name}{i} = (byte)(({field.name} >> {shift}) & 0xff);"
|
||||
yield f"this.{field.name}{i} = ({field.name} >> {shift}) & 0xff;"
|
||||
|
||||
yield "}"
|
||||
|
||||
@ -50,7 +50,7 @@ def render_constructor(get_type, declaration):
|
||||
|
||||
def render_get_byte(fields):
|
||||
ix = 0
|
||||
yield "public int get_byte(int ix) {"
|
||||
yield "public get_byte(int ix) {"
|
||||
yield "switch (ix) {"
|
||||
for field in fields:
|
||||
if "_res" in field.name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user