casing
This commit is contained in:
parent
90af933fb7
commit
7cc3dab687
3 changed files with 11 additions and 11 deletions
|
@ -144,7 +144,7 @@ void set_boot_loader(bus *const b, const bootloader_t which)
|
||||||
c->setRegister(7, start);
|
c->setRegister(7, start);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<uint16_t> loadTape(bus *const b, const std::string & file)
|
std::optional<uint16_t> load_tape(bus *const b, const std::string & file)
|
||||||
{
|
{
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
File32 fh;
|
File32 fh;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// (C) 2018-2023 by Folkert van Heusden
|
// (C) 2018-2024 by Folkert van Heusden
|
||||||
// Released under MIT license
|
// Released under MIT license
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
@ -12,5 +12,5 @@ typedef enum { BL_NONE, BL_RK05, BL_RL02 } bootloader_t;
|
||||||
|
|
||||||
void loadbin(bus *const b, uint16_t base, const char *const file);
|
void loadbin(bus *const b, uint16_t base, const char *const file);
|
||||||
void set_boot_loader(bus *const b, const bootloader_t which);
|
void set_boot_loader(bus *const b, const bootloader_t which);
|
||||||
std::optional<uint16_t> loadTape(bus *const b, const std::string & file);
|
std::optional<uint16_t> load_tape(bus *const b, const std::string & file);
|
||||||
void load_p11_x11(bus *const b, const std::string & file);
|
void load_p11_x11(bus *const b, const std::string & file);
|
||||||
|
|
2
main.cpp
2
main.cpp
|
@ -574,7 +574,7 @@ int main(int argc, char *argv[])
|
||||||
std::optional<uint16_t> bic_start;
|
std::optional<uint16_t> bic_start;
|
||||||
|
|
||||||
if (tape.empty() == false) {
|
if (tape.empty() == false) {
|
||||||
bic_start = loadTape(b, tape);
|
bic_start = load_tape(b, tape);
|
||||||
|
|
||||||
if (bic_start.has_value() == false)
|
if (bic_start.has_value() == false)
|
||||||
return 1; // fail
|
return 1; // fail
|
||||||
|
|
Loading…
Add table
Reference in a new issue