about summary refs log blame commit diff stats
path: root/999spaces.cc
blob: e7cd85095e7356b38d9eb7b3c3a1d43668cf1768 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                              


                                                                           



                                                        

                                                                                                    

                                          
                                                                                                                           

                                   


                                 

                                                             
                                                            
//: Since different layers all carve out different parts of various namespaces
//: (recipes, memory, etc.) for their own use, there's no previous place where
//: we can lay out the big picture of what uses what. So we'll do that here
//: and just have to manually remember to update it when we move boundaries
//: around.
//:
//:: Memory
//:
//: Location 0 - unused (since it can help uncover bugs)
//: Locations 1-899 - reserved for tests
//: Locations 900-999 - reserved for predefined globals in mu scenarios, like keyboard, screen, etc.
:(before "End Setup")
assert(Max_variables_in_scenarios == 900);
//: Locations 1000 ('Reserved_for_tests') onward - available to the allocator in chunks of size Initial_memory_per_routine.
assert(Reserved_for_tests == 1000);

//:: Recipes
//:
//: 0 - unused (IDLE; do nothing)
//: 1-99 - primitives
//: 100-999 - defined in .mu files as sequences of primitives
//: 1000 onwards - reserved for tests, cleared between tests