22 lines
447 B
C++
22 lines
447 B
C++
// Copyright 2022 xensik. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a GNU GPLv3 license
|
|
// that can be found in the LICENSE file.
|
|
|
|
#include "stdafx.hpp"
|
|
#include "t5.hpp"
|
|
|
|
namespace xsk::gsc::t5
|
|
{
|
|
|
|
auto opcode_size(std::uint8_t id) -> std::uint32_t
|
|
{
|
|
switch (opcode(id))
|
|
{
|
|
default:
|
|
throw error("Couldn't resolve instruction size for " + std::to_string(id));
|
|
}
|
|
}
|
|
|
|
} // namespace xsk::gsc::t5
|