MZ2000 persona, Z80 April 2026, bug fixes and z80 timing fixes

This commit is contained in:
Philip Smart
2026-05-13 20:55:04 +01:00
parent 516426a8c7
commit 5bbb3bcf5f
257 changed files with 13634 additions and 4193 deletions

View File

@@ -3,7 +3,7 @@
|__ / | ___|___ ___|/ \
/ /__| __| | | / - \
/______|_____| |__| /__/ \__\
Copyright (C) 2006-2024 Manuel Sainz de Baranda y Goñi.
Copyright (C) 2006-2025 Manuel Sainz de Baranda y Goñi.
Released under the terms of the GNU Lesser General Public License v3. */
#ifndef Z_classes_SizedString_HPP
@@ -12,12 +12,9 @@ Released under the terms of the GNU Lesser General Public License v3. */
#include <Z/classes/StringView.hpp>
#include <utility>
namespace Zeta{namespace ZetaDetail {
template <class t, USize s, class = std::make_index_sequence<s - 1> > struct SizedString;
template <class t, USize s, std::size_t... i>
struct SizedString<t, s, std::index_sequence<i...> > {
t data[s];
@@ -29,12 +26,14 @@ namespace Zeta{namespace ZetaDetail {
Z_CT(CPP11) SizedString(const StringView<t> &string_view) Z_NOTHROW
: data{string_view.data[i]..., 0} {}
};
}}
namespace Zeta{template <class t, USize s> struct SizedString : ZetaDetail::SizedString<t, s> {
Z_CT(CPP11) SizedString(const t (&string)[s]) Z_NOTHROW
: ZetaDetail::SizedString<t, s>(string) {}
@@ -49,7 +48,8 @@ namespace Zeta{template <class t, USize s> struct SizedString : ZetaDetail::Size
Z_CT(CPP11) const t &operator [](USize index) const Z_NOTHROW
{return this->data[index];}
};}
#endif // Z_classes_SizedString_HPP