Here's an odd little problem I came across.
If a structure contains 3 or less (single byte) variables. It only clears the first byte of the structure. For instance...
Code: Select all
Structure Astruct
A As Byte
B As Byte
C As Byte
End Structure
Dim STvar As Astruct
Clear(STvar)
End
Code: Select all
I0_F1_000023 ; L#MK CLEAR(STVAR)
CLRF M0_U24,0
Code: Select all
Structure Astruct
A As Byte
B As Byte
C As Byte
D As Byte
End Structure
Code: Select all
I0_F1_000023 ; L#MK CLEAR(STVAR)
CLRF M0_U32HHH,0
CLRF M0_U32HH,0
CLRF M0_U32H,0
CLRF M0_U32,0
Don't need an immediate fix, as the workaround is easy enough. Just something for your TO-DO list.