English
Language : 

CC78K4 Datasheet, PDF (420/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Changing the Method of Calculating the Offset of Arrays and Pointers -QH
(Output object of compiler)
When -ML, -QH is not specified (3/3)
; line 16 :
*(iptr - 10) = 7;
movg whl,!!_iptr
incw ax
addg whl,#0FFFFECH
;-20
movw [hl],ax
; line 17 : *(iptr + (-10)) = 8;
movg whl,!!_iptr
incw ax
addg whl,#0FFFFECH
;-20
movw [hl],ax
; line 18 : }
pop
vvp
pop
rp3
pop
uup
ret
/* signed offset calculation */
/* signed offset calculation */
COMPATIBILITY
From another C compiler to this C compiler
• When the index to arrays and pointers is a int/short type variable or char type variable and there is
access to a minus-direction object or access to an object of more than 64 KB, the index is changed to a
long type variable. Otherwise, the -QH option should not be specified.
From this C compiler to another C compiler
• Modification is not required.
420
User’s Manual U15556EJ1V0UM