This section contains several example of using the target Microprocessor simulator.
$ m1750-coff-run hello Hello world
$ m1750-coff-run -s hello Hello world CPU type: MA31750 Clock frequency: 10.0 MHz Memory allocated: 13056 16-bit words Instructions executed: 523 Clock cycles: 2416 Execution time: 241.600 uSec
The following example shows an instruction trace with line numbers. We have delayed the trace by 200 microseconds to skip the lines of interest.
$ m1750-coff-run -t -d 200 hello Hello wor/opt/xgc/m1750-coff/src/libc/sys/write.c:80 <.LM13+2> 200.200 00001066 bez -3 /opt/xgc/m1750-coff/src/libc/sys/write.c:83 <.LM14> 200.600 00001068 xio r1,po+0x000,r3 l/opt/xgc/m1750-coff/src/libc/sys/write.c:57 <.LBE3> 202.200 0000106C aisp r4,1 202.400 0000106E lim r0,32768 202.800 00001072 lr r1,r4 203.000 00001074 xorr r1,r0 203.200 00001076 xorr r0,r2 203.400 00001078 cr r1,r0 203.600 0000107A blt -26 /opt/xgc/m1750-coff/src/libc/sys/write.c:59 <.L6> 204.000 00001046 lr r1,r5 204.200 00001048 ar r1,r4 204.400 0000104A l r1,0,r1 /opt/xgc/m1750-coff/src/libc/sys/write.c:62 <.LM8> 205.000 0000104E cisp r1,10 205.400 00001050 bnz 8 ...lots of output...