Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this assembly lang script do?help?

Status
Not open for further replies.

scripthelp0

Programmer
Oct 11, 2009
1
CA
!BITPATTERN = 0xAB01CDFF
.global main
main:
save %sp, -96, %sp


set BITPATTERN, %l0

clr %l1 ! checkpoint 1


sll %l0, 24, %l2
add %l2, %l1, %l1 ! checkpoint 2

srl %l0, 8, %l2
sll %l2, 24, %l2
srl %l2, 8, %l2

add %l2, %l1, %l1 ! checkpoint 3


srl %l0, 16, %l2
sll %l2, 24, %l2
srl %l2, 16, %l2
add %l2, %l1, %l1 ! checkpoint 4


srl %l0, 24, %l2
add %l2, %l1, %l1 ! checkpoint 5

ret
restore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top