#Silicon

39 messages · Page 1 of 1 (latest)

valid moss
#

Yet another computer mod, hopefully one I will get far enough to ship this time.

valid moss
#

The bootloader currently weighs in at 764 bytes out of 4096.

I might be able to put some display subroutines in here.

valid moss
#

If someone can RE that and spit out a project that produces the same file, I'd be impressed.

#

I suppose the next steps will be to code up the CPU stuff in the mod (my emulator already kind of works).

#

Would be fun to ship some bare bones version of Linux on this thing, but that is a pipe dream.

untold hazel
valid moss
#

Nowhere near done yet, it's not uploaded.

neat marten
#

is this risc-v?

#

👀

valid moss
#

Did you look at the binary or did you guess?

neat marten
#

I guessed

flint forge
valid moss
valid moss
#

That feels wrong doesn't it?

#

This was Mojank.

valid moss
#

Tada.

I'm going to make a system that allows you to provide a custom model for these.

untold hazel
jolly nymph
#

Add rust 🙏

valid moss
#

If you want to write programs in Rust no one will stop you.

#

This is going to run RISC-V machine code out of the box with a BASIC interpreter and maybe more.

#

So all you need to do is compile Rust to RISC-V.

untold hazel
#

which people have already done for opencomputers 2

neat marten
#

if not then I guess you could steal™ some stuff from OC2's RISC-V interpreter

valid moss
#

It's still a WIP but hopefully.

valid moss
valid moss
#

Better.

valid moss
#

Got it!

valid moss
#

Button.

#

I think I'll make a UI lib for this junk because I'm insane like that.

valid moss
#

That isn't quite right.

#

Why reimplement stuff when you can just borrow it?

    @Override
    public void render(DrawContext context) {
        context.getMatrices().translate(-x(), -y(), 0);
        ((HandledScreenAccessor) screen).invokeDrawSlot(context, slot);
    }
valid moss
#
java.util.NoSuchElementException
    at java.base/java.util.ArrayDeque.getLast(ArrayDeque.java:413)
    at net.minecraft.client.util.math.MatrixStack.push(MatrixStack.java:62)
    at net.minecraft.client.gui.DrawContext.drawTooltip(DrawContext.java:642)
    at net.minecraft.client.gui.DrawContext.drawTooltip(DrawContext.java:601)
    at net.minecraft.client.gui.screen.ingame.HandledScreen.drawMouseoverTooltip(HandledScreen.java:178)

I am confused about this. .-.

valid moss
#

Let's try to get this GUI working (and computers booting!)