17.07.2013 Views

Manual CEPR 96 - Balogh technical center

Manual CEPR 96 - Balogh technical center

Manual CEPR 96 - Balogh technical center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Manuel instructions <strong>CEPR</strong><strong>96</strong> / MRUC20 M<strong>96</strong>.40.02<br />

SYNTAX<br />

Hexadecimal :<br />

Mnemonic :<br />

EXECUTION<br />

COMMENTS<br />

EXAMPLE<br />

BITS SHIFT<br />

NC 73 NL NB NR N0 A016 04<br />

ROT,NR,N0,A016.<br />

A016<br />

LEFT SHIFT<br />

A016+1<br />

RIGHT SHIFT<br />

A016+N0<br />

Data table<br />

The data table is define by an address and a number of bytes.<br />

The address A016 is the MSB of the data table.<br />

If NR is beetwen 01H and 7FH : 1 to 127 left shift will be done<br />

If NR is beetwen 81H and FFH: 127 to 1 right shift will be done<br />

NOTE: If NR = 0 or NR = 80H the instruction is not processing.<br />

SYMBOLS DEFINITION LIMITS<br />

NR Direction and number of shift to do<br />

N Number of bytes for the data table<br />

A016 Address of the data table<br />

Processing to 10 left shifts on 4 data stored at the address 800h.<br />

Mnemonic : ROT,0AH,4,800H.<br />

Before After<br />

800H 801H 802H 803H 800H 801H 802H 803H<br />

0 FFH FFH 0 FFH FCH 00 03<br />

PAGE 34<br />

1 to FFH<br />

execpt 80H<br />

see memory<br />

mapping<br />

73H<br />

ROT

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!