void kssc_initWithMachineContext(KSStackCursor *cursor, int maxStackDepth, const struct KSMachineContext* machineContext)
{
    kssc_initCursor(cursor, resetCursor, advanceCursor);
    MachineContextCursor* context = (MachineContextCursor*)cursor->context;
    context->machineContext = machineContext;
    context->maxStackDepth = maxStackDepth;
    context->instructionAddress = cursor->stackEntry.address;
}
void kssc_initWithMachineContext(KSStackCursor *cursor, int maxStackDepth, const struct KSMachineContext* machineContext)
{
    kssc_initCursor(cursor, maxStackDepth, kscpu_instructionAddress(machineContext));
    cursor->advanceCursor = advanceCursor;

    MachineContextCursor* cursorContext = (MachineContextCursor*)cursor->context;
    cursorContext->machineContext = machineContext;
    cursorContext->instructionAddress = cursor->stackEntry.address;
}