From e05847550c276debb831eb4853474b0da38614ef Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Apr 2015 17:46:43 -0700 Subject: 1061 --- cpp/027space | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cpp/027space') diff --git a/cpp/027space b/cpp/027space index 7794db23..9d3ef572 100644 --- a/cpp/027space +++ b/cpp/027space @@ -71,3 +71,17 @@ int address(int offset, int base) { //? cout << "AAA " << Current_routine.calls.top().default_space << '\n'; //? 1 return; } + +:(scenario "get_default_space") +recipe main [ + default-space:address:space <- copy 10:literal + 1:integer/raw <- copy default-space:address:space +] ++mem: storing 10 in location 1 + +:(after "vector read_memory(reagent x)") + if (x.name == "default-space") { + vector result; + result.push_back(Current_routine.calls.top().default_space); + return result; + } -- cgit 1.4.1-2-gfad0