| ??? 08/02/05 09:23 Read: times |
#98659 - Allocate 2 bytes to a floating pointer |
Hello all guys
I want to allocate 1 word(2 bytes) to a pointer Assume in one case Pointer=0CAFFH what is the best choice: 1). mov dptr,#Pointer clr a movc a,@a+dptr mov high,a ..... ..... ;it doesn't change dptr value inc dptr clr a movc a,@a+dptr mov low,a ..... ..... Pointer: DB 0CAh,0FFH Pointer1: .... Pointer2: .... 2). Hpointer equ 0CAH Lpointer equ 0FFH mov pointer,Hpointer ...... ...... mov pointer,Lpointer In this case i must use up to 200 equivalent such as H1pointer.... 3). mov pointer,#high(0CAFFH) ..... ..... mov pointer,#low(0CAFFH) Or is there another way? Thanks Reza |
| Topic | Author | Date |
| Allocate 2 bytes to a floating pointer | 01/01/70 00:00 | |
| fixed or variable pointer? | 01/01/70 00:00 | |
| More Description! | 01/01/70 00:00 | |
| MMIO? | 01/01/70 00:00 | |
| It all depends.... | 01/01/70 00:00 | |
| My Opinion! | 01/01/70 00:00 | |
| does not exist and does not address atom | 01/01/70 00:00 | |
| 16 bit data!!!! | 01/01/70 00:00 | |
| My Problem Solved! | 01/01/70 00:00 | |
| To Reza | 01/01/70 00:00 | |
| To Erik | 01/01/70 00:00 | |
| ??????? | 01/01/70 00:00 | |
if no external registers >8 bits, no pro | 01/01/70 00:00 |



