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 />

ADDITION N DATA/N VALUES<br />

IMMEDIATE ADDRESSING<br />

NC 78 NL NB N0 A016 DV0..DVN 04<br />

LADD,N0,A016,DV0,..DVN.<br />

DATA TABLE<br />

A016<br />

A016+1<br />

A016+N0<br />

+<br />

result<br />

SYMBOLS DEFINITION LIMITS<br />

PAGE 28<br />

VALUES<br />

DV0<br />

DV1<br />

DVn<br />

78H<br />

LADD<br />

The data table is define by a starting address and the number of values to add. The<br />

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

If the instruction has much data (DVN) as expected the excess data are ignored.<br />

N0 Number of bytes to use for doing the operation<br />

A016 Address of the data table<br />

DVN values to add with the data table<br />

Add 3 values (1,2,3) to 4 data stored at the address 800H.<br />

Mné : LADD,4,800H,1,2,3.<br />

before<br />

after<br />

see memory<br />

mapping<br />

data table values<br />

0800H 0801H 0802H 0803H DV0 DV1 DV2<br />

0 FFH FFH 0 + 1 2 3<br />

1 1 1 3<br />

result

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

Saved successfully!

Ooh no, something went wrong!