Shop OBEX P1 Docs P2 Docs Learn Events
Updated open-source, C-based SX28 emulator with support for SX/B SERIN and SERO — Parallax Forums

Updated open-source, C-based SX28 emulator with support for SX/B SERIN and SERO

RW SenserRW Senser Posts: 61
edited 2006-05-16 00:33 in General Discussion
If you are interested in SX28 emulators, please have a look at http://www.rwsenser.com/···· This site makes available my C-based, Open Source SX28 emulator.· The site provides an emulator description, FAQ and a zip file containing the emulator (which runs·on Windows, LINUX and other systems), the source code, diagnostic programs and driver programs.· This emulator has been·in production·for about·12 months and it runs SX/B programs and, of course, SX assembler programs.· Feedback welcome!· See the included "WinQuick" directory for easy-to-run demos.

Comments

  • James NewtonJames Newton Posts: 329
    edited 2006-05-04 07:59
    JavaScript is syntactically close to C. Most C programs can be translated with a little work.

    If I had the time, I might try converting this sim to run in a browser and thereby provide a live "animation" of SX code samples on sxlist.com.

    But I don't have the time. Perhaps someone else will?

    I started such a project years ago but was not able to justify completing it. That version included providing an explination of what is about to happen in the internal registers as each instruction is about to "execute" in the code snippet shown on the screen, including a link to the web page for that specific instruction, values in the registers now and what they would be.

    The major difference is that the original idea I had would have worked as a sort of an interpreter and would not have required an entire compiled program listing to run from thereby being very useful to show what a short snipette of code would do.

    Anyway. Thanks for sharing the open source code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • RW SenserRW Senser Posts: 61
    edited 2006-05-06 13:22
    Hi James,

    Hey, thanks for the "thanks".· Feedback always welcome.
  • dmyersdmyers Posts: 14
    edited 2006-05-06 13:47
    Just compiled and ran linux source on my macintosh with no problems.

    I can see you spent a lot of time on this project. Nice Work.
  • RW SenserRW Senser Posts: 61
    edited 2006-05-06 22:08
    Hi "dmyers"-· Glad to hear ESX worked on the Mac.· If you would care to send me details on this, I'll included·them in the basic ESX zip file.· If you used the existing Linux build scripts, please let me know and I'll note that.

    Many thanks.
  • dmyersdmyers Posts: 14
    edited 2006-05-10 14:29
    With the xcode developer tools installed (the open source gcc compiler & complete IDE on top of it included free with every Macintosh)

    I followed the linux "build" text file you included in the .zip.

    In the Console "cd" into the "source" directory and type:

    gcc -c pdl_rdr.cpp
    gcc -c sxcore.cpp
    gcc -c main.cpp
    gcc -lm -lstdc++ -o esx28v3 main.o sxcore.o pdl_rdr.o

    done!

    I guess I could have made a xcode project and used the IDE GUI to build it but why?

    You must follow American National Standards Institute (ANSI) standards pretty closely to make your code that portable. It's a shame others don't. Keep up the good work and thank you for following the ANSI standards. You should be quite satisfied because, in theory your code should also work on about 30 others systems (http://gcc.gnu.org/install/specific.html). I would add that to my resume!

    D Myers

    PS If you don't follow ANSI standards and for some reason this just worked! You should think about teaching others what it is you are doing! If I can compile that program on Linux AND BSD (OS X) with absolutely no errors and compile for windows to! You must be doing something others aren't!
  • RW SenserRW Senser Posts: 61
    edited 2006-05-16 00:33
    Hi 'dmyers'-
    Hey, thanks for the kind words.· In a previous life I did a lot of portable C coding -- so I guess some of the habits stuck. <<smile>>

    I'll include your Mac build steps in my next cut of ESX.· Thanks again for the info!

    R W Senser
Sign In or Register to comment.