simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] ATMega8 class definition


From: Ivca Safranko
Subject: [Simulavr-devel] ATMega8 class definition
Date: Fri, 15 Oct 2010 20:27:57 +0200

Hallo,

Simulavr is a great idea and I'd like to contribute to its development.

ATMega8 CPU does not contain the JTAG interface, so it is not possible
to use hardware debugger as JTAG ICE MKI / II, and for that reason I
wrote the definition.

I think the atmega16_32 interrupt vectors for EEPROM Ready are not
equal:

atmega16_32.cpp

eeprom = new HWEeprom(this, irqSystem, ee_bytes, 15);
if(stack11bit)
  stack = new HWStackSram(this, 11);
else
  stack = new HWStackSram(this, 12);

Perhaps this is better?

    if(stack11bit) {
      eeprom = new HWEeprom(this, irqSystem, ee_bytes, 15);
      stack = new HWStackSram(this, 11);
    } else {
      eeprom = new HWEeprom(this, irqSystem, ee_bytes, 17);
      stack = new HWStackSram(this, 12);
    }

Best regards,

Ivica

Attachment: atmega8.cpp
Description: Text Data

Attachment: atmega8.h
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]