fun160 file reg read write en (1)

background image

N e w I n s t r u c t i o n

9-81

FUN160  

RW — F R

R e a d / W r i t e F i l e R e g i s t e r

FUN160  

RW — F R

160DP.RW-FR

Sa :

Sb :

Pr :

EN

Operation Control

ERR

L :

Increment

Read/Write

R/W

INC

S a : St a r t i n g a d d r e s s o f d a t a r e g i s t e r

S b : St a r t i n g a d d r e s s o f f i l e r e g i s t e r

P r : P o i n t e r r e g i s t e r

L : Q u a n t i t y o f r e g i s t e r, 1 ~ 5 11

S a o p e r a n d c a n c o m b i n e V、 Z、 P 0 ~ P 9

f o r i n d e x a d d r e s s i n g .

WX

WY

WM

WS

TMR CTR HR

IR

OR

SR

ROR

DR

K

XR

FR

Range

Operand

WX0

WX240

WY0

WY240

WM0

WM1896

WS0

WS984

T0

T255

C0

C255

R0

R3839

R3840

R3903

R3904

R3967

R3968

R4167

R5000

R8071

D0

D4095

V、Z

P0〜P9

F0

F8191

Sa

Sb

Pr

*

*

L

*

1~511

● W h e n o p e r a t i o n c o n t r o l " E N " = 1 o r " E N ↑ " ( P i n s t r u c t i o n ) c h a n g e s f r om 0 → 1 , i t

w i l l p e r f o r m t h e r e a d ( " R / W " = 1 ) o r w r i t e ( " R / W " = 0 ) f i l e r e g i s t e r o p e r a t i o n .

W h i l e r e a d i n g , t h e c o n t e n t o f d a t a r e g i s t e r s s t a r t i n g f r o m S a w i l l b e o v e r w r i t t e n

b y t h e c o n t e n t o f f i l e r e g i s t e r s s t a r i n g f r o m t h e S b a n d p o i n t e r p o i n t e d ; w h i l e

w r i t i n g , t h e c o n t e n t o f f i l e r e g i s t e r s s t a r i n g f r o m t h e S b a n d p o i n t e r p o i n t e d w i l l

b e o v e r w r i t t e n b y t h e c o n t e n t o f d a t a r e g i s t e r s s t a r t i n g f r o m S a ; L i s t h e

o p e r a t i o n q u a n t i t y. T h e a c c e s s o f f i l e r e g i s t e r a p p l i e s t h e c o n c e p t o f R E C O R D

d a t a s t r u c t u r e t o i m p l e m e n t . F o r e x a m p l e , S a = R 0 , S b = F 0 , L = 1 0 , t h e r e a d / w r i t e

d e t a i l s s h o w n a s b e l o w :

Sb

Pr=0

Sa

R0〜R9

( L=10 )

F0〜F9

( L=10 )

F10〜F19

F20〜F29

F30〜F39

( L=10 )

( L=10 )

( L=10 )

Pr=1

Pr=2

Pr=3

background image

N e w I n s t r u c t i o n

9-82

FUN160

RW — F R

R e a d / W r i t e F i l e R e g i s t e r

FUN160

RW — F R

● F o r l a d d e r p r o g r a m a p p l i c a t i o n , o n l y t h i s i n s t r u c t i o n c a n a c c e s s t h e f i l e

r e g i s t e r s .

● T h e p o i n t e r w i l l b e i n c r e a s e d b y 1 a f t e r e x e c u t i o n w h i l e p o i n t e r c o n t r o l i n p u t

" I N C " = 1 .

● T h i s i n s t r u c t i o n w i l l n o t b e e x e c u t e d a n d e r r o r i n d i c a t o r ” E R R " w i l l b e 1 w h i l e

i n c o r r e c t q u a n t i t y ( L = 0 o r > 5 11 ) o r t h e o p e r a t i o n o u t o f t h e f i l e r e g i s t e r ' s

r a n g e ( F 0 〜 F 8 1 9 1 ) .

. W h e n M 0 c h a n g e s f r o m 0

à1, the

c o n t e n t o f f i l e r e g i s t e r s s t a r t i n g f r o m

F 1 0 0 a n d p o i n t e r ( D 0 ) p o i n t e d w i l l b e

o v e r w r i t t e n b y t h e c o n t e n t o f d a t a

r e g i s t e r s R 0 ~ R 4 9 ; t h e r e c o r d l e n g t h

i s 5 0 .

. P o i n t e r w i l l b e i n c r e a s e d b y 1 a f t e r

o p e r a t i o n .

. W h e n M 0 c h a n g e s f r o m 0

à1, the

c o n t e n t o f d a t a r e g i s t e r s R 0 ~ R 4 9 w i l l

b e o v e r w r i t t e n b y t h e c o n t e n t o f f i l e

r e g i s t e r s s t a r t i n g f r o m F 1 0 0 a n d

p o i n t e r ( D 0 ) p o i n t e d ; t h e r e c o r d

l e n g t h i s 5 0 .

. P o i n t e r w i l l b e i n c r e a s e d b y 1 a f t e r

o p e r a t i o n .


Wyszukiwarka

Podobne podstrony:
Serial Read Write manual
Idioms (100) from Speak Read Write com
Read Around Write, Read Around Write
New En File B1 exam, STUDIA, ANG, ang egzamin ustny
6 5 1 1 Class?tivity ?n you read this map
File,2761,en
Read this file if you want to thank me
lets read and write about(2)
write your book in a flash janal en 33473
Red Hat Enterprise Linux 6 Global File System 2 en US
lets read and write about(1)
lets read and write about
Articulation Boards Read File
Red Hat Enterprise Linux 4 Global File System en US
islcollective lets read and write about 4family and friends my uncle 35384d5fa86f75ce44 13324813
Automatyka (wyk 3i4) Przel zawory reg
Automatyzacja w KiC (w 2) Obiekty reg

więcej podobnych podstron