| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Splitting a longword address to bytes in C
This doesnt compile - not sure what im doing wrong.
I need to program 4 locations with each byte of a 32 bit address to set up a dmac controller. The address is of the buffer 'inbuffer' My attempt to set the high byte of inbuffers address is as follows but fails... MAR0AR = ((&inbuffer1[0] &0xff000000 )>>24 ); TIA Robborobbo |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Splitting a longword address to bytes in C |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|