switch (region) {
case 0x8005:
// Serial 3
- printf("Getting serial 3 at 0x%08x\n", physAddr);
+ //printf("Getting serial 3 at 0x%08x\n", physAddr);
return serial3->get_data(physAddr);
default:
printf("Read PCM32 at 0x%08x\n", physAddr);
switch (region) {
case 0x8005:
// Serial 3
- printf("Serial 3 write 0x%08x at 0x%08x\n", value, physAddr);
+ //printf("Serial 3 write 0x%08x at 0x%08x\n", value, physAddr);
serial3->put_data(physAddr, value);
return true;
default:
switch (region) {
case 0x00:
- printf("Read8 ROM %02x from %08x\n", ROM[physAddr & 0xFFFFFF], physAddr);
+ //printf("Read8 ROM %02x from %08x\n", ROM[physAddr & 0xFFFFFF], physAddr);
return ROM[physAddr & 0xFFFFFF];
case 0x10:
// Should not reach here
switch (region) {
case 0x00:
LOAD_32LE(result, physAddr & 0xFFFFFF, ROM);
- printf("Reading %08x from %08x\n", result, physAddr);
+ //printf("Reading %08x from %08x\n", result, physAddr);
break;
case 0x10:
// Should not reach here
if (0 == lcd_status)
{
+ //printf("LCD: clearing LCD service bit\n");
m_ICPR &= ~LCD_SERVICE_BIT_MASK;
}
else
m_ICIP = temp & (~m_ICLR);
m_ICFP = temp & m_ICLR;
+ //printf("Have interrupt ICIP:%08x ICFP:%08x ICMR:%08x\n", m_ICIP, m_ICFP, m_ICMR);
// if (true == mp_core->is_in_idle_mode())
// {
}
uint32_t LCDController::get_data32(uint32_t const address) const {
- std::cout << "LCD: get value at " << std::hex << address << std::endl;
+ //std::cout << "LCD: get value at " << std::hex << address << std::endl;
switch (address) {
case LCCR0: return m_LCCR0;
// that is set after the contents of the DMA base address register 1
// are transferred to the DMA current Address register 1
m_LCSR |= LCSR_BAU;
+ //printf("LCD: finish one frame\n");
}
inline uint32_t get_interrupt_status() const {