summary refs log tree commit diff
path: root/lisc/parse.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-23 13:50:26 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-30 13:20:42 -0400
commit04b66d38db182390642f8da38b883750208b4835 (patch)
tree6b2a1c6207805131e83277df564bd07aed9ec4e1 /lisc/parse.c
parentb33febc25cce5c836bad952da472f6a54e777ed8 (diff)
downloadroux-04b66d38db182390642f8da38b883750208b4835.tar.gz
start integrating RAMem references
Diffstat (limited to 'lisc/parse.c')
-rw-r--r--lisc/parse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisc/parse.c b/lisc/parse.c
index d0ac325..aa311c4 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -820,8 +820,8 @@ printref(Ref r, Fn *fn, FILE *f)
 			diag("printref: invalid constant");
 		}
 		break;
-	case RASlot:
-		fprintf(f, "S%d", r.val & AMask);
+	case RSlot:
+		fprintf(f, "S%d", r.val);
 		break;
 	case RACall:
 		fprintf(f, "%x", r.val & AMask);
@@ -829,6 +829,9 @@ printref(Ref r, Fn *fn, FILE *f)
 	case RAType:
 		fprintf(f, ":%s", typ[r.val & AMask].name);
 		break;
+	case RAMem:
+		fprintf(f, "[]");
+		break;
 	}
 }