Im trying to make a "vintage" computer out of a arduino and MS-DOS seems like a good operating sistem for a arduino since it doesnt need that much processing power or ram.
Any help or tip on the subject is welcome :3
Not going to happen.
.
why not ?
You cannot run a program in RAM.
.
larryd:
You cannot run a program in RAM..
i know im might sound annoying but why ?
Because an Arduino sketch is compiled and run from FLASH.
Read this:
.
larryd:
Because an Arduino sketch is compiled and run from FLASH.Read this:
https://www.arduino.cc/en/Tutorial/Memory.
But if i have a program stored in a sd card for example(with appropriate shield) , cant i just pull a program from there and run it ?
No.
Programs/sketches for the Arduino are compiled then uploaded to FLASH where they are executed.
.
larryd:
No.
Programs/sketches for the Arduino are compiled then uploaded to FLASH where they are executed..
Ok, but what i meant is that hypothetically imagine that i have ms dos running on flash, cant you make the sd card shield assign a external disk (D:\ for exemple) and run it , or does the arduino only runs stuff that is explicitly on eeprom ?
You came up with a stupid idea, have it spelled out to you why it won't work, but you don't understand the explanations. At your level, you just need to take it on faith, then, that no means no.
If you want to run a dos emu on a SOC and underutilize the capabilities of that chip for some inane reason, get a Pi.
You can store/read 'data' to/from a SD card.
Example: an array in SRAM is updated with analog input readings. These are stored to a file on the SD card; the SD card is removed then read by a PC where they are graphed.
.
ok, well thanks for the help, i guess that MS-DOS on arduino isnt gonna happen ![]()
PS: Thanks larryd for taking the time to explain me :3
Spyrotech:
Im trying to make a "vintage" computer out of a arduino . . .
When DOS isn't vintage enough: Arduino Playground - HomePage
Spyrotech:
Im trying to make a "vintage" computer out of a arduino and MS-DOS seems like a good operating sistem for a arduino since it doesnt need that much processing power or ram.
Any help or tip on the subject is welcome :3
Apple II DOS is even better and smaller. Why not use it? Or perhaps CPM?
Paul
Harvard architecture has separate data and instruction busses, allowing transfers to be performed simultaneously on both busses.

A von Neumann architecture has only one bus which is used for both data transfers and instruction fetches, and therefore data transfers and instruction fetches must be scheduled - they can not be performed at the same time.

Arduino ATMEGA is using Modified Harvard architecture and MS-DOS is design for von Neumann architecture.
Somebody posted something regarding a little OS a while ago; could execute programs from SD card if not mistaken. I wished I could remember the name.
// Found it:
http://forum.arduino.cc/index.php?topic=490066.0
Not sure how far it is.
Yes, you can emulate a Von Neumann machine on a Harvard machine. Any one you want, within speed and memory limitations.
Paul_KD7HB:
Apple II DOS is even better and smaller. Why not use it? Or perhaps CPM?Paul
Thank you for the sugestion, and one question what exactly is CPM
Google "CP/M"
Or try Linux on ATMega