common_base = (uint16_t) buffer[0] + (buffer[1] << 8);
setenv_hex(PSTR(ENV_CPM3_COMMON_BASE), common_base);
}
+
+ setenv_hex(PSTR(ENV_CPM3_SCB), mem_top - ((res_len - (6 - 1)) << 8) + common_base);
+
/* Main System Load */
/* Load Common Portion of System */
__attribute__ ((naked)) __attribute__ ((section (".init3")))
void preset_ram (void)
{
- for (uint8_t *p = RAMSTART; p <= (uint8_t *) RAMEND; p++)
+ for (uint8_t *p = (uint8_t *) RAMSTART; p <= (uint8_t *) RAMEND; p++)
*p = 0xdd;
}
#define ENV_CPM3_SYSFILE "cpm3_file"
#define ENV_CPM3_COMMON_BASE "cpm3_commonbase"
#define ENV_CPM3_BANKED_BASE "cpm3_bankedbase"
+#define ENV_CPM3_SCB "cpm3_scb"
#define ENV_PINALIAS "pin_alias"
#define ENV_STARTADDRESS "startaddress"