changeset 135:fe117454a1e7

Adjustments to dts/dtb
author lost@l-w.ca
date Wed, 17 Aug 2011 19:44:32 -0600
parents 09021ba6d755
children b78b2f1e011e
files lwasm/pseudo.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pseudo.c	Wed Aug 17 19:44:26 2011 -0600
+++ b/lwasm/pseudo.c	Wed Aug 17 19:44:32 2011 -0600
@@ -38,14 +38,12 @@
 // for "dts"
 PARSEFUNC(pseudo_parse_dts)
 {
-	skip_operand(p);
-}
-
-EMITFUNC(pseudo_emit_dts)
-{
 	time_t tp;
 	char *t;
 	
+	skip_operand(p);
+	l -> len = 0;
+
 	tp = time(NULL);
 	t = ctime(&tp);
 
@@ -53,13 +51,19 @@
 	{
 		lwasm_emit(l, *t);
 		t++;
+		l -> len += 1;
 	}
 }
 
+EMITFUNC(pseudo_emit_dts)
+{
+}
+
 // for "dtb"
 PARSEFUNC(pseudo_parse_dtb)
 {
 	skip_operand(p);
+	l -> len = 6;
 }
 
 EMITFUNC(pseudo_emit_dtb)