Exact match. Not showing close matches.
PICList
Thread
'[SX] SXSim for MS Windows'
2005\06\04@204249
by
ForumAdmin
|
|
Are you thinking about adding support for external events?
It would be nice if I could get time events from SXsim.
Then return events that update external pins of the part.
The RPC interface could be a socket.
This would allow a more extensive simulation and a scope trace generation.
I would code my piece in python, making it very simple to create new sims.
I'm very impressed by the amount of effort you've put into this.
Thanks for a nice tool
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m76116
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\06\06@113735 by ForumAdmin
|
|
Hi Darell,
well, I'm thinking of an enhanced I/O panel which allows to set input pins to some certain state after a definable number of simulated clock cycles has been elapsed, i.e. some kind of "stimulus generator".
SXSim also already has code built in for a new logic analyzer window that displays the states of port pins as function of elapsed time or clock cycles. I still have a lot of work to do on this - therefore, it is hidden for now, and there is no button in the control panel to activate it.
I'm open to dicuss your ideas in more detail - could you please specify what you mean with "external events". Do you mean "real" level changes imported into SXSim via some kind of an interface, or "stimulated" events injected by some software?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m76261
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\06\11@115558 by ForumAdmin
|
|
New SXSim 2.06 Version posted.
Please check the first post in this thread for the new version of SXSim that I have just uploaded. As usual comments, suggestions and bug reports are always welcome.
Have Fun!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m76927
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\06\16@065512 by ForumAdmin
|
|
Hi again,
I can confirm my previously reported bug is now fixed - thanks for the update.
I've still got a slight issue with the "JMP PC+W" command in SXsim 2.06 though:
With a program running in turbo mode, the cycle counter increments by 4 when a "JMP PC+W" is executed, but according to the SX datasheet it takes 3 cycles,
same as a "JMP" (I've not timed it on a real SX however..)
Regards,
Phil
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m77476
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\06\16@105219 by ForumAdmin
|
|
Phil,
thanks for the new bug report - you are right, like a JMP, the JMP PC+W takes three clock cycles instead of four as in the current version of SXSim. I have already fixed this - it will be available in the next version.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m77500
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Hi Folks,
this is just to let you know that I did not forget about SXSim. I do have a new version in the pipeline.
As you may have noticed, SXSim has now been integrated into the SX-Key IDE. For this integration, Peter and I had to add some internal code to both programs, and currently, we are working on a different method how both programs communicate with each other. Therefore, I don't feel happy releasing an intermediate new version of SXSim right now, as this might cause compatibility problems. Therefore, please be patient, and stay tuned.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m84430
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Hi Gunther,
I'm stumped! I added the following lines to "Toggle.SXB" and tried to run it with SXsim 2.06.02. I get the wrong results on two different computers.
TEMP1 VAR Byte
TEMP2 VAR ByteMAIN:
TEMP1 = 50/10
TEMP2 = __REMAINDER
With Device SX18..., I get TEMP1 as $07, TEMP2 as $14.With Device SX28..., I get TEMP1 as $02, TEMP2 as $0A.
I tried the Temp2=50//10 with the same results.
Running it on a SX28 works just fine. I'm probably missing something simple..I just cant figure it out.
Paul
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90473
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\10\05@132234 by g_daubachn/a
|
|
Hi Paul,
as you know, SXSim reads the LST files generated by SASM. So could you please eMail (g.daubach@mda-burscheid.de) me both list files (the one for the SX18 and the one for the SX28). This would be of great help for me to fix any possible SXSim bug.
Thanks in advance!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90524
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Sent the files as requested.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90620
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\10\06@130827 by g_daubachn/a
|
|
Hi Paul,
this is a tricky one...
When SX/B generates code for an SX18/20, it defines addresses $07 for __PARAM1, $08 for __PARAM2, etc. When generating code for the SX28, the addresses have an offset of 1, i.e. __PARAM1 is located at $08, etc. This is because the SX28 maps port C into address $07, where an SX18/20 device, not supporting port C allows to use address $07 as a "regular" register. I did not check the SXSim code in detail do far, but I'm pretty sure that I forgot to handle address $07 correctly. IOW, for now, SXSim assumes that $07 is mapped to port C even when it simulates an SX18/20. Because of this, you may write to $07 whatever you want but when reading $07, SXSim will return the status of the (non-existing) simulated port C bits instead of what you have written to $07 before.
Having noticed that, I'll also have to check if this is handled correctly for the simulated SX48/52 devices with the additional ports D and E mapped into $08 and $09.
I have added this topic to my SXSim TODO list, and I'll take care of it as soon as possible.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90625
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Thanks Gunther... but does this explain why I'm getting 50/10 = 2 remainder 10 on the SX28... not 5 remainder 0?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90732
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\10\08@014635 by g_daubachn/a
|
|
Paul,
you are right, this does not explain why you are getting 50/10 = 2 remainder 10 on the SX28. So I checked the SXSim code in more detail, just to find out that the SKIP instruction was not always handled correctly.
When you look at part of the SX/B generated code for the division, it contains the following instructions:
141 0048 006B CLR __PARAM4
142 0049 0403 CLC
143 004A 0702 SKIP
144 004B 0369 RL __PARAM2
145 004C 02AB INC __PARAM4
146 004D 07E9 JNB __PARAM2.7,@$-2
The SKIP instruction causes the next RL __PARAM2 instruction to be skipped when the code is executed "straight through". Later, the JNB __PARAM2.7, @$-2 causes a jump back to the RL instruction if necessary.
In SXSim, the SKIP did not perform as expected here, i.e. it did _not_ skip the RL __PARAM2 which caused the wrong result. I have fixed this in SXSim, and I'm now getting 5 remainder 0 as expected.
Nevertheless, there is still the problem with address $07 when SXSim simulates an SX18 or 20. Before releasing a new version of SXSim, I want to get that fixed as well, so please be patient.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90795
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
No worries, Gunther.
As you know I'm still pretty green at this stuff. I was just suprized that _divide_ had an erronious results when running it in SXsim. Surely I'm not the first to divide something. But I'm glad it's fixed and look forward to the results. Have a great weekend.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m90823
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Günther,
Is there anyway to "WATCH" a variable ? Like the debugger does ?
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94150
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\01@144833 by g_daubachn/a
|
|
Terry,
watching variables in SXSim is an important feature on my personal wish list. IOW, I'll work on it if I only had the time...
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94302
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\04@105547 by kingnebn/a
|
|
When I run the SX key software how come SXSim throws runtime error '339'. At the same time a yes/no messagebox pops up and says, "Do you want to update version 0.0 to 2.something.something".
Thank You
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94741
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\04@111846 by Jon Williamsn/a
|
|
King,
Had you taken a moment read the first post in this thread you would find:
Some users hat trouble running SXSim due to a missing or incompatible COMDLG32.OCX file on their Windows machine. If you have similar trouble, download the OCX file attached to this post, and copy it into the folder containing SXSim. Please do NOT copy this file into the Windows\System32 folder as this would overwrite a version eventually required for other applications.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94750
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\04@113504 by PJMontyn/a
|
|
KN,
You were told to read the SxSim sticky in your original post which I see you have now asked to be removed. Instead you came to the SxSim sticky and posted your complaint/question again. Stop asking for help and then ignoring the answer. The answer given was not, "Please post your question in the sticky thread." The answer from Bean was, "Read through the SXSim "sticky" post...".
If someone says to read the sticky, then read the damn sticky. I was going to cut and paste the part of the sticky with the answer to show that the answer is there, but then I decided against it. If you're too lazy to do your part to help yourself then I'm far too busy to waste my time holding your hand and spoon feeding you the answer to your problem.
I have used all my restraint to not unleash a torrent on invective on you the likes of which would melt your CRT.
[list]PeterM[/list]
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94752
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\04@121935 by kingnebn/a
|
|
Sorry but you thought wrong. I felt it would be more appropiate here. I also have second thoghts. If I had the authority I would remove it myself. STOP MOUTHING OFF. :mad: :mad: :mad: :mad: :mad: :mad: :devil: :devil: :devil: :mad: :mad: :mad: :mad: :mad: :mad:
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94757
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\04@122031 by kingnebn/a
|
|
Thank you Jon
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m94758
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\10@022425 by g_daubachn/a
|
|
Hi SXSimmers,
I have uploaded a new version of SXSim (2.7) - you'll find it in the topmost post of this thread. In this version various bugs have been fixed, and I did some "fine-tuning". Have fun!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m95620
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\18@180044 by mrchadwickusan/a
|
|
Hi Günther,
I've gotten back into doing some testing of code with SXSim. What a wonderful job you have done with this tool! Terrific for making quick tests without having to break out the SX key, proto board, etc.
I have a feature request.
With the SX key debugger in polled mode, it will update the display when it hits the breakpoint then keep going. It would be nice if in RUN mode of SXSim, you could set a break point where the display would be updated, but keep running. To make this useful you would have to be able to turn on and off the 1 second automatic update.
The reason I would like this is that I've been playing with routines to convert binary to BCD. There are some very nice ones on SXlist. I wanted to test what the minimum and maximum execution times were for all two byte numbers from 0 to 65535.
So I wrote a little test program to run through the conversion of all the numbers and using the RTCC keeps track of the number of cycles, and saves the min and max.
Seems to be working OK with SXsim. But, when running the program, it would be very nice to have it update the display after every conversion, in stead of every second. I could see even adding another counter to provide a break point to update the display every 10 or 100 numbers to speed up the testing.
Thanks,
Mike Chadwick
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m96986
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\19@013436 by g_daubachn/a
|
|
Hi Mike,
in my opinion, this is one of the most valuable feature requests I ever got!
As you know, I use these little check boxes at the beginning of the list lines to mark a breakpoint. What you are suggesting is kinda "watchpoint" or "pollpoint" for the run mode. I.e. instead of halting program execution, the display would be refreshed instead when coming across a breakpoint. With the "watchpoint" mode active, the one-second display refresh would be disabled.
I think this feature will not be too hard to implement - let me see...
Thanks a lot for this hint!
Günther
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=6&m=53539#m97007
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\19@142346 by Peter Van der Zeen/a
|
|
Hello Guenther;
I am beginning to having a go at using the SXSim for some development work, and find it an incredibly useful tool. There is one annoyance however, everytime I "reset" the software, the memory contents are re-scrambled. I believe this was a feature to simulate real silicon from a cold boot. Of course real silcon does not scramble its contents from a reset.
Frequently I load some initializing parameters from memory which then get corrupted every time, and need to be reset by hand. ARGGGG!!!!
Is it possible to add a button that will disable the scrambling feature? It sure will save some time and aggravation.
And while I'm whining; while hand-entering values into memory could the arrow keys (rather than the inconvenient mouse) be used to navigate through the registers; that then also automatically locking in any new memory value on moving off that location?
Just some thoughts to make a great product even more convenient.
Cheers,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m97072
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\19@162826 by g_daubachn/a
|
|
Hello Peter,
it's really funny - as far as I can remember, I have added this "scramble-on-reset" feature a while ago because some users were asking for it.
As you know, SXSim - for now - does not have a menu bar, or some "Configure" button with an associated dialog window - why? Because I prefer to show the user all possible options and settings in the default windows, instead of hiding them in some configuration pop-ups.
On the other hand, this means, I'm close to running out of buttons/options :-) .
Nevertheless, your "feature request" makes a lot if sense, and will be useful for many other "SXSimmers" as well. How about "splitting" the "Reset" button into two buttons - a "Reset" button, issuing a reset w/o scrambling RAM data, and a "PWR" button, simulating a power-on reset with scrambling RAM data.
As you know, when SXSim is terminated, or when you load another LST file, many of the current session settings are stored in a SIM file. Do you think it makes sense to also save a full RAM image in that SIM file, allowing to completely restore a previous simulation session? If yes, I would make this the default, allowing the user to click "Reset", or "PWR" to get rid of this.
No reason for whining - let me have a look at the "hand-entering-values-into-memory" procedures, and how they can be made more user-friendly.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m97087
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\11\19@181318 by Peter Van der Zeen/a
|
|
Hello Guenther;
I vave no opionon the save file, as I'm not sure how ir would apply to me.
Thanks for consideration on the other requests though.
Cheers,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m97103
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Hi Gunther,
Thanks for such a handy utility. I'm using SXSim 2.07 to check the speed of code that I'm hoping to move from user space to ISR space, and it's working great.
But...
I have code that includes a macro. When I run it in SXSim, the macro is not expanded. When I single-step through the code to execute at the location of the macro, an incorrect instruction is listed, although the code cyclecounts and elapsed time do perform correctly.
Is this part of the SXSIM design?
I was hoping the macros would be expanded in the resulting code. Is my expectation unrealistic for some reason? I've searched the documentation and haven't seen any mention about how macros are (or aren't) treated.
Example code is shown below. In the example, I manually inserted the macro contents in one place to show that SXSim is performing the same cyclecounts for the macro code vs the actual code.
David
;-----------------------------------------------------------------------
; send command byte and receive data byte from MAX186
; Calling code sets "outbyte" to desired value, calls "SendGetByte",
; then receives "inbyte".
fastbit macro
rl inbyte ; BIT n
movb inbyte.0, MAX_DOUT ;
movb MAX_DIN, outbyte.7 ;
setb MAX_CLK ; we need to shift the outgoing byte after use,
rl outbyte ; but lets do it between clocks to give the clock bit
clrb MAX_CLK ; that little extra settling time...
endm
SendGetByte
bank52 bank_max186
fastbit ; bit 8
rl inbyte ; bit 7
movb inbyte.0, MAX_DOUT
movb MAX_DIN, outbyte.7
setb MAX_CLK
rl outbyte
clrb MAX_CLK
fastbit ; bit 6
fastbit ; bit 5
fastbit ; bit 4
fastbit ; bit 3
...(and so on...)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m98940
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\02@010113 by g_daubachn/a
|
|
Hi David,
Macros are expanded at assembly time, and not ar run-time (or simulation-time in case of SXSim). The problem here is that the assembler did not expand the macro code in the list file, i.e. SXSim does not "see" the instructions that are inserted in the code where the macro is invoked. Please add an EXPAND directive in your sorce code somewhere before the macro definition. This should fix the problem.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m99025
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\02@092028 by mebikeridern/a
|
|
That did it, thanks.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m99086
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\04@071120 by g_daubachn/a
|
|
Hello "SXSim-ers",
thanks to some users sending bug reports and making important suggestions for enhancements, I have prepared a new version of SXSim (2.08) with the following fixes/enhancements:
- RTCC timing on ISR entry/exit fixed.
- New "Watchpoint" feature. Instead of halting program execution in "Run" mode, the register display is updated whenever program execution "passes" a marked code line. With "Watchpoint mode" active, the register display will no longer be periodically updated every second.
- Improved editing of file register contents. The arrow keys can now be used to confirm the change of the current register and to navigate to another register to be modified next.
- New "PWR" button added. This simulates a power-on reset with random file register contents, where the "Reset" button now simulates a reset via /MCLR with the register contents being unchanged.
- Different file select dialog used, therefore OMDLG32.OCX is no longer required to run SXSim.
- Manual updated to describe the new features.
As usual, you will find the new version and the updated documentation for download attached to the first post in this thread.
Have fun!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m99292
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\06@104132 by Peter Van der Zeen/a
|
|
Hi Guenther;
Nice upgrades; makes things much more convenient; we appreciate the effort.
Cheers from Maui, Hawaii,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m99598
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\13@142125 by Mike_Wn/a
|
|
Hi Guenther
I just recently hade to reload my SX_Key software and incountered the problem discribed in this post. when I use SX_Key 3.0 (I have updated to the latest compiler Version 1.42.02) I have no problem loading the editor/compiler. But when I update to SX_Key version 3.1 I get the message "SXSim on disk is version 0.00 Update to version 2.06.02 (recommended)."
I followed your instructions copied the sim files to another directory and all. SXSim will launch that way however!!!
when it loaded the SX_Key the next time and got the error message and said yes the next error was "RESOURCE PROBLEM SXSIM.EXE IS IN USE UNABLE TO SAVE TO DISK" SX_Key always tries to load SXSim first and this causes my problem. I am new to SX and normly just use the SX_Key and not the SXSim program. can I still get a copy of SXKey 3.1 that does not need SXSim. Or is their not that much difference between 3.0 and 3.1
Weather I leave SXSim open or close it same result
If I do a I can see the SXSim program is running but no output to screen.
Thank You
Mike W
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m100637
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
2005\12\26@141138 by g_daubachn/a
|
|
Mike,
sorry for ignoring your post such a long time - somehow, I have missed it.
When SXKey 3.1 launches, it checks for the versions of SX/B (residing in the Compilers\SXB sub-folder, and for SXSim in the Tools\SXSim sub-folder. To figure out the SXSim version number, it starts SXSim in a special invisible mode, and queries the version number from SXSim. After this test, the invisible version of SXSim should be unloaded again automatically.
Here, I tried the following: I completely deleted the SXSim sub-folder, and then launched the SX-Key IDE. This shows a dialog "SXSim is not on disk. Version 2,0602 will be installed." I confirmed this with "OK". I did the same for the next dialog about the documentation. After this, the IDE sheoud start as usual, and when you close and re-launch it, no more complaints about SXSim should show up. When you launch SXSim from this IDE, SXSim Version 2.06.02 will start - the one the SX-Key IDE has installed.
You can't overwrite this version of SXSim in the Tools\SXSim sub-folder by a later version, like 2.08.03 because this no longer supports the "hidden mode", and the method of sending its version number to the IDE. So, this may explain the "Resource Problem..." error you get when the IDE tries to start SXSim in "hidden mode" - as it won't be unloaded correctly.
If you want to make use of a later SXSim version for now, please install the EXE file into any other subfolder but Tools\SXSim, or you may install it there under a different name, like SXSim08.EXE. In order to start this version, you may define a shortcut on the desktop, or in the Windows program menu.
I'm sure, the next version of the SX-Key IDE will support this later version of SXSim - until then, I'm sorry for the inconvenience that you can't launch the new version from the IDE.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m102276
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)
|
|
Hello Guenther;
I am using the SX-SIM to do some debugging, and I would like to have several of the as yet unimplemented "secret" instructions dealt with. These are $001
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103284
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\03@013601 by g_daubachn/a
|
|
Hello Peter,
thank you for your suggestions - I have added all of them to my SXSim TODO-List because I agree with you - these are useful enhancements.
I hope I'll find some time getting these enhancements implemented soon.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103306
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\03@141854 by Peter Van der Zeen/a
|
|
Hello Guenther;
In using the simulator some more, I note that only integer MHz values are permitted with FREQ directive, fractional Mhz, and (integer) values of Khz are not permitted.
Perhaps this can be changed so we can conveniently determine the cycle times of internal RC or other oscillators also.
Many thanks,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103428
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Hello Peter,
again - added these to the TODO list.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103432
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\04@131109 by Peter Van der Zeen/a
|
|
Hi Guenther;
It's me again. Filally I seem to be exercizing your simulator quite a bit; it's very helpful for some of the strange things I'm doing.
I note that in the register window, the default value for the port bits (inputs at reset) is zero, but when they become configured with pull-ups should they change to a one?
It would be wonderful if both, the input values AND pending output values could be shown, so when an output register gets assigned a value by the program, and (some) of the bits are input, and then the program changes them to output (I do this a lot), then the pre-loaded ouput values get presented on the port bits which have now become outputs.
Also, there is an incorrect operation when right or left shifting a port register. Shifts (right or left) out of a bit which is configured as an input should have a value of one. You provide a value of zero, and non-adjacent outputs should NOT ripple through the port display window; but adjacent ones should. In other words, at any bit where a port register contains a bit configured as an input, then a (left or right) shiftout from that bit should be a one. That is for between adjacent bits as well as the end bits to the carry.
Cheers,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103549
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\04@150208 by g_daubachn/a
|
|
Hi Peter,
seems as if you are beating SXSim quite a lot right now :-) - nevertheless, all your suggestions are valuable as they help to make the simulation more realistic. I have added allof them to the TODO list (which is growing more and more), and will see what I can do.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m103558
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\23@135625 by billmcn/a
|
|
Hi Guenther and Team,
I'm afraid that I'm having trouble on two of my windows xp boxes getting sxSim to run. (one is XP Professional, the other is simply XP, both current updated.) I'd started with the latest budle with the SX-Key IDE from the site. That gave me the "run-time error '339' for MSCOMCTL.OCX (not being correctly registered) that I've seen in other posts.
I've tried the current directions and download from the first post. But this gives the same error, even running entirely by itself. Even if I remove all other SX Key components, and just run the sxsim downloaded from the first post I get this error.
Does anyone have any other thoughts on what I could try, download, change in the registry, spoof, etc.?
Help is greatly appreciated.
Thanks,
Bill McIntyre
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106129
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\24@074622 by g_daubachn/a
|
|
Bill,
MSCOMCTL.OCX is required for applications with serial communication but SXSim does not make use of it, so it looks strange to me that this error comes up, and it never has been reported before. Former versions (before 2.08) made use of the file select dialog contained in COMDLG32.OCX. In the new version, I use a different method so COMDLG32.OCX is no longer required. I'll double-check if there is any reference in SXSim to MSCOMCTL.OCX, and let you know the results.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106193
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\24@075234 by g_daubachn/a
|
|
Bill,
its me again - I made a false statement in my last post, MSCOMCTL.OXC is not required for serial communication (this is MSCOMM32.OCX) but for common dialogs, and it is required by SXSim. I'm pretty sure you have it on your machines but possibly another version. Can you search for MSCOMCTL.OXC on your machine, and find out which version it has (in case it is there)?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106195
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\24@100708 by billmcn/a
|
|
Guenther,
Many thanks for looking into this. A quick search of my system did not find a local copy of this file. Is it part of a runtime package for VB or C#?
I tried installing the patch here: http://support.microsoft.com/?id=896559 but that also does not seem to have left a copy locally. Apologies for my lmited understanding of the windows libraries. I'm, by trade, primarily a Java developer.
Thanks again,
Bill
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106211
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\24@103753 by billmcn/a
|
|
Guenther, (and whomever else this may help at some point)
I've found a copy of mscomctl.ocx on Microsoft's site (via a 3rd party discussion page found on a search engine, by way of Hoboken)
And have installed it as a single file. Everything now works as described in your first post (eg.: it still complains about comdlg32.ocx in the ide, but the new sx sim file now runs standalone.)
Thanks for the assistance, putting me on the right track,
Bill
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106220
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\01\24@130616 by g_daubachn/a
|
|
Bill,
glad to hear that you got it up and running now. BTW: As there are various versions of OCXes around, it may be an idea to store the one that works fine for SXSim in the same directory where SXSim.EXE is installed, and not into the Windows directory. As Windows applications search for additional files, like OCXes, DLLs, etc. in the local path first, and then in the Windows path, SXSim will always find a working copy of the OCX locally, even when the one in the Windows path might be overwritten by another software installation later.
Right now, the IDE installs an older version of SXSim that still requires COMDLG32.OCX which can't be found on your machines either. Sorry for this inconvenience but this will be fixed with the next release of the IDE.
Have fun with SXSim!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m106247
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Hello,
Try downloading and running the VB6 runtime package. This will contain the usual common dialog and the COM control (mscomctl.com) 's. Best take a copy of your working one first!
The URL is here: http://www.microsoft.com/downloads/details.aspx?FamilyID=bf9a24f9-b5c5-48f4-8edd-cdf2d29a79d5&DisplayLang=en
James
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m107473
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\02@082751 by g_daubachn/a
|
|
James,
thanks for providing the URL - this is really valuable for SXSim users with missing, or non-matching VB runtime modules. As you have pointed out, it is important to save a copy of any existing modules before replacing them. As an alternative, you could place the new modules in the SXSim root directory, i.e. where SXSim.exe is stored, instead of placing them in the Windows directoy.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m107631
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\08@194434 by Pyridoxusn/a
|
|
Greetings Guenther,
I'm sure your TODO list is growing by leaps and bounds, but I was wondering when the SXSim version supporting multi-purpose timers for the SX48/52 would be released? I'm sure I'm not the only one anxious to simulate it. I am an experienced programmer and could probably get away with simulating everything but the timers and spend a bit of time "in circuit" to reprogram for any errors. But, of course having the SXSim to test the timers would be great!
Thanks
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=7&m=53539#m108709
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\09@001137 by g_daubachn/a
|
|
CJM,
yes, the TODO list keeps growing, and it already contains the multi-purpose timers. Right now, I'm busy with a lot of other stuff, so it will take a while to get them going. At least, they are on the list, and I won't forget them.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m108720
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\13@215702 by Peter Van der Zeen/a
|
|
Hello Guenther;
Today I read your documantation on the SX-Sim for the first time. It is quite notable how intuitive the program is for someone to be able to use (most) of it without "reading the instructions". Good job!
I did note a couple of points that your users should be made aware of, and features you may wish to include in a later version.
Firstly I would like to correct a minor documentation error caused by myself when the "secret instructions" were revealed. It is the definition of the $045 instruction labeled "shift OSC pin in/out W" that is in error. It has nothing to do with the W register; Carry (C) is swapped out to the OSC2 pin, and the OSC2 pin is swapped into the carry. This is the method for the SX-Key and the SX chip to communicate. So instead should be undestood to be something like "exchange carry with OSC2 pin", and it would more appropriately be labelled as "OSC2<>C".
The other point is that for (only) the SX48/52 chips, on interrupt the MODE register is also saved in a single level shadow register. Alas, that register is not accessible by W so one cannot manually push or pop it.
Cheers,
Peter (pjv)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m109333
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\15@095715 by g_daubachn/a
|
|
Peter,
thank you for your hints and comments - they definitely help me improving SXSim.
I'm pretty sure that we can discuss more details personally soon - guess why... :-) .
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m109539
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Günther,
I didn't see this posted as a found bug so I will mention it.
When DJNZ does NOT jump the cycle counter increases by 3 instead of by 2
MOV __PARAM1,#1
DJNZ __PARAM1,$+10 ' This should be 2 cycles but SxSim make it 3 cycles
BTW I'm using version 2.08.04
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111195
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\25@005914 by g_daubachn/a
|
|
Terry,
thanks for the information about false clock counts on DECSZ - as far as I can remember, I've alreay fixed it but I'll double-check this again.
Seems as if the 3 instead of 2 cycles bug has found its way into the docs (including my book) a loong time ago. You can also find it in the SX datasheets - even in the new one recently released from Parallax.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111508
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Guenther,
It's a great tool and I look forward to the next release. It has been very helpful in my testing.
It's amazing sometimes how incorrect information propagates and it's hard to stamp it out.
Is 2.08.04 the latest release ?
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111514
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\25@144413 by g_daubachn/a
|
|
Terry,
yes, 2.08.04 is the latest released SXSim version. New features and fixes are in the pipeline - if I only had some more time...
And no - by no means is it true that I'm planning to write PropSim :-) .
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111622
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\27@032528 by marcozoran/a
|
|
Hi to all...!!
i'm a new entry.
i'm italian, and i'm working to develop a C compiler for scenix.
i like scenix processor but i have some problems with developing software for this processor, and for this reason i decided to write my C compiler.
Actually i have a problem with SXSim
look to these instructions (_AX is a general register)
mov _AX,#08
mov w,#08
mov w,_AX-w at the end, register w must be zero, but w is FF
why?
someone can help me?
thanks!
M.Z.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111920
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\27@040758 by g_daubachn/a
|
|
Hi Marco,
I have tested your sample code snippet with the latest released version of SXSim, and here the code results in W being set to 0 (as it should) but not to $FF as you have mentioned.
Do you have the DEVICE CARRYX option active in your program? In this case, the status of the C flag will influence the result of mov w,_AX-w, so you will have to set C before the subtraction.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111923
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\02\27@041636 by marcozoran/a
|
|
many thanks Gunter,
just when i understand the problem i reading your correct advice.
i'm working with CARRYX and then i must set carry before any subtraction.
thank you.
MZ
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m111926
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Hi everyone,
Re: Lost view of "Command Box" (panel)
I'm new to this forum and this is my first post. I just purchased the SX Tech Tool Kit Professional and I'm going over all the manuals, etc.
I loaded SK-Key v3.1 software and SXSim program and wrote a simple Basic program. I compiled it and ran it on the simulator. All worked fine and the Command and I/O panels displayed correctly. I have been using the SXSim program for the past several days, but, yesterday the Command panel did not display when the SXSim was re-run. The "Command" box on the bottom tray showed that it was running. I toggled the box but the Command Panel did not display. I also right clicked on it but nothing diplayed. The last time I used the SXSim, when everything was working, I did remember clicking the "Quit" button on the Command Panel to remove the display, after ending the SXSim program.
Today I did downloaded and installed the latest version of SXSim (v2.08.04). I ran it under SX-Key v3.1 and this did not help.
Any idea on how to restore the view of the "Command Panel".
The best to all,
Eric Kuegler (Ericro)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m115220
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\15@152238 by g_daubachn/a
|
|
Eric,
when your program file is named test.sxb, for example, there should be a file test.sim in the same directory. Please try to delete this sim file - this should bring back the Command window.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m115301
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Günther,
[color=#000099>I>
Thank>
Also,>
[color=#000099>
Eric R.O. Kuegler (Ericro)
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m115313
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\16@101602 by g_daubachn/a
|
|
Enrico,
good finding - I never expected that such a file would be created by SXSim, and I'm not sure which Program does it - the IDE, or SXSim but I'll find out. Good to learn that this fixed your problem.
Thanks for the good wishes, and have much success with the SX!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m115446
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\27@182231 by yanss00n/a
|
|
Hi,Gunther
why my sixsim always notic me that "The program has no entry point"?
device sx28ac
FREQ 50_000_000
RESET Main
#0
isr
reti
Main
......
loop
jmp loop
Can you help me?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m117333
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\27@183403 by awassonn/a
|
|
Hi Yanss00,
That means that you are trying to run your asm listing and not the compiled ASM.
You need to open your ASM listing in the SXKey IDE (no connection to your serial SXKey required)
Then from the RUN menu "Launch SXSim"
Andrew
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m117335
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\29@070156 by yanss00n/a
|
|
Can I use the SXSim alone without the SXKey? I just launch the SXSim and choose the *.lst to stimulate, but the SXSim always note me "The program has no entry point!" By the way, I used PicAntIDE software to complie my *.asm ,why can't I use the SXSim to stimulate *.lst generated by the PicAntIDE correctly ?
But I can use the earlier version 1.0 to stimulate correctly ,can any superior tell me why?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m117623
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\29@085443 by awassonn/a
|
|
Hello yanss00,
Perhaps Gunther will have to help you further with this one.
What I do know is:
You can use SXSim for stand-alone testing. I ran a test by assembling a source file (in SX-Key v3.1), copied the assembled code from the list view window and saved to a text document with the .lst extension. I closed SX-Key. I opened SXSim and loaded the .lst file and it simulated the SX as I expected.
Sorry, I'm not familliar with the PicAntIDE to help further. (I use WinPic and PICPgm for the little PIC programming I do)
Good luck,
Andrew
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m117654
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\03\30@074607 by yanss00n/a
|
|
thanks,Andrew
can the Winpic and PICpgm be used in the SX's compling and program? Where can I get them?
Please tell me . Would you please send them by e-mail if you have?
Thank you very much!!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m117847
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
[Quoting: "yanss00"]Can I use the SXSim alone without the SXKey? I just launch the SXSim and choose the *.lst to stimulate, but the SXSim always note me "The program has no entry point!" By the way, I used PicAntIDE software to complie my *.asm ,why can't I use the SXSim to stimulate *.lst generated by the PicAntIDE correctly ?
But I can use the earlier version 1.0 to stimulate correctly ,can any superior tell me why?
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m118341
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Hello "SXSim-ers",
thanks to users sending bug reports and making important suggestions for enhancements, I have prepared a new version of SXSim (2.08.05) with the following fixes/enhancements:
- Internal program counter contents displayed in the main window
- SKIP on odd and even prgram addresses handled correctly now
- "odd" clock frequencies handled correctly now.
As usual, you will find the new version for download attached to the first post in this thread.
Have fun!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m132218
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\06\27@101756 by bfranken/a
|
|
Hi Guenther,
Thanks for your continued support for all of us SX'ers with your great SXSim. It's a super tool for us. I was wondering if you had a chance to fix the port problem that we talked about in this post. . .
http://forums.parallax.com/forums/default.aspx?f=7&m=115028&g=115218#m115218
Also, do you have any plans to simulate the two multi-function timers on an SX48/52?
Thanks again for the great work,
Bill Franke
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m132646
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\06\27@151236 by g_daubachn/a
|
|
Bill,
both items are still on my TODO list. Unfortunately, I'm too busy with some other projects right now. Therefore, I can only spend limited time into SXSim for fixing bugs, like I recently did, so please be patient - as soon as I've got some free time, I'll work on the SXSim TODO list.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m132723
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Just purchased SX-Key and Professional Development Kit. Was getting the Version error as described here. Following this advice, I renamed the SXSim folder. Now when I attempt to start SK-Key Editor an install process is initiated that is unable to find a file "SX-Key Editor v3.1.msi". When this install fails so does the SX-Key Editor and IDE. Currently I am unable to run the IDE because of the simulator. Seems like I need the older version of the Simulator in the Tools\SXSim folder. Any way I can get hold of it, so I can at least run the IDE? Currently, I don't really envision a need for the simulator.
Thanx for any help
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m135566
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\07\19@154902 by g_daubachn/a
|
|
Dave,
seems to me as if this has nothing to do with SXSim per-se. Did you use the latest version of the IDE installer available at the Parallax site for download? This one should install the latest version of the IDE and SXSim without the compatibility problems I had described in the first post of this thread.
BTW: I'm on vacations in the US right now, so I might not be able to handle forum posts on a regular basis within the next three weeks, so please be patient when I don't answer immediately.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=8&m=53539#m136073
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\07\20@065959 by dmkikendalln/a
|
|
Gunther;
Went back to the website and sure enough there was a version 3.2 posted instead of the 3.1 that was there just a couple weeks back. Downloaded and re-installed and version problem is resolved. The IDE now starts up cleanly resolving my immediate issue.
However, thought you might like to know, that if I try to start the simulator, either through the file menu in the IDE, or by double-clicking on the file in the Tools/SXSim folder I still get an error window and the simulator does not run.
[2]
Run-time error '339';
Component 'MSCOMCTL.OCX" or one of its dependencies not correctly registered: a file is missing or invalid.
[/2]
This is under windows 2000. I suspect that may be a factor. While I don't have an immediate need for the simulator my experience tells me that before this project is done I probably will. Knowing that Windows 2000 is ancient :blush: , if you don't have it available to you, I would be happy to look up or try anything you might like toward resolving this message also.
Hope you have a great vacation
Thanks for the help
Dave Kikendall
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m136146
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\07\22@175123 by g_daubachn/a
|
|
Dave,
this looks strange to me. Former versions of SXSim required that MSCOMCTL.OCX was available on the computer but since a while, I have changed the SXSim code so that this OCX is no longer required.
I'll address this problem when I'm back home from vacations.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m136617
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Guenther,
I just installed SX-Key IDE 3.2.3, and I get the same run-time error, 339. Have you had a chance to look into this?
Thanks.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m150009
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\10\18@054907 by g_daubachn/a
|
|
Kevin, Dave,
sorry for keeping you waiting.
When you install an SX-Key IDE, the version of SXSim is also automatically installed that is "inside" the IDE code. I don't have direct control over which version goes into the IDE, so I'm not sure if this is the latest one I have relased. Please try to download the version that is available here on the first page of this thread, and copy the SxSim.exe file into the IDE's tools/sxsim folder, and give it a try. Maybe, this already solves your problem.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m150035
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\10\22@193714 by chuckbn/a
|
|
Guenther,
I'm new to SX programming and I have not received the SX28 yet. However, I've used the Parallax PDF on beginning assembly programming and the SX Simulator (v 2.08.05) and it's terrific. Ausgezeichnet!!!
I've learned a lot already.
I do get an error each time I try to print my source code...but I just work around that now using notepad. :)
Is there a help document to explain this SX Sim in more detail? I'll try looking around this site.
Regards and Thanks,
Chuck
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m150938
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\10\22@235809 by g_daubachn/a
|
|
Hi Chuck,
good to learn that SXSim helps you doing the first steps without having the "real silicon" on hand. Printing the source code is handled by the SX-Key IDE, not by SXSim. I just tried to print a source code from the SX-Key IDE, Version 3.2.3 and it worked without error. If you don't have this version, you can download it from the Parallax WEB site.
Sorry, there is no on-line help available for SXSim so far. You can find a PDF with the most recent documentation in my first post of this "sticky" thread.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m150968
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
Dear "SXSimmers",
it took a while to prepare a new version of SXSim, so here it is:
This new version 2.08.06 comes with the following fixes/enhancements:
- When WREG is mapped into address $01, the contents of RTCC will be shown in a separate field
- In RUN mode, the list display no longer jumps to the first line
- When SXSim is terminated with the main window minimized, it will be re-opened with its default size when invoked again later
- When TRIS bits are changed, the I/O Panel is correctly updated in "Run" mode now
- Breakpoints now work correctly on targets of JMP w instructions
- Wrong cycle count of skip instructions (2 instead of 3 in case of a skip) fixed
- SKIP status display fixed, it will now only be highlighted when a skip instruction actually causes a skip
- New "Run to Right-Clicked", and "Jump to Right-Clicked" modes
- New status display in the Commands window indicating the current mode of SXSim ("Idle", "walking", or "running")
I'm sorry that I could not implement the variable watch window, and the SX 48/52 timer/counter support for now. Nevertheless, I think it is worth while releasing this version, as it comes with some bug fixes (thans to all SXSim users who have sent me bug reports), plus some other "goodies" users have been asking for.
If you have any comments, wishes, bug reports, etc., I'd be more than glad hearing from you. If possible, please post a message in this thread, and do not launch a new thread in the forum. This makes it easier for me (and the SXSim users) to track your posts.
You can find the new version of SXSim, and the updated documentation in my very first post in this "sticky" thread.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m160389
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\29@110615 by Mr_Nuken/a
|
|
Geunther,
Whenever I use SXSim (v1.08.06) and I click on an SX-Key Editor widnow, I get this message "List file has been modified - Restore breakpoints?", and I have to restart the simulation, wether I want to double-check something in my code, or accidentally click it. This is annoying when running a long simulation to check for a bug in an UART, for example, and having to redo everything because of that.
Is there a way around that, or do I need to wait for a new version?
Thanks in advance for your help!
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162563
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\29@113503 by Obliown/a
|
|
With 2.8.5 (bundled with SX-Key 3.2.3) it only does this if you click in the far left pane.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162573
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\29@130511 by Mr_Nuken/a
|
|
Yes, that's where I have to click with 2.8.6 also. I sometimes need to swap between different files when running a simulation, so I need to click in the far left pane.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162597
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\29@181318 by Mr_Nuken/a
|
|
Geunther,
I think I might have found another bug in SX-Sim. Suppose the simulation is running, and you reach a breakpoint. If you click back and end up back in an interrupt, the shadow registers will not be loaded with the correct values, but they will all contain zero. When you step forward and reach a reti or retiw, the execution jumps at 000h, and when it reaches reti or retiw the second time, it generates a "reti without interrupt" error.
Please, if you can, take the time to review this matter, and perhaps release a fix, as I rely completely on SX-Sim for debugging.
Sincerely,
Alex.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162630
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\30@104047 by g_daubachn/a
|
|
Alex,
let me address both of your problem reports here:
1. "List file has been modified":
I assume that you launch SXSim from the SX-Key IDE by clicking the IDE's SXSim button. In this case, the IDE re-assembles the source code to make sure that the list file is up-to-date, and then launches SXSim with the command line containing the list file name. SXSim then checks the list file's time/date stamp if this file is "younger" than the associated SIM file it has saved before. When this is the case, the "Restore Breakpoint" dialog is opened, as the breakpoints stored in the SIM file might no longer match in case you have removed or added instructions from/to the source code.
If I got you right, I assume you want to test a program with SXSim, switch back to the SX-Key IDE from time to time (or by accident), and then return to SXSim. You can do this by clicking into the IDE window (or hit Alt-Tab). As I have defined the SXSim Commands window to always stay on top, this will hide parts if the IDE's Edit window but you should be able to return to SXSim by either hitting Alt-Tab again, or by clicking into the SXSim Commands window. In this case, you should be able to continue the simulation from the most recent point on. When you quit SXSim to restore the IDE windows, and click the IDE's SXSim button later, SXSim is re-launched again, and it re-loads the list file, so you can't continue the simulation but have to re-start it again. To avoid this, I could add an option to "freeze" the current status of all SX registers in the SIM file so that they can be restored for the next session. I'll add this to my TODO list.
2. Undoing shadow registers
Congratulations - you have found a bug! Thanks to your report, I found that the shadow registers and the FIFO were not always correctly restored when the "Back" button was clicked. I have fixed this in the meantime, and will release a new version soon.
Please stay tuned...
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162700
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\12\30@113421 by Mr_Nuken/a
|
|
Geunther,
Thank you for taking the time to review this matter. I am looking forward to a new version of SX-Sim. In the meantime, I will be careful when running my simulations.
I would like to suggest that you also compile and release SX-Sim for x64 systems. Although there is no problem in running SX-Sim on x64 OS's, the larger instructions will speed up the simulation, and reduce the execution time in most cases.
Sincerely,
Alex
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m162705
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
I have a feature request,
Add a control button or a drop down menu http://forums.parallax.com/forums/emoticons/lol.gif to reduce the amount of information displayed by sx sim for newbies like me, that are using it for mainly timing issues with SX/B. Because I still don't understand what everything in the display window does, I find it overwhelming, there is a lot of stuff is going on in a very small space. I didn't use the program for sometime because of that, now I find it invaluable to determine the order in which I place my time based SX/B functions.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m173263
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
|
|
Guenther,
I used the latest sxsim to test some taskswitching code using the secret instructions.
3 observations:
a)
When I enter the isr routine for the first time, I see the 1st entries of the shadow stacks
loaded with the states prior to the interrupt, with the 2nd entries 0.
b)
To perform a switch I then use the secret pop instructions. I see the 1st level entries
being copied to W, but I don't see the 2nd level entries being copied to the 1st level entries,
which I think should be the case.
c)
When I use the secret push instructions, I see the 1st level entries being copied to the
2nd level entries, and W being copied to the 1st level entries, as it should.
Questions:
Can we assume that the shadow stack holds all 0's upon reset?
If not, why not leave the fields blank, as with the call stack.
A blank field would indicate a void value (location has never been accessed).
Could we also have blank fields in the ram area? Now they are filled with random values,
but do we really need to see these values while locations never have been accessed?
You could keep the values hidden until a location is accessed, then display it.
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m183413
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
|
|
Gunther,
When using indirect addressing on the ports, eg.
mov fsr,#$05
mov w,maintemp
or indf,w followed by setting the port direction
mov w,#$1F
mov m,w
mov w,/mask ;bitmask: 1 identifies output pin
mov !ra,w
I noticed the RA latch register did not update on the screen
until I made the pin an output.
Is there a special reason why the latches are not directly updated?
I rather see the actual content of the latches, regardless of pin output state.
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m213672
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
|
|
Günther,
I just noticed a little error in SXSim, not anything important, but it threw me off for a very long time. Running 2.08.05 the tooltip for the RTE_IE bit of the OPTION register says that 1 enables RTCC interrupts and 0 disables it, when it is the other way around, 0 enabled interrupts and 1 disables it. This wouldn't normally be a big deal, but it confused me so bad since this is my first time dealing with interrupts on the SX. Sorry if this was a repost, but I didn't notice it anywhere else.
-Kris
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m215406
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\09\11@010229 by g_daubachn/a
|
|
Kris,
thank you for the bug report. Yes, you are right, RTCC interrupts are enabled with OPTION.6 clear, and disabled with the bit set. In the meantime, I have fixed the tooltip text. It will be published with the next version of SXSim I'll release.
-Günther
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m215414
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\09\16@222037 by peterverkaikn/a
|
|
Gunther,
I believe SxSim does not handle ret and retp correctly in respect
to the displayed active line.
Single step the attached program and observe stack, PC and PAx whenever
there is a call or ret or retp.
There are deliberate errors in the listing, that is some ret's must be retp
but the point here is that although the PC and PAx are set corectly
after a ret (PAx unchanged) or retp (PAx updated) the active line
jumps to the correct line as the program was intended but I believe
the active line is not at the correct page.
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m217035
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\09\17@005457 by g_daubachn/a
|
|
Peter,
thanks for the info - I'll check this out, and let you know...
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m217059
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\09\24@074904 by peterverkaikn/a
|
|
Hi Gunther,
Forget my last bug report. SxSim handles ret and retp correctly.
I thought that ret only restored the lower bits of PC, but in fact
ALL bits from the shadow stack are moved back into PC, wether
I use ret or retp. In addition retp copies the topbits to the
page bits.
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m218720
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\09\24@101525 by g_daubachn/a
|
|
Hi Peter,
don't worry about your last bug report. It made me double-check if SXSim handles RET and RETP correctly, and I verified that it does. Nevertheless, before posting an answer, I wanted to do the same tests with the SX-Key Debugger, just to be sure, but I did not have the time so far to do it.
Therefore, your new message came in just in time :-) .
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m218765
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
|
|
Hi Guenther,
As with everyone thanks for the simulator tool for the SX. I just have a couple of thing that would be nice.
1) The Command window is defined as Stay On Top of EVERYTHING and not just on top of the SxSim window. It gets in the way when I am debugging and need to look at the documentation to figure out what is suppose to be happening.
2) Can you add a keyboard interface for SxSim? I am a keyboarder not a mouse fan when debugging. The typical keys from MPLAB would be nice
F9 = Run
F5 = Stop
F7 = Single Step
F8 = Step over
F? = Back (pick one!)
3) In Vista the scrollbar for the Listview is partially under the right side main window frame. (the calculation for the listview width is not correct for a Vista main window).
Thanks,
Jim Kueneman
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m228829
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
2007\11\07@173033 by mojorizingn/a
|
|
Hello Guenther,
I appreciate your SXSIM efforts. I have a request. I'm probably the only one who uses the SX in non-turbo mode, but is it possible to have a turbo/ non-turbo selection? Simply decreasing the FREQ directive by 4 doesn't completely take care of the timing differences. For instance, the JMP command takes 8 cycles in non-turbo (1:4 execution) compared to 3 cycles (1:1 execution) .
Thanks, Kevin
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m229641
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)
|
|
Gunther,
Wouldn't it be great if SXSim could "Watch" like the real debug IDE? It wouldn't hurt my feelings if it did.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=9&m=53539#m253456
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\02\29@125451 by g_daubachn/a
|
|
Lord Steve,
yes, indeed, this is on my TODO list since a long time. My idea is to implement the watch directives similar to the SX-Key IDE plus some more "sophisticated" methods. Unfortunately, some other projects keep me really busy right now, so it will take a while until I can come back to do some more work on SXSim. Nevertheless, the "Watch" is on the list, and I won't forget it.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m254055
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
|
|
Gunther,
I have found a quirk in SX-Sim 2.08.06.
Pin RB.1 was in input and I right clicked it to make it read high.
Then in the code RB.1 was made an output and low.
Later in the code RB.1 was made an input again. But it still reads as low even though on the I/O panel it is green.
If i click on RB.1 and turn it off then back on again, it works correctly (until the next loop).
You can see in the picture that RB.1 is green, but in the registers window it says RB is $00 (all off).
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m256875
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\03\12@102333 by g_daubachn/a
|
|
Bean,
thank you for the bug report. I'm pretty sure that the I/O panel in not updated correctly when a port pin is toggled to be an output or input within a running program.
I have added this to my SXSim TODO list. As you know, I'm pretty busy with some other project right now, so I will start working on SXSim again once this project is finished.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m256911
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\03\14@222312 by jduptonn/a
|
|
Gunther,
Did you ever find a cause for the RunTime 339 error involving mscomCtl.ocx? I am encountering the same error with SXSIM version 2.08.06 downloaded from this thread.
The previous poster was running Win2000 and thought that may have contributed to the problem. I think he is right. It seems to be OS level related. I am running on Vista-64-bit and am getting the same error. I have tried copying the mscomCtl.ocx file from the windows\sysWOW64 directory where is normally resides to each of the windows\system32, Parallax\SX-Key\Tools\SXSim, and Parallax\SX-Key directories all to no avail. Any other ideas?
John
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m257509
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\03\15@004700 by jduptonn/a
|
|
Gunther,
Nevermind. I have it figured out -- at least for Vista-64bit. I found a reference to a (what is thought to be a) bug with UAC in 64-bit Vista installations. The problem supposedly only shows up if the user has turned off UAC (as I have). The installation and registration of any VB runtime ocx files must be done with UAC enabled or else they will fail silently. I actully had multiple VB application failing -- not just SXSIM.
To correct the problem for my istallation, I copied the VB6 runtime ocx files from the Windows\sysWOW64 directory to the Windows\system32 directory. I then created a batch file to unregister each ocx and then re-register it. Each file would have lines like the following:
regsvr32 /u /s mscomCtl.ocx
regsvr32 /s mscomCtl.ocx
Next you must turn on UAC in the control panel and reboot the system. Once rebooted, select Start | Accessories | Command_Prompt and right click on it selecting Run As Administrator. In the Administrator Command Prompt window, run the batch file with the unregister, register commands for all the ocx files. Close the Command window. Finally, go back to the Control Panel and turn UAC back off (assuming that is your preference). Reboot and the VB applications should now work without the runtime errors. This fixed the 339 error with SXSIM for me and also got my other VB applications running error free.
John
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m257521
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\03\15@100726 by g_daubachn/a
|
|
John,
thank you for investigating the mscomCtl problem. In the meantime, I found another pretty simple solution: Getting rid of mscomCtl.ocx at all. After checking the SXSim code, I found that I only derived a progress bar from that OCX to show the UnDo buffer "gauge". I have replaced this by a simple label showing the number of free items in the buffer. This is even more informative for the user, and a reference to mscomCtl.ocx is no longer made. So the next release of SXSim will come with this problem solved.
Good to know that your investigations also helped you to run other VB applications error free, so all your work was not in vain.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m257583
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
|
|
Gunther,
Attached is a .lst file generated by the sx/b beta.
It only defines a few pins as input or output.
After clearing the memory the pin direction register is set,
without
MOV W,#$1F
MOV M,W
prior to
MOV !RE,W
According to Bean upon powerup/reset the M register is initialized
to $1F (48/52) or $0F (18/20/28). SxSim however does not show
the output pins in the I/O panel. I see M loaded with $1F after
clicking reset (sx48).
regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m282242
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\07\30@141912 by g_daubachn/a
|
|
Peter,
sorry, I'm not sure if I fully understand your problem.
I agree with Bean that the M register will be initialized to $1F (for the SX48), or to $0f (for the "small" SXes), and so does SXSim. When you click the Reset button, M will be reset accordingly, and the I/O panel will show all pins as inputs.
In the sample code you have attached, M is loaded with $1E which selects the pull-up configuration registers in the SX48 but not the direction registers. So this does not influence the I/O panel by any means. When you load M with $1F before writing to the !Rx registers, you will notice that the I/O panel changes as expected.
Nevertheless, I found another bug in the I/O panel: It does not show captions for the RD and RE ports when an SX48/52 is simulated. I'll fix that for the next version.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m282330
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
2008\07\30@144315 by peterverkaikn/a
|
|
Gunther,
This is the section of interest:
112 ;' =========================================================================
113 0FFF 0A1A RESET __PROGSTART ; PROGRAM Start
114 =0000001A __PROGSTART:
115 001A 0C05 MOV FSR,#RA
001B 0024
116 001C 0060 CLR IND
117 001D 03E4 IJNZ FSR,@$-1
001E 0010 0A1C
118 ;SET BREAKPOINT HERE, then single step, RE.4, RE.5 and RE.6 outputs are not displayed on I/O panel
119 0020 0C8F MOV !RE,#143 ; this should make RE.4-RE.6 low outputs, but are not showed
0021 0009
120 0022 0C88 MOV !OPTION,#__INTOPTION
0023 0002
121 0024 006F CLR __STACKPTR
122 0025 0C10 MOV FSR,#$10
0026 0024
123 0027 0010 JMP @Start
0028 0A2B
124 =0000002B ORG $+2 ; FOR DEBUGGER
Regards peter
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m282333
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)
|
|
Gunther,
I have been trying to download the manual for SX-SIM and get a missing or corrupt file error message, would you check it?
Thanks
RS_jim
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=10&m=53539#m353744
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2009
, 2010 only
- Today
- New search...