Examples of rxWrite()


Examples of com.loomcom.symon.devices.Acia.rxWrite()

        acia.setBus(mockBus);

        // Disable TX IRQ, Enable RX IRQ
        acia.write(CMD_STAT_REG, 0x80);

        acia.rxWrite('a');

        verify(mockBus, atLeastOnce()).assertIrq();
    }

    @Test
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

        acia.setBus(mockBus);

        // Disable TX IRQ, Disable RX IRQ
        acia.write(CMD_STAT_REG, 0x00);

        acia.rxWrite('a');

        verify(mockBus, never()).assertIrq();
    }

    @Test
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

    @Test
    public void aciaShouldHaveRxFullStatusOnIfRxHasData() throws Exception {
        Acia acia = newAcia();

        acia.rxWrite('a');
      
        assertEquals(0x01, acia.read(CMD_STAT_REG) & 0x01);
    }

    @Test
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

    @Test
    public void aciaShouldHaveTxEmptyAndRxFullStatusOffIfRxAndTxHaveData()
            throws Exception {
        Acia acia = newAcia();
      
        acia.rxWrite('a');
        acia.txWrite('b');

        assertEquals(0x01, acia.read(CMD_STAT_REG) & 0x03);
    }
   
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

            throws Exception {
       
        Acia acia = newAcia();
       
        // overrun ACIA
        acia.rxWrite('a');
        acia.rxWrite('b');
       
        assertEquals(0x20, acia.read(CMD_STAT_REG) & 0x20);
       
        // read should reset
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

       
        Acia acia = newAcia();
       
        // overrun ACIA
        acia.rxWrite('a');
        acia.rxWrite('b');
       
        assertEquals(0x20, acia.read(CMD_STAT_REG) & 0x20);
       
        // read should reset
        acia.rxRead();
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

            throws Exception {
        Acia acia = newAcia();

        assertEquals(0x00, acia.read(CMD_STAT_REG) & 0x01);
       
        acia.rxWrite('a');
       
        assertEquals(0x01, acia.read(CMD_STAT_REG) & 0x01);
       
        acia.rxRead();
       
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

        acia.setBus(mockBus);

        // Disable TX IRQ, Enable RX IRQ
        acia.write(2, 0x00);

        acia.rxWrite('a');

        verify(mockBus, atLeastOnce()).assertIrq();
    }

    @Test
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

        acia.setBus(mockBus);

        // Disable TX IRQ, Disable RX IRQ
        acia.write(2, 0x02);

        acia.rxWrite('a');

        verify(mockBus, never()).assertIrq();
    }

    @Test
View Full Code Here

Examples of com.loomcom.symon.devices.Acia.rxWrite()

    @Test
    public void aciaShouldHaveRxFullStatusOffIfRxHasData() throws Exception {
        Acia acia = new Acia6551(0x000);

        acia.rxWrite('a');
        assertEquals(0x18, acia.read(0x0001));
    }

    @Test
    public void aciaShouldHaveTxEmptyAndRxFullStatusOffIfRxAndTxHaveData()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.