confirmed disk dma working

This commit is contained in:
minjaesong
2021-10-16 13:36:52 +09:00
parent 075e403773
commit 96730145e7
4 changed files with 6 additions and 4 deletions

BIN
assets/tsvm-default.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

BIN
assets/tsvm-default.tga LFS Normal file

Binary file not shown.

View File

@@ -3,13 +3,12 @@ package net.torvald.tsvm;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import net.torvald.tsvm.peripheral.*;
public class AppLoader {
public static String appTitle = "Totally Simple Virtual Machine";
public static String appTitle = "tsvm";
public static Lwjgl3ApplicationConfiguration appConfig;
public static int WIDTH = 640;//810;//720;

View File

@@ -73,11 +73,11 @@ internal class UnsafePtr(pointer: Long, allocSize: Long) {
fun destroy() {
if (!destroyed) {
UnsafeHelper.unsafe.freeMemory(ptr)
println("[UnsafePtr] Destroying pointer $this; called from:")
printStackTrace(this)
UnsafeHelper.unsafe.freeMemory(ptr)
destroyed = true
}
}