I have a program where I have an array of memory called hypomem[10000]. I have implemented a cpu simulator which loads a program into hypomem, then executes the program (which is written in machine language) by doing operations such as add, subtract, etc. I am now writing simulator functions for an operating system so I can load more than one program and have a scheduler run the programs according to priority. What i need to do is use linked lists to allocate portions of the hypomem for different things. I cannot use the "new" since that will not allocate it in the hypomem, it will allocate it in the machines main memory. Does anyone know how I would go about this? Are there any programs out there that someone can post that will show me how this works? Any help is appreciated.



LinkBack URL
About LinkBacks



what i'd suggest is making your own function that will return a "pointer" to a spot in your hypomem. for example: