Page 1 of 1

IMPORT Main?

Posted: Mon Jan 03, 2011 12:14 pm
by Helpdesk
Where is it defined what user start-up function is called by the import "main()" ?

Re: IMPORT Main?

Posted: Mon Jan 03, 2011 12:22 pm
by cfbsoftware
Main is not documented separately. It's a 140-line module which performs the following startup actions:
  • Copies the interrupt area to mapped memory
  • Installs the Trap Handler
  • Sets Memory mapping control to User RAM Mode
  • Enables the Memory Accelerator Module
  • Initialises UART0 at 38400 baud for runtime error trapping
The source code is included in the Personal and Professional Editions.