I'm a computer science student, currently taking a course on computer organization. I would just like some help in understanding how to derive character operands in Assembly. The instructions in assembly are straightforward, charo/chari, deco/deci, etc. My misunderstanding lies in the operands. For instance:
CHARO 0x0007,d ;This will output "H"
CHARO 0x0008,d ;This will output "i"
How do you make the leap from "H", it's hex equivalent being 48, to 0x0007? Any clarification would be appreciated. I'm just trying to wrap my head around this so I can focus on the logic.
Edit by @mpetch:
What is missing is context. The full program is as follows:
CHARO 0x0007,d ;This will output "H"
CHARO 0x0008,d ;This will output "i"
STOP
.ASCII "Hi"
.END
The Pep/8 encoding of this program is:
51 00 07 51 00 08 00 48 69 zz