beautypg.com

Assembly source code – boot program – Rainbow Electronics AT75C310 User Manual

Page 126

background image

AT75C310

126

Assembly Source Code – Boot Program

;-----------------------------------------------------------------------------

;Cadence Design Systems Ltd. Copyright 1999. All Rights Reserved.

;-----------------------------------------------------------------------------

;MODULE:

bootcode.s

;CREATION DATE:

26 Feb 1999

;AUTHOR:

Kevin Robertson

;DESCRIPTION:

This file contains the code to go into the SIAP bootrom - it is used by all the

bootrom tests which use a GET to include this file. If the bootrom is changed then all

the boot tests MUST be rerun to check the change.

;CHANGE HISTORY:

;26 Feb 1999

;Initial version

;3 May 1999

;Final Version - changed wait count to the required value for a 3 sec timeout and reduced Baudrate down to

;9600.

;------------------------------------------------------------------------------

;

AREA

bootrom, CODE, READONLY

;------------------------ List of constants and types -----------------------

ARM_MODE_SVC

EQU

Ox13

I_BIT

EQU

Ox8O

F_BIT

EQU

Ox4O

;- The WAIT_TIME is for a 3 second wait. The value is calculated from the cycle count of the loop

;- rx_ poll_timed of 13 and a clock period of 41.47nS. This gives the time for a count of 1 as 542nS.

;- 3 Secs/542nS = Ox54754f.

WAIT_TIME

EQU

OxOO54754F

RAM_BASE

EQU

OxFDOOOOOO

RAM_SIZE

EQU

4096

RAM_LIMIT

EQU

RAM_BASE + RAM_SIZE

;------------------------- List of Imported resources ------------------------

;------------------------ List of Internal resources ------------------------

;-----------------------------------------------------------------------------

;

Define the vector table.

;

The reset vector jumps to the handler code.

;

All others just dead loop on themselves!

;-----------------------------------------------------------------------------

reset

B InitReset ; reset

undefvec

B undefvec ; Undefined

swivec

B swivec ; SW IRQ

pabtvec

B pabtvec ; Program abort

dabtvec

B pabtvec ; Program abort

dabtvec

B rsvdvec ; reserved

irqvec

B irqvec ; IRQ

fiqvec