view loadtools/scripts/c155.init @ 420:57c681499f48

loadtools/scripts/c155.{config,init}: created
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 18 Jun 2014 08:38:41 +0000
parents
children fe9e620c89ff
line wrap: on
line source

# Set WS=3 for both nCS0 and nCS1, same as the more basic Compal phones

w16 fffffb00 00A3
w16 fffffb02 00A3

# We need to set the FFFF:FB10 register to map the flash (not the boot ROM)
# to address 0, same as the basic compal.init version; see the latter for
# the explanation.

w16 fffffb10 0300

# We need to switch the CS4/ADD22 pin from its default function of CS4
# to the needed ADD22, to access the 8 MiB of flash.  Compal's C155/156
# in-flash boot code does this setting, but let's do it ourselves too.

w16 fffef006 0008