help beginner please !

Now i want to write a program game (shooting game).  i want to know
technic write graphics on port, technic use sound blaster,
technic fastwritebitmap on screen and swap page on mode 640 x 480 x 256
and any technic or source code of game programming

                                         Thanks you.
                                         Kong Beng