Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

16-bit MCU and DSC Programmer’s Reference Manual
DS70157F-page 234 © 2005-2011 Microchip Technology Inc.
Words: 2
Cycles: 2
Example 1:
002000 LOOP6: DO #5, END6; Initiate DO loop (6 reps)
002004 ADD W1, W2, W3; First instruction in loop
002006 . . .
002008 . . .
00200A END6: SUB W2, W3, W4; Last instruction in loop
00200C . . .
Before
Instruction
After
Instruction
PC 00 2000 PC 00 2004
DCOUNT 0000 DCOUNT 0005
DOSTART FF FFFF DOSTART 00 2004
DOEND FF FFFF DOEND 00 200A
CORCON 0000 CORCON 0100 (DL = 1)
SR 0001 (C = 1) SR 0201 (DA, C = 1)
Example 2:
01C000 LOOP12: DO #0x160, END12; Init DO loop (353 reps)
01C004 DEC W1, W2; First instruction in loop
01C006 . . .
01C008 . . .
01C00A . . .
01C00C . . .
01C00E CALL _FIR88; Call the FIR88 subroutine
01C012 NOP
01C014 END12: NOP; Last instruction in loop
; (Required NOP filler)
Before
Instruction
After
Instruction
PC 01 C000 PC 01 C004
DCOUNT 0000 DCOUNT 0160
DOSTART FF FFFF DOSTART 01 C004
DOEND FF FFFF DOEND 01 C014
CORCON 0000 CORCON 0100 (DL = 1)
SR 0008 (N = 1) SR 0208 (DA, N = 1)

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh