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
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?????????????????????
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????
You're not going to get very far with programming if you can't follow simple instructions like, "Don't keep writing in ALL CAPITALS".
How do you know that it doesn't work?
If you don't know what processor it runs on, how have you tested it?!
Stop shouting. Toggle your 'Caps Lock'.
The program does not add numbers. What's wrong is that you think it does or expect it to.
David likely has it correct by identifying the Z8 instructions.
Since Keil does not offer a Z8 toolchain, you should be looking for a Z8 forum or other processor-specific means of support.
I still think the code is Zilog Z8.
One thing's for sure - It is certainly not native 8051.
Someone might have gone crazy with some macros to make 8051 code look like something else; but it's pretty unlikely.
It's a fair bet that the code you gave does not add numbers.
What I think it does is copy a pointer from RAMSAVE to SVx_RAM.
What sort of project is this?
A very good question!
Since it hasn't been positively identified as not a Keil-supported instruction set, I s'pose it's still potentially on-topic.
So, we know it's not 8051, and I guess that probably also precludes 80251 - can anyone confirm that it's definitely not C16x/ST10 or ARM?