emulationFIRST v0.04

Hopefully this will be the last of the release-a-day builds. I think I’ve fixed the crashing problems. If they still persist, please send me whatever output information you can get from them. As well as fixing bugs, this release also should fully support EEPROM (via DATA, READ, and WRITE commands). I want to check and make sure that EEPROM is accessed on a per program slot basis (ie each program slot has its own slice of EEPROM and can’t access the EEPROM of other program slots). That is how I implemented it. There also is some support for the DEBUG command but it’s not complete by any stretch of the imagination. Please test it out and send in bug reports.

As always, available here:
http://www.rit.edu/~msl8101/emulationFIRST/

Matt
(And yes, I did update the links this time :wink: ).

is it a bad thing if i get a big error message (from windows) that emualtionFIRST has failed and had to be shut down? it seems to work with the default code, but when i tried it with the code from the robot, which does include EEPROM access, it seems to horribly fail. any ideas?

Yes it’s a bad thing. If you send me a copy of your code, I can try and figure out where emulationFIRST is dying. There are probably numerous bugs throughout the code and it just needs various test cases (aka code segments) to test it out.

Matt

well, the strange part is, it breaks when it’s parsing the code. i hit enter and it died. and the robot code isn’t all that readable, cause me and dan (more me i think) were somewhat lazy this year. if you want it though, give me your email and i’ll send it.

Here’s what I see when I run this year’s BeachBot code through it:


C:\Robots\2002\FloridaFiles\BeachBotSW\2002-April-26\Processed>EmulationFIRST BeachBot2002.bsx BB2002MainLoop.bsx BB2002OutputData.bsx
Error: parse error.
Parse error, line: 444.
Error with line:
   for temp2=1 to temp1
Error: parse error.
Parse error, line: 444.
Error with line:
   for temp2=1 to temp1
Parse error, line: 444.
Error with line:
   for temp2=1 to temp1
SError: parse error.
Parse error, line: 574.
Error with line:
 if not (IN3 = 0) then SPPL0000
Parse error, line: 574.
Error with line:
 if not (IN3 = 0) then SPPL0000
Parse error, line: 574.
Error with line:
 if not (IN3 = 0) then SPPL0000
Parse error, line: 574.
Error with line:
 if not (IN3 = 0) then SPPL0000
Parse error, line: 574.
Error with line:
 if not (IN3 = 0) then SPPL0000


Input Values:

oi_swA=

I can tell you that the first part of your errors is because for loops aren’t implemented. I’m not too sure about the second part but I think it may be because I haven’t included IN3 as a variable/reference. Hopefully I’ll fix both of those for the next release.

Matt who’s back from Indiana finally

does your emulator have to be run with the FIRST stamp code or can it handle any pbasic program? E.G. the one I posted in another thread…

Unfortunately it only works with code designed to run on the InnovationFIRST controller. It doesn’t really do anything with pin outs etc.

Matt