| ??? 06/18/07 07:14 Read: times |
#140926 - WoW sir it really worked:-) here is full code, Responding to: ???'s previous message |
Thanks alot sir, how am i dumb cuz it was just beneath my nose,
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN: LCALL SERIAL_INIT ;serial Init without interrupt
AGAIN: JNB RI,$
MOV A,SBUF
CLR RI
MOV B,#002H
MUL AB ;multiplieng to get the exact location
MOV DPTR,#MY_TABLE ;moving the DPTR to my table value
MOVC A,@A+DPTR ;now the A holds the data of exact location but the prob is how to branch there :-(
JMP @A+DPTR ;MOST IMPORTANT INSTRUCION
SJMP AGAIN
MY_TABLE: SJMP LOC1 ;My table here
SJMP LOC2
SJMP LOC3
SJMP LOC4
SJMP LOC5
END
|
| Topic | Author | Date |
| How to branch through table, without CJNE ? | 01/01/70 00:00 | |
| You are very close | 01/01/70 00:00 | |
| Oh Thanks sir, :-) you are really great, | 01/01/70 00:00 | |
| WoW sir it really worked:-) here is full code, | 01/01/70 00:00 | |
| Not quite | 01/01/70 00:00 | |
| re: Abbreviations | 01/01/70 00:00 | |
| Some remarks | 01/01/70 00:00 | |
| Some Corrected Remarks :-) | 01/01/70 00:00 | |
| The difference | 01/01/70 00:00 | |
| other type of table, XOR instead CJNE ;-) | 01/01/70 00:00 | |
Rotate | 01/01/70 00:00 |



