element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog Running CP/M (yes, the 80's operating system) on the Arduino DUE
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: marcelodantas
  • Date Created: 10 Dec 2014 5:13 PM Date Created
  • Views 1768 views
  • Likes 2 likes
  • Comments 6 comments
  • cp/m
  • emulation
  • z80
  • due
  • arduino
Related
Recommended

Running CP/M (yes, the 80's operating system) on the Arduino DUE

marcelodantas
marcelodantas
10 Dec 2014

Hi everyone,

 

I have succeeded running (to some extent) CP/M 2.2 on the Arduino DUE, using code from my project at http://runcpm.blogspot.com/

Now I am stuck at the file system part of the project. I am having a hard time dealing with the SD card routines. I am fairly new to the Arduino environment, and debugging is not a strong point of their IDE, so maybe someone wants to help me out?

I would gladly share the source code to anyone willing to provide some guidance.

The Z80 emulation already works fine, and some applications like mbasic are loading and running fine (technically I am already running Microsoft's mbasic on an Arduino), but obviously, when any disk access is needed, things go deeply South.

 

Any help is much appreciated.

Cheers,

Marcelo.

  • Sign in to reply
  • marcelodantas
    marcelodantas over 10 years ago in reply to Former Member

    Hi Denis,

     

    Sorry for taking so long to reply.

    Seems that the version of the library you have doesn't match the one I have.

    I will check the project and see what's there, it has been a long time since I touched those sources.

    In the meantime, and if you read this message, please get in touch with me on my gmail account ... marcelo.f.dantas ...

    I am not visiting this forum as often as I would like to, so going through my gmail would be a better way of getting in touch.

    Let's make CPMDuino work on your DUE.

     

    Cheers,

    Marcelo.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Hi,

    Sorry if i write to you, but i have a question about running CPM on the Arduino DUE.

    I downloaded all the files on GitHub, and i use ide 1.5.2 with the SDfat library, but the compile returns this error: class SdFile has no member named getFilename.

    Is the worth library ? Can you send me the lib please?

     

    Sorry for this, but i really want to run CPM on my DUE... I also made the Grant Searle CPM Z80 machine, and works fine, so i'd like to put them together and see the difference.

     

    Thanks for all

     

    Denis (from Italy)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • marcelodantas
    marcelodantas over 11 years ago in reply to DAB

    Hi DAB,

     

    All the CP/M stuff is working, this is based on my other project, RunCPM (http://www.sourceforge.net/projects/runcpm/), it is the Arduino part that is giving me a headache.

    So far most of it is working, I just need to fix some quirk on the directory manipulation routines.

    Other than that, if you feel like running Microsoft Basic 80 again, please give it a try. And let me know how it goes.

    To build and run it needs the SdFat library, and a shield with a SD card.

    It will run on the Arduino DUE, as it is the only I could find with enough RAM to hold the emulation, but the code could be easily adapted to use external RAM as well.

     

    Keep in touch.

     

    Cheers,

    Marcelo.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • marcelodantas
    marcelodantas over 11 years ago in reply to amgalbu

    Awesome!

    I have fixed most of the issues and uploaded the source code to Sourceforge (http://sourceforge.net/projects/cpmduino).

    If you have an Arduino DUE with SD card shield you can download it and give it a try.

     

    Cheers,

    Marcelo.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 11 years ago

    Hi Marcelo,

     

    Using CPM takes me back a few decades.

    First, the file format is very different for CPM than the current formats used for today's storage devices.

     

    Do you have any references for the CPM format?

    I will look in my library, but I am not sure I have anything on the format, but I will look.

     

    I do remember that there were a number of disk controller chips used in those days, which could also make many different formats.

     

    There used to be a couple of CPM websites, but again, I have not looked for such things for a lot of years.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube