??? 09/13/04 05:45 Read: times |
#77296 - RE: Working on nibble Responding to: ???'s previous message |
Here is another way that is not so direct but does nearly the same thing. In this case presume that you are using the default register bank #0 where Register 1 is at internal RAM address 1 and Register 2 is at internal RAM address 2.
CLR A ; initial clear A MOV R0, #2 ; indirect pointer to R2 XCH A, @R0 ; get R2 byte to A DEC R0 ; indirect pointer to R1 XCHD A, @R0 ; swap low nibble of R1 into A Michael Karas |
Topic | Author | Date |
Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
First Step![]() | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 | |
RE: Working on nibble | 01/01/70 00:00 |