Freescale-semiconductor StarCore SC140 Manual do Utilizador Página 276

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 760
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 275
7-26 SC140 DSP Core Reference Manual
Static Programming Rules
Rule SR.3
At least one VLES is required between a MOVE-like instruction that writes the SR register and the
following instructions that affect status bits in SR:
DI and EI
DOENn and DOENSHn
CONT/D, BREAK, and SKIPLS
Example 7-44. SR Write to SR Status Bit Update
move.l #<1,sr
di ; not allowed
bmclr #$ffff,sr.h
doen0 #<10 ; not allowed
pop sr
cont _next ; not allowed
Rule SR.4
At least two VLES are required between an instruction that affects the DOVF status bit in EMR and a
MOVE-like instruction that reads or writes the EMR register.
The assembler-mapped instruction CLR Dn never affects the DOVF status bit, even though it is
implemented as SUB Da,Da,Dn. Therefore, this rule applies to the SUB instruction, but not to CLR (SUB
Da,Da,Dn is taken as CLR in this context).
Vista de página 275
1 2 ... 271 272 273 274 275 276 277 278 279 280 281 ... 759 760

Comentários a estes Manuais

Sem comentários