[ <] | [ >] | [ <<] | [ Up] | [ >>] | [Top] | [Contents] | [Index] | [ ?] |
This chapter documents the protocol that simulavr uses to pass register and memory information to a display coprocess.
A display coprocess is a separate program started by simulavr for the sole purpose of displaying register and memory information while an AVR program is running in the simulator. Using a separate program and a standardized communication protocol, keeps the simulavr code simpler and allows for a variety of display programs to be used.
When the user asks simulavr to display register and memory information during execution, simulavr will start a coprocess to perform the display work. A pipe will be opened in simulavr into which the data will be written using the following commands:
‘q’ |
Quit. |
||||
‘r<reg>:<val>’ |
Set register to val. |
||||
‘p<val>’ |
Set program counter to val. |
||||
‘i<reg>:<val>’ |
Set io register to val. |
||||
‘I<reg>:<name>’ |
Set io register name. |
||||
‘s<addr>,<len>:XX’ |
Set sram addrs to values (one XX pair per addr). |
||||
‘e<addr>,<len>:XX’ |
Set eeprom addrs to values (one XX pair per addr). |
||||
‘f<addr>,<len>:XXXX’ |
Set flash addrs to values (one XXXX quad per addr). |
||||
‘n<clock_ticks>’ |
Update the number of clock ticks. |
[ <] | [ >] | [ <<] | [ Up] | [ >>] |
This document was generated by eweddington on November, 7 2008 using
texi2html 1.78
.