IMPORT Main?

Newcomers to Astrobe and Oberon are welcome to ask any beginner-level questions here
Post Reply
Helpdesk
Posts: 33
Joined: Sat Jan 01, 2011 5:43 am
Contact:

IMPORT Main?

Post by Helpdesk » Mon Jan 03, 2011 12:14 pm

Where is it defined what user start-up function is called by the import "main()" ?

cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: IMPORT Main?

Post by cfbsoftware » Mon Jan 03, 2011 12:22 pm

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.

Post Reply