Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison SimParams.c @ 25:b1c9d67643f2
fixed DEBUG to DEBUG__printf2
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Thu, 24 May 2012 08:14:21 -0700 |
| parents | 8d9d367e96f9 |
| children | 0deed3ee0b02 |
comparison
equal
deleted
inserted
replaced
| 1:0f130b9096eb | 2:40e3de56368e |
|---|---|
| 24 { char *guestAppFileName, *systemCodeFileName; | 24 { char *guestAppFileName, *systemCodeFileName; |
| 25 int numBytesInGuestApp, numBytesInSystemCode; | 25 int numBytesInGuestApp, numBytesInSystemCode; |
| 26 | 26 |
| 27 ParamStruc *param; | 27 ParamStruc *param; |
| 28 | 28 |
| 29 //param = getParamFromBag( "GuestApplicationFileName", paramBag ); | 29 param = getParamFromBag( "GuestApplicationFileName", paramBag ); |
| 30 guestAppFileName = param->strValue; | 30 guestAppFileName = param->strValue; |
| 31 | 31 |
| 32 //param = getParamFromBag( "numBytesInGuestApp", paramBag ); | 32 param = getParamFromBag( "numBytesInGuestApp", paramBag ); |
| 33 numBytesInGuestApp = param->intValue; | 33 numBytesInGuestApp = param->intValue; |
| 34 | 34 |
| 35 simParams->guestApp = | 35 simParams->guestApp = |
| 36 read_Machine_Code_From_File( numBytesInGuestApp, guestAppFileName ); | 36 read_Machine_Code_From_File( numBytesInGuestApp, guestAppFileName ); |
| 37 | 37 |
| 38 //param = getParamFromBag( "SystemCodeFileName", paramBag ); | 38 param = getParamFromBag( "SystemCodeFileName", paramBag ); |
| 39 systemCodeFileName = param->strValue; | 39 systemCodeFileName = param->strValue; |
| 40 | 40 |
| 41 //param = getParamFromBag( "numBytesInSystemCode", paramBag ); | 41 param = getParamFromBag( "numBytesInSystemCode", paramBag ); |
| 42 numBytesInSystemCode = param->intValue; | 42 numBytesInSystemCode = param->intValue; |
| 43 | 43 |
| 44 simParams->systemCode = | 44 simParams->systemCode = |
| 45 read_Machine_Code_From_File( numBytesInSystemCode, systemCodeFileName ); | 45 read_Machine_Code_From_File( numBytesInSystemCode, systemCodeFileName ); |
| 46 | 46 |
| 47 //param = getParamFromBag( "numNodes", paramBag ); | 47 param = getParamFromBag( "numNodes", paramBag ); |
| 48 simParams->numNodes = param->intValue; | 48 simParams->numNodes = param->intValue; |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 uint8 * | 52 uint8 * |
