Assuming you have your compiler and linker already set up to compile/build and upload the code and you don't need much. Once you are in the main function, set up the output pin (i.e. via the direction register) and toggle it after a delay of 100us.
A much better way is to use hardware timers, which allow you to configure a couple registers to generate the square wave without using CPU resources.