Viewing resistors in chemo monitor this.
We have already seen that we have a command.
So chemo provides a monitor interface which allows the emulated system to be controlled.
And you can view the status of the system as well.
So if I want to view the contents of the resistor I can use info resistor command.
And I can print all the resistors of the arm.
We have seen R2 is having R0 two was having nine right.
The other commands and I can help command.
I can see what all commands it has.
One of the command is system reset which performs reset of the system.
I mean starts again executing from zero zero and again the values should be same.
I can also perform and uh physical memory dump from particular address.
XP is physical memory dump.
XP command has a particular uh this arguments slash fmt and address and fmt has a particular syntax
like count format and size count.
Specifies how many the arguments I need to dump.
So if I write s xp zero, Tony prints me one.
I mean four bytes.
Now I can have some, uh, format like count.
I need to specify.
I need to print for S is zero.
Now it prints me for consecutive instructions like one, two, three and four.
And if I want to convert this into a particular format, I can say I need decimal.
I say xp for d zero.
This is in a decimal format.
I need by default is printing in hex or hex format, which is uh, x for x.
This is I if I do not pass.
Also, and if I want to convert in an octal format, I say O.
And if I want into an instruction format, I say I.
So now it is converting the same instructions.
It is also printing the opcode.
It is giving me the instructions.
This is the same code which we had uh, written in the assembly code.
Right.
And this is the opcode.
This is assembly instruction and this is the address where this is present.
And if you see branch address, see.
So this is a while one loop.
And I can also specify size of each data item like I can say for I w which is word I can also specify
g which will also do it, but it is only word giving four.
So I can use this and I can I can say I can directly give four and starts with four.
If I give two, it starts with two.
Uh give zero it prints the correct order.
So given a line format.
So yeah this is all about the.
So this is the same instructions which we had in the assembly.
Right.
Add dot s uh is present when I do a exp command which is like exp command is to dump the.
It also performs dumping the opcode.
Also.
It also disassembles and gives you the instruction format.
And if I see the hex dump of add dot o of sorry, I need to use something known as Objdump, not hexdump
and um none obj dump of add dot o.
Unknown.
Objdump disassemble.
I need to give a command.
And you see, it has same disassembly of section text because we have written text here.
Right.
And then the same thing is present which we were doing the chemo command.
Right.
Chemo.
And I say XP for I zero.
So it's almost same like opcode.
And uh opcode is there and the instructions are there.
And here the stop is replaced with the actual address.