11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

DEBUGcc Enter Debug Mode Conditionally DEB U G ccExample:CMP YO, BDEBUGge; Compare register YO with the B accumulator.; Enter the debug mode if; the previous test result is "greater than".Explanation <strong>of</strong> Example: The results <strong>of</strong> the comparison between YO and B will berecorded in the status register bits. The conditional debug instruction looks at the conditions(for greater than or equal in this case) and if they are met (N ffi V=O) then theDEBUG instruction will be executed. The chip enters the debug mode after the instructionfollowing the DEBUG instruction has entered the instruction latch. The chip pulseslow the DSO line to inform the external command controller that it has entered the debugmode and that the chip is waiting for commands.Instruction Format:DEBUGccOpcode:23 16 15 8 7 010 0 0 o 0 0 0 o I 0 0 0 0 0 0 1 1 I 0 0 0 0 c c c c IInstruction Fields:Mnemonic c c c c Mnemonic c c c cCC (HS) 0 0 0 0 CS (LO) 0 0 0GE 0 0 0 1 LT 0 0 1NE 0 0 1 0 EQ 0 1 0PL 0 0 1 1 MI 0 1 1NN 0 1 0 0 NR 1 0 0EC 0 1 0 1 ES 1 0 1LC 0 1 1 0 LS 1 1 0GT 0 1 1 1 LE 1 1 1Timing: 4 oscillator clock cyclesMemory: 1 program word

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

Saved successfully!

Ooh no, something went wrong!