home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 422_01 / libcf / prefix.asm < prev    next >
Encoding:
Assembly Source File  |  1994-03-27  |  623 b   |  19 lines

  1. *
  2. * DDS MICRO-C C-FLEA Runtime Library - Prefix file
  3. *
  4. * Copyright 1991-1994 Dave Dunfield
  5. * All rights reserved.
  6. *
  7.     ORG    $1000        Place code in memory here
  8. * Begin execution here... Setup stack, zero heap & call main()
  9.     LD    #*        Stack below here
  10.     TAS            Set up stack
  11.     CLR            Get zero
  12.     STB    ?heap        Zero heap
  13.     CALL    main        Run main program
  14. * Most embedded programs will never return or exit, however if they
  15. * do, this section of code should do something appropriate, either
  16. * restart the program, or stop the machine. For this system, we will
  17. * simply freeze by entering an infinite loop.
  18. exit    SJMP    *        Loop forever
  19.