ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3826

PPC help

by Justtestingit - 01-13-2019 - 03:10 AM
#1
can anyone explain to me what extsw does i am learning PowerPC and i have an instruction "extsw r3, r3" ive looked on IBM website but it is sometimes hard to understand the website id really appreciate it if anyone can provide any help in general on PPC or on this particular instruction.

Thanks in advance :)
Reply
#2
(01-13-2019 - 03:10 AM)Justtestingit Wrote: can anyone explain to me what extsw does i am learning PowerPC and i have an instruction "extsw r3, r3" ive looked on IBM website but it is sometimes hard to understand the website id really appreciate it if anyone can provide any help in general on PPC or on this particular instruction.

Thanks in advance :)

this might help  https://community.wemod.com/t/powerpc-be...orial/2039
Reply
#3
If your 32 bit value is 0x80000000 or greater, the result will be 0xFFFFFFFF00000000 + original value
If your 32 bit value is 0x7FFFFFFF or less, the result will be the exact same as the original value
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Multi
Reply
#4
maybe this could help yous https://imgur.com/npJC8Co
Reply
#5
(01-13-2019 - 05:19 AM)DewRific Wrote:
(01-13-2019 - 03:10 AM)Justtestingit Wrote: can anyone explain to me what extsw does i am learning PowerPC and i have an instruction "extsw r3, r3" ive looked on IBM website but it is sometimes hard to understand the website id really appreciate it if anyone can provide any help in general on PPC or on this particular instruction.

Thanks in advance :)

this might help  https://community.wemod.com/t/powerpc-be...orial/2039

thx
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#6
do you know what the r's mean, as id learn what they are first

check this out anyways
http://www.tentech.ca/downloads/other/PP...2_2010.pdf
Reply
#7
(01-13-2019 - 04:07 PM)PhucedMODZ Wrote: do you know what the r's mean, as id learn what they are first

check this out anyways
http://www.tentech.ca/downloads/other/PP...2_2010.pdf

yeah they are registers i know basic stuff just some instructions are tricky to understand :P thanks for the link it looks very helpful

Thanks for your help :)

(01-13-2019 - 11:33 AM)Cane Wrote: maybe this could help yous https://imgur.com/npJC8Co

very funny but if you are not going to give a serious answer dont waste your time replying thanks
Reply
#8
(01-13-2019 - 05:19 AM)DewRific Wrote:
(01-13-2019 - 03:10 AM)Justtestingit Wrote: can anyone explain to me what extsw does i am learning PowerPC and i have an instruction "extsw r3, r3" ive looked on IBM website but it is sometimes hard to understand the website id really appreciate it if anyone can provide any help in general on PPC or on this particular instruction.

Thanks in advance :)

this might help  https://community.wemod.com/t/powerpc-be...orial/2039

thanks for your help i appreciate it :)
Reply
#9
(01-13-2019 - 09:21 AM)pdb Wrote: If your 32 bit value is 0x80000000 or greater, the result will be 0xFFFFFFFF00000000 + original value
If your 32 bit value is 0x7FFFFFFF or less, the result will be the exact same as the original value
Thanks for your reply, here is more info about it 

 the value of r3 in this case can be anything from 0 - 17 (i think) and the first instruction using r3 is the "extsw r3, r3" which im unsure about what it does then further down the result in r3 is then cmpwi cr6, r3, 0 then a beq instruction which i understand what cmpwi does just not extsw
Reply
#10
(01-13-2019 - 05:19 AM)DewRific Wrote:
(01-13-2019 - 03:10 AM)Justtestingit Wrote: can anyone explain to me what extsw does i am learning PowerPC and i have an instruction "extsw r3, r3" ive looked on IBM website but it is sometimes hard to understand the website id really appreciate it if anyone can provide any help in general on PPC or on this particular instruction.

Thanks in advance :)

this might help  https://community.wemod.com/t/powerpc-be...orial/2039

Thank You, I don't have any use for ppc right now but if i do ill definitely look at this.
#CelestialFTW

Reply

Users browsing: 1 Guest(s)