please dont rip this site

SX Embedded Controller Instruction

JMP PC+W

Description: Add W into PC(L), clear bit 8
Operation: PC = ( PC & 0xFEFF ) + W
Flags affected: C DC Z
Registers affected: PC
Sources referenced: W
Cycles: 1
Opcode:
Actually compiles to: add 2, W
Microchip PIC syntax: ADDWF 2,1
Notes:

When executing a jmp PC+W, on the SX 18,28,etc.. no carry of the addition from bit 7 to bit 8 of the PC is performed. This means that relative jumps are restricted to the half page of 256 instructions from which the jump originates.

Despite this not being documented anywhere, adding, or-ing, and-ing, moving, etc... an 8 bit value to the PC (bits 0..7) also results in CLEARING the 9th bit (bit 8) of the PC. So you can only do relative or computed jumps into the first half page of each page. Just like calls.

Affected by the the CF_ bit in FUSEX (DEVICE CARRYX). If the CF bit is set to Zero, the Carry flag will be included in the addition. As a result, if the Carry is set, the destination will be one address higher than ( PC & 0xFEFF ) + W


file: /Techref/scenix/inst/jmppcw.htm, 2KB, , updated: 2008/1/30 19:15, local time: 2024/11/8 19:42,
TOP NEW HELP FIND: 
18.217.209.61:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/Techref/scenix/inst/jmppcw.htm"> SX Instruction JMP PC+W</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .