摘要 |
PURPOSE:To relieve remarkably the load of a CPU side by judging whether or not a memory area is in use to seek the idle area of a size requested by a task, thereby allowing a device other than the CPU to assign data to the task. CONSTITUTION:When a command MALC10 is received from a master CPU, an error in an input data is checked and when not error is detected, a memory map MEMMAP is checked and whether or not a requested work memory is idle is checked and when an idle area is found out, ''1'' is set to the corresponding bit on the memory map MEMMP by a size request by the task outputting the command. A respective value is set to a head address of an occupied memory and size in a task control block TCB and the occupied memory and head address of an occupied memory and size in a task control block TCB and the occupied memory and head address are written in a command parameter register CPIO. A normal end code is set to a command/status registor CNST finally and the routine restors to a main routine.
|