Working on __open.

Working op `load` instruction.
This commit is contained in:
2025-08-03 01:20:55 +10:00
parent ec6e7e1351
commit a8b526c645
5 changed files with 96 additions and 1 deletions

View File

@@ -171,6 +171,15 @@ namespace SVM.Core
case PrimaryInstruction.JALF:
break;
case PrimaryInstruction.Load:
{
var Reg = Instruction.GetData<byte>(1);
var Length = Instruction.GetData<byte>(2);
var Target = Instruction.GetData<byte>(3);
var source = registers.GetData<SVMPointer>(Reg);
var srcPtr = GetPointer(source);
registers.SetDataInRegister(Target, srcPtr, Length);
}
break;
case PrimaryInstruction.Save:
break;