summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/instruct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/instruct.cpp')
-rw-r--r--src/mame/drivers/instruct.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/instruct.cpp b/src/mame/drivers/instruct.cpp
index 13b7a632296..29c77169dd7 100644
--- a/src/mame/drivers/instruct.cpp
+++ b/src/mame/drivers/instruct.cpp
@@ -75,15 +75,15 @@ public:
INTERRUPT_GEN_MEMBER(t2l_int);
private:
virtual void machine_reset() override;
- UINT16 m_lar;
- UINT8 m_digit;
+ uint16_t m_lar;
+ uint8_t m_digit;
bool m_valid_digit;
bool m_cassin;
bool m_irqstate;
required_device<cpu_device> m_maincpu;
- required_shared_ptr<UINT8> m_p_ram;
- required_shared_ptr<UINT8> m_p_smiram;
- required_shared_ptr<UINT8> m_p_extram;
+ required_shared_ptr<uint8_t> m_p_ram;
+ required_shared_ptr<uint8_t> m_p_smiram;
+ required_shared_ptr<uint8_t> m_p_extram;
required_device<cassette_image_device> m_cass;
};
@@ -151,7 +151,7 @@ READ8_MEMBER( instruct_state::portfd_r )
// read keyboard
READ8_MEMBER( instruct_state::portfe_r )
{
- for (UINT8 i = 0; i < 6; i++)
+ for (uint8_t i = 0; i < 6; i++)
{
if (BIT(m_digit, i))
{
@@ -176,7 +176,7 @@ READ8_MEMBER( instruct_state::sense_r )
INTERRUPT_GEN_MEMBER( instruct_state::t2l_int )
{
- UINT8 hwkeys = ioport("HW")->read();
+ uint8_t hwkeys = ioport("HW")->read();
// check RST key
if (BIT(hwkeys, 3))
@@ -193,10 +193,10 @@ INTERRUPT_GEN_MEMBER( instruct_state::t2l_int )
}
else
{
- UINT8 switches = ioport("SW")->read();
+ uint8_t switches = ioport("SW")->read();
// Set vector from INDIRECT sw
- UINT8 vector = BIT(switches, 0) ? 0x87 : 0x07;
+ uint8_t vector = BIT(switches, 0) ? 0x87 : 0x07;
// Check INT sw & key
if (BIT(switches, 1))
@@ -322,7 +322,7 @@ void instruct_state::machine_reset()
QUICKLOAD_LOAD_MEMBER( instruct_state, instruct )
{
- UINT16 i, exec_addr, quick_length, read_;
+ uint16_t i, exec_addr, quick_length, read_;
image_init_result result = image_init_result::FAIL;
quick_length = image.length();
@@ -339,7 +339,7 @@ QUICKLOAD_LOAD_MEMBER( instruct_state, instruct )
}
else
{
- std::vector<UINT8> quick_data(quick_length);
+ std::vector<uint8_t> quick_data(quick_length);
read_ = image.fread( &quick_data[0], quick_length);
if (read_ != quick_length)
{