We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I HAVE THIS CODE AND NEED TO SAY WHAT IS WRONG
HELP ME PLZ
LD R0,#>RAMSAVE LD R1,#<RAMSAVE LDE R2,@RR0 LD SV0_RAM,R2 INCW RR0 LDE R2,@RR0 LD SV1_RAM,R2 INCW RR0 LDE R2,@RR0 LD TX_RAM,R2 JP LL9
<CODE> LD R0,#>RAMSAVE LD R1,#<RAMSAVE LDE R2,@RR0 LD SV0_RAM,R2 INCW RR0 LDE R2,@RR0 LD SV1_RAM,R2 INCW RR0 LDE R2,@RR0 LD TX_RAM,R2 JP LL9 </CODE>
First the instruction set (not 51). Anything else you should ask David Copperfield.
WHAT IS EMAIL ADDRESS OF DAVID COPEFIELD PLZ?
You have stated your Toolset (and, thus, your processor architecture) as "C51"; ie, the Intel 8051 and its derivatives.
The code you have posted does not contain 8051 instructions!
The 8051 Instruction Set is fully described here:
80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
YES IT IS NOT 8051. WHAT IS IT PLZ. WHAT IS WRONG?????????????????????
Don't keep writing in ALL CAPITALS!!
(David Copperfield doesn't exist - it was a joke).
STOP SHOUTING, and start thinking.
IS IT 80386???????????????????????
IS IT Z80?????????????????????????
Which part of "Don't keep writing in ALL CAPITALS" don't you understand?
is it 80386 ??????????????????????????????????? is it z80 ????????????????????????????????????????? is it 6502 ??????????????????????????????????
So where did you get this code from, if you don't even know what processor it's for?!
How can you tell that there's anything wrong with it without knowing that?
Why did you originally choose "8051" if you knew it was not 8051?!
It looks like it could be code for a Zilog Z8 processor.
What is wrong? From the code snippet you've given I cannot say! What is it supposed to do?
Motorola 6809
Nope. A closer look precludes that device.
PROGRAM ADDS NUMBERS BUT DOES NOT WORK. WHATI S WRONG PLZ????