-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
159 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ enum class engine : u8 | |
t7, | ||
t8, | ||
t9, | ||
jup | ||
}; | ||
|
||
struct props | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2024 xensik. All rights reserved. | ||
// | ||
// Use of this source code is governed by a GNU GPLv3 license | ||
// that can be found in the LICENSE file. | ||
|
||
#pragma once | ||
|
||
#include "xsk/stdinc.hpp" | ||
#include "xsk/arc/context.hpp" | ||
|
||
namespace xsk::arc::jup | ||
{ | ||
|
||
constexpr usize code_count = 0; | ||
constexpr usize hash_count = 0; | ||
constexpr u64 header_magic = 0x38000A0D43534780; | ||
|
||
class context : public arc::context | ||
{ | ||
public: | ||
context(); | ||
}; | ||
|
||
} // namespace xsk::arc::jup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2024 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 "xsk/arc/engine/jup.hpp" | ||
|
||
namespace xsk::arc::jup | ||
{ | ||
|
||
extern std::array<std::pair<u16, opcode>, code_count> const code_list; | ||
// extern std::array<std::pair<u32, char const*>, hash_count> const hash_list; | ||
|
||
context::context() : arc::context(props::v3, engine::jup, endian::little, system::pc, header_magic) | ||
{ | ||
code_map_.reserve(code_list.size()); | ||
code_map_rev_.reserve(code_list.size()); | ||
// hash_map_.reserve(hash_list.size()); | ||
|
||
for (auto const& entry : code_list) | ||
{ | ||
code_map_.insert({ entry.first, entry.second }); | ||
code_map_rev_.insert({ entry.second, entry.first }); | ||
} | ||
|
||
// for (auto const& entry : hash_list) | ||
// { | ||
// hash_map_.insert({ entry.first, entry.second }); | ||
// } | ||
} | ||
|
||
} // namespace xsk::arc::jup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2024 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 "xsk/arc/engine/jup.hpp" | ||
|
||
namespace xsk::arc::jup | ||
{ | ||
|
||
extern std::array<std::pair<u16, opcode>, code_count> const code_list | ||
{{ | ||
}}; | ||
|
||
} // namespace xsk::arc::jup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters