UCSIM(1)
β¨ NAME β¨
s51, savr, sz80 β bestie, these are the 8051, AVR and Z80 microcontroller simulators for SDCC π three icons, one man page, we love to see it.
π SYNOPSIS π
s51 [options] filenames
savr [options] filenames
sz80 [options] filenames
β οΈ WARNING β οΈ
okay so real talk for a sec π«Ά
The information in this man page is an extract from the full documentation of SDCC, and is limited to the meaning of the options.
For complete and current documentation, refer to the ucSim simulator User Guide. (i.e. this page tells you what the flags mean, not the whole lore, iykyk)
π¦ DESCRIPTION π¦
ucSim is a microcontroller simulator. It is extensible to support different microcontroller families. It's giving "one simulator, many eras" π
- MCS51 family is simulated by
s51. - AVR family is simulated by
savr. - Z80 processor is simulated by
sz80.
Specified files must be names of Intel hex files. Simulator loads them in specified order into the ROM of the simulated system. Order matters, bestie β it goes in the order you wrote them, no takebacks.
π OPTIONS π
-tCPU β Type of CPU. Recognized types are:51,8051,8751,C51,80C51,87C51,31,8031,C31,80C31,52,8052,8752,C52,80C52,87C52,32,8032,C32,80C32,51R,51RA,51RB,51RC,C51R,C51RA,C51RB,C51RC,89C51R,251,C251,DS390,DS390F. Note that recongition of a CPU type as option does not mean that the simulator can simulate that kind of CPU. Default type isC51.DS390supports Dallas DS80C390 dual-dptr operations,DS390Fsupports minimal flat24 mode code and dual-dptr operations. fr fr, a name being on the list is not a promise it actually runs π-Xfreq[k|M]β XTAL frequency is freq Hertz.korMcan be used to specify frequency in kHZ or MHz. Space is not allowed between the number and thekorM. Default value is11059200Hz.-cfileβ Open command console on file. Command consoles are on standard input and output by default. Using this option the console can be opened on any file for example on the serial interface of the computer. plug the vibes in wherever you want β¨-Zportnumβ Listen for incoming connections on port portnum. Using this option uCsim can serve multiple consoles. You can get a console by simply telnet into machine running uCsimto port portnumber. This option is not available on platforms which doesn't support BSD networking. not on every platform, check before you commit π-sfileβ Connect serial interface of the simulated microcontroller to the file. Nothing is used by default which means that characters transmitted by serial interface of the simulated microcontroller go to nowhere and it will never receive anything. If you are going to communicate with serial interface interactively the best idea is to specify a teminal with-soption. the default is literally the void, no cap π³οΈ-Sin=file,out=fileβ Using this option you can specify different files for input and output streams that uCsim uses to simulate microprocessor's serial interface. split streams, split vibes π-ppromptβ Using this option you can specify any string to be the prompt of command interpreter, for example:
$ s51 -p "s51> "
ucsim 0.2.12, Copyright (C) 1997 Daniel Drotos, Talker Bt.
ucsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
s51>
-Pβ Prompt will be a null ('\0') character. This feature can be useful for programs which controls simulator through a pipe. silent but iconic π«Ά-Vβ Verbose mode. The simulator notifies you about some kind of internal actions for example interrupts. Messages are printed on command console. she's chatty and we love her for it π£-vβ Print out version number and stop.-Hβ Print out types of known CPUs. Names printed out by this option can be used to determine CPU type using-toption. peep the roster, then feed it to-tπ§-hβ Print out a short help about the options and stop.
π COPYING π
ucSim is distributed under the GNU General Public License. free software bestie, periodt π
π SEE ALSO π
sdcc(1), s51(1), savr(1), sz80(1).
π AUTHOR π
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian GNU/Linux system (but may be used by others). shoutout to the author, main character energy fr π«‘
and that's the whole thing, babe β this was the UCSIM(1) page from the General Commands Manual, section 1, so go forth and simulate responsibly πβ¨π
π¦ where this page comes from
- debian bookworm: sdcc-ucsim 4.2.0+dfsg-1
- ubuntu jammy: sdcc-ucsim 4.0.0+dfsg-2
- ubuntu noble: sdcc-ucsim 4.2.0+dfsg-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms