Searching \ for '[SX] 16-Bit operations in assembly' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/ubicom/devices.htm?key=sx
Search entire site for: '16-Bit operations in assembly'.

Exact match. Not showing close matches.
PICList Thread
'[SX] 16-Bit operations in assembly'
2005\09\28@064842 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

Ok, I USED to know how to do this back in my 6502 days but I get very little asm time these days and I'm rusty..lol
Anyway, here is what I am trying to do.

I need to send a 16-bit address (15-bit, actually) to two ports.

I would like to do something like:


SET(512)        // now, RB = %11111111 and RC = %00000001
SET(16788)    //  now, RB = %0010100 and RC = %10000011
etc...

Any clues where I can start?

Thanks!

cbmeeks
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@070226 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

For constants use:

Value EQU 512
 MOV RB,#(Value & 255)
 MOV RC,#(Value >> 8)
Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89599
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@071554 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

Thanks Bean!  But I should have mentioned it would be dynamic....

I need "Value" to loop from 0 to 32,767 thanks cbmeeks
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89601
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@075739 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

If you already have a 16-bit value it exists as two bytes, so just copy them to the ports.

MOV RB, #addrLo
MOV RC, #addrHi
Or am I missing something?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89611
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@093727 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

hmm...maybe I am making it too difficult?  Is it really that simple?

So, I could:


addr      ds    2             ; two bytes
;set addr = 2378
MOV RB, #addr
MOV RC, #addr+1

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89626
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@095259 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Only without the "#"
MOV RB,addr
MOV RB,addr+1
Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89628
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@100020 by Johnson Rodn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Johnson Rod wrote:

arent you just trying to slide a single bit across 2 output registers?

if so wouldnt this work mov ra , #1
clc
loop
rr    ra
rr    re
jmp loop
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89631
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\28@114111 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

[Quoting: "Bean (Hitt Consulting)"]Only without the "#"
MOV RB,addr
MOV RC,addr+1
Bean.

Dur...yeah, that looks better because I am moving the CONTENTS of addr...not the constant addr...lol
[Quoting: "nick bernard"]arent you just trying to slide a single bit across 2 output registers?

if so wouldnt this work mov ra , #1
clc
loop
rl    ra
rl    re
jmp loop


What I am actually tring to do is read the contents of SRAM.

I have built SRAM circuits that actually worked really well but my address bus was limited to 256 bytes (one port).
So, two ports gives me 64k which is exactly the amount I need (actually, 32k for now).

I am trying to make a PEEK and POKE command.  :-D
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89663
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\29@155000 by jonwilliamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jonwilliams wrote:

There's no way.  You actually couldn't figure out moving a 16-bit variable?  If this is the level of programming skills of our customers, we're screwed.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89861
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\29@160800 by Jeff Youngn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jeff Young wrote:

Whoever this is trying to impersonate Jon, it's not all that funny.

Just from reading all of the posts on here, just about every day, I know for a fact that he's a damn good helper when it comes to this stuff...  (And I can't forget you as well BEAU!)  I noticed at the bottom of the screen when I logged on that the newest member was Jon Williams [Parallax] and thought it was sorta peculiar, so after looking, it shows only 1 post and the screen name was created today, as well as the tone in his post above was a little off-beat for him. (Unless you didn't Google first! But that's another story!) :-)

~Jeff
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89865
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\29@161541 by Coriolisn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote:

Yeah the "Total Posts: 1" sorta gives it away, totally uncool. Whoever you are, you should be banished from the forums permanently. Spoofing a person's identity is completely reprehensible, especially if your aim is to sully the reputation of a Parallax employee. They work hard to provide top notch customer service, and they dont need bleepity bleep bleeps like yourself screwing things up.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89866
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@062909 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

Man, some people have TOO much time on their hands.

And Dude, the fake Jon, you're NO "hacker" because you changed "(Parallax)" to "[Parallax]".
Go get a life....better yet, run across an interstate without looking.

cbmeeks
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89914
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@064219 by Coriolisn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote:

I love the fact you put his email address in the profile, did you compare the email and or ip addy to the list of other members to see if it was an existing member? If he were smart he would have used an alternate email address and relayed his connection, but something tells me he isn't that bright.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89916
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@070023 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

I love the fact he only got one post in before being busted...hehehe.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89918
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@074955 by Jeff Youngn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jeff Young wrote:

I'd email him and let him know what a &*#*?@! he is, but that's a waste of $0.35 to send it to him! ..... Ooops, wrong type of mail... still a waste of $0.00 though!!  I'll bet he's a member here, or he has been reading threads on here for a little while.  The fact that he even went as far as copying Jon's picture, and the signature below his name only meant that he actually thought about it before he did it and didn't just pick a random name to do it with.  I'm sure if he would've posted a bunch of fake thread responses telling people how to basically (no pun intended) screw up their stamps he would've been really proud of himself.  Hmmm... that type of maturity gets me wondering if we should check all of the local elementary schools for wannabe hackers!!  We'll get him now! :-)  BTW I love the way you handled it Jon!  That is awesome!
~Jeff
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89931
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@080853 by g_daubachn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote:

Momentan überlege ich, ob ich meine zukünftigen Nachrichten im Forum in deusch schreiben soll. Vielleicht fällt es dadurch solch dummen, geistlosen Leuten schwerer, meine Nachrichten zu fälschen.

Currently, I'm considering to write all my future forum posts in German language. Maybe, this makes it a bit more difficult for such stupid, mindless wimps to fake my posts :-) .

I can only say: Rippers get out'a here !!!

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89940
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@094642 by LostboYn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, LostboY wrote:

No matter where you go, there you are....

Ryan
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89959
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@102041 by Coriolisn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote:

No wonder, the kid must be bored silly living in Des Moines, where the state capitol is rated the 2nd most interesting thing to visit (behind the state fairgrounds, whose #1 review is "too crowded, things are too exspensive (sic), alot of horse cr@p. but overall fun.").

Anyways, cbmeeks did you have your question thouroughly answered, since this thread has veered offtopic?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89965
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\09\30@102752 by cbmeeksn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cbmeeks wrote:

Yeah, I think I am OK for now.  I had to go back to the drawing board anyway.

I got some 74HC164's on their way plus, I might actually have to fire up that SX52 protoboard I have...lol
40 pins makes it a LOT easier to access SRAM than 20.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m89967
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)


'[SX] 16-Bit operations in assembly'
2005\10\03@081917 by LostboYn/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, LostboY wrote:

No matter where you go, there you are.

Ryan
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m90146
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\10\07@023457 by knightofoldcoden/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, knightofoldcode wrote:

Jon,
I'd assume you changed his e-mail address on the fake Jon's account, seeing as how he could recover the changed password with the lost password feature.  ;)
But I'm sure you already thought of that.  ;)
Knight.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89595#m90690
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...