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

JUMP ON COMPARE<br />

1 DATA / 1 VALUE<br />

NC 32 NL 09 ADN DVN LI LS 04<br />

JC , ADN,DVN ;LI;LS.<br />

JC , ADN,DVN :LABEL1:LABEL2.<br />

ACCU. MEMORY<br />

ADN<br />

(ADN)<br />

Compare the avalue at the address ADN and the value DVN.<br />

- if (ADN) = DVN next line<br />

- if (ADN) < DVN jump to the line : LI or LABEL 1<br />

- if (ADN) > DVN jump to the line : LS or LABEL 2<br />

SYMBOLS DEFINITION LIMITS<br />

(ADN) Value at the address ADN<br />

DVN Immediate value<br />

LI Jump line if (ADN) < DVN<br />

LS Jump line if (ADN) > DVN<br />

EXAMPLE<br />

Compare the value at the address 0 to value 07<br />

- If equal, the program continue on the next line.<br />

- if the value at the address 0 < to the value 07, the program continue on the label<br />

SMALLER (line 20H).<br />

- if the value at the address 0 > to the value 07, the program continue on the label<br />

BIGGER (line 30H).<br />

hexadecimal : 01 32 10 09 00 07 20 30 04<br />

mnemonic : JC, 0, 7; 20H; 30H.<br />

JC, 0, 7 : SMALLER: BIGGER.<br />

PAGE 42<br />

IMMEDIATE ADRESSING<br />

JUMP ON<br />

COMPARE<br />

DVN<br />

0 to FFH<br />

0 to FFH<br />

0 to FDH<br />

0 to FDH<br />

32 H<br />

JC

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

Saved successfully!

Ooh no, something went wrong!