Jump to content
Sign in to follow this  

Recommended Posts

Are the portd, porte and the memory-size of the sx52 supported ?????

 

Under Settings...Target can be the Item SX52 selected but i think there is no support in the IDE and the Compiler. Is it right ?

Share this post


Link to post
Share on other sites
Guest Pavel

The compiler works fine with SX52. What makes you think that SX52 is not supported?

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

@admin

The Ports D and E are not defined. We have download the last version (21 or 22. Feb) and the prior version. The initialization of the Port are also not correct. If we do correct them, the the assembler works fine.

The problems are :

- in place of "mov w,#$0F mov m,w" we must write "MODE #$0F"; the first exp is the output of the compiler, which we translate by hand to the second exp

- in place of "mov w,#$FF mov !ra,w" we must write "mov !ra,#$FF"

- no definition of the set_trisd and set_trise

- the code line : "asm MODE #$0F" creates an error-message : ""

- also the code line "asm !ra,#$FF"

 

Another question : Is there a possibility for writing macros ?

 

Thanks for your reply.

Share this post


Link to post
Share on other sites
Guest Pavel
The Ports D and E are not defined.

Define these two using variables with fixed addresses.

- in place of "mov w,#$0F mov m,w" we must write "MODE #$0F"; the first exp is the output of the compiler, which we translate by hand to the second exp

Compiler doesn't understand equivalent assembler mnemonics but only the main instruction set (from SX datasheet). And I don't understant the reason you need to replace these two instructions with the 'mode' alternative instruction. Can you explain?

- in place of "mov w,#$FF mov !ra,w" we must write "mov !ra,#$FF"

There is not mov instruction in SX datasheet that moves literal to a register. What instruction set do you use?

- no definition of the set_trisd and set_trise

You can use built-in assembler for these.

- the code line : "asm MODE #$0F" creates an error-message : ""

Again the equivalent assembler mnemonics are not supported in the compiler.

- also the code line "asm !ra,#$FF"

This is an invalid assembler instruction as the instruction opcode is missing.

Another question : Is there a possibility for writing macros ?

If you mean C macros than yes.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

So our problem must be the Parallax-Asm from SX-Key.

Probably the code from standard expressions is not correctly assembled.

Compiler doesn't understand equivalent assembler mnemonics but only the main instruction set (from SX datasheet). And I don't understant the reason you need to replace these two instructions with the 'mode' alternative instruction. Can you explain?

I had to change the mentioned expressions in order to get a running program in our SX.

 

Do you have experience with this one or which asm do you prefer.

 

Best regards from the Baltic Sea

Share this post


Link to post
Share on other sites
Guest Pavel
So our problem must be the Parallax-Asm from SX-Key.

Not exactly. You can use the Parallax assembler. Just don't use Parallax assembler specific instructions in built-in assembler. Use only "native" instructions from the SX datasheet.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

This is not the problem !

 

The problem is, that the native asm code produced by your compiler doesn't work correctly when we program it with the SX Key Software from parallax.

 

The problems are the code lines i descibe before.

 

For example :

 

produced by the c compiler : "mov w,#$0F mov m,w"

but we must use "MODE #$0F"; only then the SX do what he has to do.

 

For the other changes we have to do read our messages before.

 

Best regards

M. Kenner

Share this post


Link to post
Share on other sites
Guest Pavel
produced by the c compiler : "mov w,#$0F mov m,w"

but we must use "MODE #$0F"; only then the SX do what he has to do.

Do you want to say that Parallax assembler generated different opcodes for "MODE #$0F" rather than for the instruction pair "mov w,#$0F" and "mov m,w". If that statement is corrects that this is a bug in Parallax assembler.

 

Regards,

Pavel

 

PS: It looks suspicios to me that you use "mov w,#$0F" and "mov m,w" instructions together as if they were generated as one line. Is that the case or you did it on purpose for better message readability?

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...