[go: up one dir, main page]

0% found this document useful (0 votes)
142 views4 pages

CPSR SPSR

1) The CPSR register holds the current processor status information such as condition flags, interrupt masks, operating mode, and thumb state. The SPSR register saves the program status on exceptions and interrupts. 2) ARM7 can operate in two different operating modes - ARM state and Thumb state. The mode bits in CPSR indicate the current operating mode. 3) Different operating modes in ARM7 include User, FIQ, IRQ, Supervisor, Abort, Undefined, and System modes. Modes other than User mode are called privileged modes.

Uploaded by

soumya salian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views4 pages

CPSR SPSR

1) The CPSR register holds the current processor status information such as condition flags, interrupt masks, operating mode, and thumb state. The SPSR register saves the program status on exceptions and interrupts. 2) ARM7 can operate in two different operating modes - ARM state and Thumb state. The mode bits in CPSR indicate the current operating mode. 3) Different operating modes in ARM7 include User, FIQ, IRQ, Supervisor, Abort, Undefined, and System modes. Modes other than User mode are called privileged modes.

Uploaded by

soumya salian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Date........d.

***********

Page *******************

ARM 7 Hag Reqister


CPSR Cumnt Prvaram Shans le9iSFe
SPSR Saved Pvgram Statu2eq1s
FLAGGS CoNTROL
STATUs E xTENSON
31 30 29 288 7 6

I F MODE

CONDIT1ON
INTERRUPT MASKS
FLAGS
THUMB STATE

PROCESs OR MOpE

CPSR holds Current Starus pDram

when an excepthon/inernupr c c u s , ( Value


O CPsSe Sared inw SPSR_ bepore inuoleing
|/tC1SR
wnile
Tehurnina back to main_prDram
e alue QSPSR _pu_back n CPSR
to veswre a _ preutOuL Stale ch (u Omgnnal
pveram

Mode bilk Co-4)


ARm can epeale in 2 dtheneu peianug mode
hese bilk_nd1calë (tu CurenY Gperattr
ADde t t e TorDcesSer

Al odes exeepF_ User Dele, aoe called


Pnvtledel Modes.
Date...... !...o

Page

MODE B17S
OPERATING MODE OSED FOR
o lo User(USR) Novmal Operattrg mocle
Fast Ine ruph Rea FIO)| When hugh prionly nte rup occur

oo Interupt Reg (IR@) when low priorl


t e rupt ocCur

oo SuperviSor (Svc) Default mde af ter Reser

A bort CABT) Fall


whene ver memo vy
access

Unclefired (uN O) when undhined instmietton a u n t e red|

System (sys) can be invoked by prvgrammer.


PI modes Pxcept User mode are Catle d PRI VILE GED MODES

T : t uub Stalé
T rvcesso s i
Tuunb Sale
T 0 vcesSor s in noomal Mm tal
uunnb Stale isa Specia Stal ohere
nsriCHOn Set, ha ving 6 bit inshrcHonss
umb
are usecd.

his ic usetud hueunony is mplemenre d

as l6 bit mem0n

* |E : kast ntemupE mack


are usabteol Cmaked)
F:l, Fast t emyp
= 0 ,Fast mremupF are enabled (un-maskedD
A Jas ntermupt oecus thrvuqh nFIa_pin

T mfemup ReguerF mask


disablel
T = I , Nomal
mfempt aae
4.
Z0 , Nomal 7ntemplsa r e e n a b l e
hhemp OCCUM uougu nIRQ pin
A nomal
Page.
v*s********************

*
Cone tron Nags

VOves4low a
means Stgme d Over lo w
OCcured
V=,
V=O means Some od Oveflo w has nop
OCeured

2C- Camy lag


msB
C Meaus Cam afler
msB
C 0 Meaus NO Ca my ahlu

- Xexo laag
is lero
= _ meauS Tesult
AOnKero
MeaS OeSull (S
Z 0

AN-NegaHve Zlao
Resul }e negattve

N-0 Resulr poaitve


J h i s l a g aways indicalë (e Core cl S

nSpile an_Ovglow uuluke


9ntels
Stgn Ha

Bit No:2 Satuaaton Ma/a Zlaa


(DSP Ext) Htus la
9nEverston Rm
Souratton has oceured
Indicalës a

Pithmehc SaturaHOn nas Oceured


CA 1's fo l 0's)
No SauratO w
Q-0

woefud v Some sgnal oo ceisna


aPpucahous
Date...,

Page..

Dala Types - ARm 7

DATA TYPES SIzE STORING CON DITIONS.

O8y/e 8 Bils No Conditons

Can be St0reol at any memo)


AddzeSS

Halword 6 Bils Must be 16 Bt Algned


4ust beg1n at an even addresS

word 32 Bis Must be 32 Bi algred.


Must beain a an adohess
that is Multtple of 4

8 brlE sBye is uutversal


uow many bils h a
But wORD LENGTH depends Ou
pmcessoy/Contoller i s .

Case case e
8D86

8086 S 16 Bit pr SSO


word length Is (6 B
CBW
it usesS a n insricHon
CoNVER7 BYTE 70 WORD (ie. to l6 BtE Fovmat)

CaSe Rm7
- Jhe rocessor IS 32 B I ocessor

word length IS 32 Bis

word is 16 Bis.
ualy

You might also like