Skip to main content
\(\newcommand{\doubler}[1]{2#1} \newcommand{\binary}{\mathtt} \newcommand{\hex}{\mathtt} \newcommand{\octal}{\mathtt} \newcommand{\prog}{\mathtt} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section18.6Programming Exercise

1

Write an assembly language program that determines where the I/O memory begins on your Raspberry Pi. Raspbian includes a function, bcm_host_get_peripheral_address for this purpose. It is located in the /opt/vc/lib/libbcm_host.so library. You will need to link your program with this library.

Hint Solution