diff frbl/test/frbl2.c @ 335:10d62a3bfeec

frbl2test: L command addr and nwords need to be sent in LE byte order
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 07 Mar 2020 05:56:32 +0000
parents 7df08926a4e7
children
line wrap: on
line diff
--- a/frbl/test/frbl2.c	Sat Mar 07 02:26:59 2020 +0000
+++ b/frbl/test/frbl2.c	Sat Mar 07 05:56:32 2020 +0000
@@ -134,12 +134,12 @@
 	unsigned nwords;
 
 	nwords = codeimage_len >> 1;
-	fluid_download_cmd[1] = loadaddr >> 24;
-	fluid_download_cmd[2] = loadaddr >> 16;
-	fluid_download_cmd[3] = loadaddr >> 8;
-	fluid_download_cmd[4] = loadaddr;
-	fluid_download_cmd[5] = nwords >> 8;
-	fluid_download_cmd[6] = nwords;
+	fluid_download_cmd[1] = loadaddr;
+	fluid_download_cmd[2] = loadaddr >> 8;
+	fluid_download_cmd[3] = loadaddr >> 16;
+	fluid_download_cmd[4] = loadaddr >> 24;
+	fluid_download_cmd[5] = nwords;
+	fluid_download_cmd[6] = nwords >> 8;
 }
 
 static int