[an error occurred while processing this directive]
Ответ:
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено vitalogy 11 января 2002 г. 14:00
В ответ на: Ответ: отправлено Mik 11 января 2002 г. 13:28

вот следующие основные правили для написания User command
General Rules:
1. The code must be written for an 68040CPU. it will execute in user mode, with interrupts disabled(level 7)

2. The code must be position-independent

3. All CPU general registers and floating point coprocessor register may be used without saving and restoring their contents.System support routines may alter the contents of CPU registers D0,D1,A0,A1,FPO,FP1. All other register contents are preserved across calls to these routines

4. The user code is entered at the initial load address by a JSR instruction

5. Return from User code is by means of an RTS instruction, with the stack pointer unchanged from its value on entry.

6. the S-record entries defining a user-code block must be presented in order of increasing addresses, but it is not necessary to load every location within the block. Space is reserved from the first byte loaded to the last byte; any uninitialized address space used for temporary storage must lie between the 1st and last initialized addresses.The initial load address specified by the S-record is irrelevant; the actual load address of the code is determined when the database is compiled.

Вот это вся имеющаяся информация.Куда загружается база данных, как компилится я не знаю.Сколько отводится байтов под юзерские даннве,наверно, можно узнать , порывшись в бумагах, что ж учтем этот пункт.

Но у меня закралось подозрение, что в user stack нет ссылки на Array of system pointers, либо Array of system pointers не содержит указателей на адреса указанных подпрограмм (абсурдно как то).
Такое может быть ????

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru