Manual CEPR 96 - Balogh technical center

Manual CEPR 96 - Balogh technical center Manual CEPR 96 - Balogh technical center

technical.balogh.rfid.com
from technical.balogh.rfid.com More from this publisher
17.07.2013 Views

Manuel instructions CEPR96 / MRUC20 M96.40.02 SYNTAX Hexadecimal : Mnemonic : EXECUTION COMMENTS JUMP ON COMPARE 1 DATA / 1 VALUE NC 32 NL 09 ADN DVN LI LS 04 JC , ADN,DVN ;LI;LS. JC , ADN,DVN :LABEL1:LABEL2. ACCU. MEMORY ADN (ADN) Compare the avalue at the address ADN and the value DVN. - if (ADN) = DVN next line - if (ADN) < DVN jump to the line : LI or LABEL 1 - if (ADN) > DVN jump to the line : LS or LABEL 2 SYMBOLS DEFINITION LIMITS (ADN) Value at the address ADN DVN Immediate value LI Jump line if (ADN) < DVN LS Jump line if (ADN) > DVN EXAMPLE Compare the value at the address 0 to value 07 - If equal, the program continue on the next line. - if the value at the address 0 < to the value 07, the program continue on the label SMALLER (line 20H). - if the value at the address 0 > to the value 07, the program continue on the label BIGGER (line 30H). hexadecimal : 01 32 10 09 00 07 20 30 04 mnemonic : JC, 0, 7; 20H; 30H. JC, 0, 7 : SMALLER: BIGGER. PAGE 42 IMMEDIATE ADRESSING JUMP ON COMPARE DVN 0 to FFH 0 to FFH 0 to FDH 0 to FDH 32 H JC

SYNTAX Hexadecimal : Mnemonic : EXECUTION COMMENTS EXAMPLE JUMP ON COMPARE N DATA / N VALUES NC 7C NL NB N0 A016 DV0..DVN LI LS 04 LJC,N0,A016,DV0,..DVN :LABEL1 :LABEL 2. AREA TO COMPARE VALUES A016 A016+1 A016+N0 SYMBOLS DEFINITION LIMITS PAGE 43 Manuel instructions CEPR96 / MRUC20 M96.40.02 DV0 DV1 DVn N Number of data to compare A016 First address of the data area LI Jump line number (or label) data < values LS Jump line number (or label) data > values DVN Values See memory mapping 7CH LJC The data area to compare id defined by a strating address A016 and the number N of data to compare. The address A016 is the MSB of the area to compare. Compare the values of the data area and the immediate values: - if the N data < N values (DVN) jump to the label INF - if the N data > N values (DVN) jump to the label SUP - if the N data = N values (DVN) continue on the next line. Compare 3 data from the address 800H of the memory to 3 immediate values (1,2,3). - if data = values then continue on the next line - if data > values then jump on the label INF. - If data < values then jump on the label SUP. Mnemonic : LJC,3,800H,1,2,3:INF:SUP.

SYNTAX<br />

Hexadecimal :<br />

Mnemonic :<br />

EXECUTION<br />

COMMENTS<br />

EXAMPLE<br />

JUMP ON COMPARE<br />

N DATA / N VALUES<br />

NC 7C NL NB N0 A016 DV0..DVN LI LS 04<br />

LJC,N0,A016,DV0,..DVN :LABEL1 :LABEL 2.<br />

AREA TO COMPARE VALUES<br />

A016<br />

A016+1<br />

A016+N0<br />

SYMBOLS DEFINITION LIMITS<br />

PAGE 43<br />

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

DV0<br />

DV1<br />

DVn<br />

N Number of data to compare<br />

A016 First address of the data area<br />

LI Jump line number (or label) data < values<br />

LS Jump line number (or label) data > values<br />

DVN Values<br />

See memory<br />

mapping<br />

7CH<br />

LJC<br />

The data area to compare id defined by a strating address A016 and the number N of data<br />

to compare. The address A016 is the MSB of the area to compare.<br />

Compare the values of the data area and the immediate values:<br />

- if the N data < N values (DVN) jump to the label INF<br />

- if the N data > N values (DVN) jump to the label SUP<br />

- if the N data = N values (DVN) continue on the next line.<br />

Compare 3 data from the address 800H of the memory to 3 immediate values (1,2,3).<br />

- if data = values then continue on the next line<br />

- if data > values then jump on the label INF.<br />

- If data < values then jump on the label SUP.<br />

Mnemonic : LJC,3,800H,1,2,3:INF:SUP.

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

Saved successfully!

Ooh no, something went wrong!