From 3fa1bd3e503bf7653f9df06e30b2c1e815ccc91a Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Sat, 4 Aug 2012 15:28:06 +0200 Subject: [PATCH] core: Increase MAX_IOs for atmega1280 The atmega1280 uses IO registers up to an address of 0x136. Set MAX_IOs to (0x136 - 0x20 + 0x01) = 279. --- simavr/sim/sim_avr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/sim_avr.h b/simavr/sim/sim_avr.h index f7ac26d..6f6cc34 100644 --- a/simavr/sim/sim_avr.h +++ b/simavr/sim/sim_avr.h @@ -55,7 +55,7 @@ enum { R_SREG = 32+0x3f, // maximum number of IO registers, on normal AVRs - MAX_IOs = 256, // Bigger AVRs need more than 256-32 (mega1280) + MAX_IOs = 279, // Bigger AVRs need more than 256-32 (mega1280) }; #define AVR_DATA_TO_IO(v) ((v) - 32) -- 2.20.1