Download OS-9 Technical User Manual
Transcript
Appendix C User-state System Calls F$DatMod Create Data Module ASM Call OS9 F$DatMod Input d0.l CRC) d1.w d2.w d3.w d4.l (a0) = size of data required (not including header or = = = = = desired attr/revision desired access permission desired type/language (optional) memory color type (optional) module name string ptr = = = = = module type/language module attr/revision updated name string ptr module data ptr (’execution’ entry) module header ptr Output d0.w d1.w (a0) (a1) (a2) Error Output cc = carry bit set d1.w = error code if error Function F$DatMod creates a data module with the specified attribute/revision and clears the data portion of the module. The module is initially created with a valid CRC, and entered into the system module directory. Several processes can communicate with each other using a shared data module. Be careful not to modify the data module’s header or name string to avoid the possibility of the module becoming unknown to the system. C-16
Related documents