diff modules/bytearray.tp @ 180:270d31c6c4cd

Add support for jmps and labels in x86 module
author Mike Pavone <pavone@retrodev.com>
date Sat, 24 Aug 2013 15:08:00 -0700
parents e823e104b845
children fb922651db29
line wrap: on
line diff
--- a/modules/bytearray.tp	Sat Aug 24 09:56:29 2013 -0700
+++ b/modules/bytearray.tp	Sat Aug 24 15:08:00 2013 -0700
@@ -59,10 +59,7 @@
 		}
 		ba <- executable: totalSize
 		bytes fold: 0 with: :idx el {
-			el fold: idx with: :idx byte {
-				ba set: idx byte
-				idx + 1
-			}
+			el flattenTo: ba at: idx
 		}
 		ba
 	}