The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

I was given a challenge for Perl; by caffine-iv2003-01-19 02:34:14
  Let's try it in MPASM assembler: by Tomo 2003-01-19 06:34:32
(16-bit core)
var1  res   1  ;First variable
var2  res   1  ;Second variable

      movfp var1, WREG  ;Copy var1 to working reg
      movfp var2, var1  ;Copy Var2 to Var1
      movwf var2        ;Copy working reg to Var2
So how do you intend to not use the working register?
Actually, I think it might be possible using XOR and SWAPF (swaps nibbles in register). I'll think about this.
[ Reply ]
    Unless it's built into the processor, by kahuana2003-01-19 09:17:06

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)