Preparing a diskette for programming assignments in CSC 241

READ APPENDIX D OF YOUR TEXTBOOK CAREFULLY.

  1. Start with a clean floppy diskette. The following directions assume that no subdirectories exist on the floppy.
  2. Copy the file libepc.h from the libepc directory on the CD-ROM accompanying the book to the floppy. The C programs that you write will have a line of the form #include "libepc.h". The gcc compiler will include the contents of the file into your program.
  3. Copy the file ldscript.exe from the ldscript directory on the CD-ROM accompanying the book to the floppy. Execute this file by issuing the following command at the DOS command prompt:    ldscript    >link.cmd      This creates the file link.cmd on your floppy which is used by the linker (ld) to create an executable version of your programs.
  4. Make your floppy bootable.
    1. Using the command prompt switch over to the CD drive of your machine. This is done using a command like E: or F:, depending on how the drives are named on your machine. 
    2. Change to the bootload directory on the CD by executing cd  bootload. 
    3. Execute the command copyboot   a: .    The copyboot program copies the file bootload.bin onto the bootsector of your floppy. You can now boot a computer using the floppy.