Is there a possibility for something like: JMP #$+4 ($=actual adress in cog ram
Christof Eb.
Posts: 1,224
Has anyone seen a possibility to write something like:
JMP #$+4 ($=actual adress in cog ram or in main ram.)?
Many thanks for some input!
Christof
JMP #$+4 ($=actual adress in cog ram or in main ram.)?
Many thanks for some input!
Christof
Comments
···· djnz·· count,#:start+3
[noparse][[/noparse]/code]
In some circumstances, you might be able to use local labels (":start" for example) instead of the "here" operand ("$").· Some compilers get around the lack of a "here" operand by generating conventional labels like "L0001".· In the case of Spin, you could use a combination of local labels and generated labels ... You could start the renumbering over again in every C function and use ":L0001" through ":L9999".
·
What is the main goal of what you are trying to implement?
BTW,the jump instruction can be used without the # such that the jump reg will go to the address contained in reg.
I always use something like:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
I'm working on the SmallC Compiler and it would have been a possibility to get the compiler to pass long literals to the assembler, if there had been a thing like "$" in this assembler.
Sorry for not having been clear.
Christof
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Update: Oh, by the way, in some assemblers the "here" symbol refers to the instruction containing it; in others, to the next instruction. Even though it's confusing having two standards floating around, there's no compelling reason to pick one over the other.
In either case, the expression "$-$" makes a nice bold indicator for source or destination values that get filled in during execution. I've used "0-0" up until now.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 3/24/2007 5:22:42 PM GMT
I just got this done and Jeff is going to compile it into the Propeller.exe when he gets back from lunch, so we should have a new version posted on this thread in a few hours.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Now you can use $ in DAT declarations to say 'here' within the cog.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
-Phil
Thanks for ny version av Propeller Tools.
But still not manual Com port settings.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
Sapieha
Many thanks. That's a welcomed addition, and you chose the exact token I prefer
edit: is 1.05.05 the latest tool? And is there a history file that notes changes/updates that has been shared?
Post Edited (Fred Hawkins) : 9/20/2007 4:55:13 PM GMT
jmp #$
Gives the error "Invalid Hex Number"
[noparse][[/noparse]edit] The .exe in the post above gives me version 1.05.6 .. so no..
The v1.05.6 posted in this thread supports that feature. The web site wasn't updated though (still have v1.05.5). I've taken care of it and it should be posted to the web in a few minutes.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
Thanks for unearthing this today. $ got overlooked by the mainstream here -- I think my first post here was just about this thing, with the same label answer.
Fred
edit: Does one uninstall the 1.05.5 before installing this one? Or will it just overwrite?
Post Edited (Fred Hawkins) : 9/20/2007 8:53:35 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Sapieha, thanks.
Edit:
So Brad's query doesn't get ignored:
What's up with 1.05.7 version (which one further than this thread's)?