Copy the off-screen bitmap buffer to the screen

Listing 4 calls the blit function to copy the contents of the off-screen bitmap buffer to the screen.

Listing 4. Copy the off-screen bitmap buffer to the screen.
  blit(buffer,screen,0,0,0,0,256,256);