??? 04/16/08 14:43 Read: times |
#153485 - As easy as 'abc' Responding to: ???'s previous message |
Uttam Bansal said:
can any1 tell how to get abc here???
PC wwww wyyy yyyy yyyy ajmp abc0 0001 xxxx xxxx addr jumped to wwww wabc xxxx xxxx If you looked at my C code you would see that the bits 00001 the base opcode for the AJMP instruction. ( field in my code) the PC 'wwww wyyy yyyy yyyy' 'iloc' in my code The bits '00001' is the base opcode for AJMP 'field' the bits 'abc' are the bits 8..10 of the operand expression 'v' the bits 'xxxxxxxx' are the bits 0..7 of the operand expression 'v' the bits 'wwwww' are implied by the location counter. Eric has suggested that you download a free assembler. So you can test your code against a real assembler. David. |