Compare commits

..

2 Commits

Author SHA1 Message Date
fef6715d17 classpath cleanup 2025-01-01 11:59:00 -06:00
3eaf89bcce regs/sparse_struct_java: int return value 2025-01-01 07:12:07 -06:00
5 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,5 @@
#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"

View File

@ -1,6 +1,5 @@
(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,

View File

@ -1,7 +1,6 @@
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 \

View File

@ -23,8 +23,8 @@ OBJ = \
c/parse_type.o
MAIN_DREAMCAST_OBJ = \
c/sh7091_scif.o \
c/main_dreamcast.o \
c/sh7091_scif.o \
images/java_text.data.o \
images/java_cup.data.o \
images/java_powered.data.o

View File

@ -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} = ({field.name} >> {shift}) & 0xff;"
yield f"this.{field.name}{i} = (byte)(({field.name} >> {shift}) & 0xff);"
yield "}"
@ -50,7 +50,7 @@ def render_constructor(get_type, declaration):
def render_get_byte(fields):
ix = 0
yield "public get_byte(int ix) {"
yield "public int get_byte(int ix) {"
yield "switch (ix) {"
for field in fields:
if "_res" in field.name: