UCSIM(1)

πŸ’– NAME πŸ’–

okay so welcome to the UCSIM(1) page from the General Commands Manual, bestie β€” this is uCsim, aka the Micro-controller simulator. It's giving simulator-for-several-processor-families realness. You start it as a ucsim_XXXX command, where XXXX tells it which simulated processor type you want. Eg. ucsim_51 starts the Intel MCS51 microcontroller simulator, ucsim_z80 starts the Zilog Z80 microprocessor simulator, etc. iconic behavior ✨


✨ SYNOPSIS ✨

ucsim_i8051
ucsim_51
ucsim_xa
ucsim_z80
ucsim_tlcs
ucsim_rxk
ucsim_i8048
ucsim_i8085
ucsim_avr
ucsim_pdk
ucsim_st7
ucsim_stm8
ucsim_p1516
ucsim_m6800
ucsim_m6809
ucsim_m68hc08
ucsim_m68hc11
ucsim_m68hc12
ucsim_mos6502
ucsim_plaze
ucsim_f8
ucsim_oisc
       -a nr -A -b -B -c file -C cfg_file

       -e command -E -g -G -h -H -I options -k portnum -l -o colors -p
       prompt -P -q -R seed -s file -S options -t cpu_type -U uartnr -u
       hw -v -V -w -X freq[k|M] -z portnum -Z portnum

🌸 DESCRIPTION 🌸

uCsim is a microcontroller, microprocessor simulator for several processor families. It can be started as ucsim_XXXX command, where XXXX specifies the simulated processor type. Eg. ucsim_51 starts Intel MCS51 microcontroller simulator, ucsim_z80 starts Zilog Z80 microprocessor simulator, etc. Slay, honestly. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

Options of the command β€” yes bestie, all of them, no skipping. 🫢

  • -a nr β€” Specify size of variable space (default=256).
  • -A β€” Force use colored output, remove effect of -b and -q on colors.
  • -b β€” Black & white (non-color) theme.
  • -B β€” Beep on breakpoints.
  • -c file β€” Open command console on file (use - for std in/out).
  • -C file β€” Read initial commands from file and execute them.
  • -e command β€” Execute command at program startup (after config file).
  • -E β€” Go, start simulation in emulation mode.
  • -g β€” Go, start simulation.
  • -G β€” Go, start simulation, quit on stop.
  • -h β€” Print out this help and quit.
  • -H β€” Print out types of known CPUs and quit.
  • -I options β€” options is a comma separated list of options according to simulator interface. Known options are:
    • if=memory[address] β€” turn on interface on given memory location.
    • in=file β€” specify input file for IO.
    • out=file β€” specify output file for IO.
  • -k portnum β€” Use localhost:portnum for serial I/O. This option is obsolete, use -S instead.
  • -l β€” Use colors of the light theme (default is dark).
  • -m β€” Return value of simulated main() function.
  • -o colors β€” List of color specification: what=colspec,... where colspec is a : separated list of color options e.g.: prompt=b:white:black (bold white on black).
  • -p prompt β€” Specify string for prompt.
  • -P β€” Prompt is a null ('\0') character.
  • -q β€” Quiet mode, print less information (implies -b).
  • -R seed β€” Set the random number generator seed.
  • -s file β€” Connect serial interface uart0 to file. This option is obsolete, use -S instead.
  • -S options β€” options is a comma separated list of options according to serial interface. Know options are:
    • uart=nr β€” number of uart (default=0).
    • in=file β€” serial input will be read from file named file.
    • out=file β€” serial output will be written to file.
    • port=nr β€” use localhost:nr as server for serial line.
    • iport=nr β€” use localhost:nr as server for serial input.
    • oport=nr β€” use localhost:nr as server for serial onput.
    • raw β€” perform non-interactive communication even on tty.
  • -t cpu_type β€” Specifies type of the controller. Use -H to list possible values.
  • -U uartnr β€” Use std console as terminal for UART id=uartnr.
  • -u hw β€” Use std console as display for specified hw.
  • -v β€” Print out version number and quit.
  • -V β€” Verbose mode.
  • -w β€” Writable flash.
  • -X freq[k|M] β€” XTAL frequency in Hz, Use k or M suffix to specify frequency in kHz or MHz.
  • -z portnum β€” Listen portnum for command console.
  • -Z portnum β€” Listen portnum for command console (no console on stdio).

πŸ’… EXAMPLES πŸ’…

None yet. That's the whole examples section, bestie. We're thriving anyway. 🫢


πŸ”₯ SEE ALSO πŸ”₯

Go peek at sdcc(1), sdcdb(1), and serialview(1). iykyk ✨


πŸ’€ BUGS πŸ’€

Probably many. 😭 Not me saying it β€” the page says it. Keep that in mind, bestie. πŸ’€


πŸ‘‘ AUTHORS, CONTRIBUTORS πŸ‘‘

Big shoutout to the people this page credits: Daniel Drotos, Gunar Holm, Sandeep Dutta, Salvador Eduardo Tropea, Josef Wolf, Stephane Meyer, Larry Doolittle, Timothy Hurman, Karl-Max Wagner, Edmar Wienskoski Jr, Alexandre Frey, Kaido Karner, Kalr Bongers, Alexis Pavlov, Davine Zanni, Anton Persson, Nicolas Lesser, Mike Jagdis, Jiri Simek, Zbynek Krivka, Vaclav Peroutka, Valentin Dudouyt, Erik Petrich, Leland Morrison, Johan Knol. πŸ‘‘ legends πŸ‘‘


okay that's the whole UCSIM(1) page, bestie β€” the footer is just the manual name UCSIM(1) again, with no extra source/version or date line to spill, so consider this the cute sign-off instead. πŸ’–βœ¨

πŸ“¦ where this page comes from