(Assembly language) Write a subroutine(GROUP) that operates the contents of R5 in order to group all bits equal to 1 on

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(Assembly language) Write a subroutine(GROUP) that operates the contents of R5 in order to group all bits equal to 1 on

Post by answerhappygod »

(Assembly language)
Write a subroutine(GROUP) that operates the contents of R5 inorder to group all bits equal to 1 on the right and all bits equalto 0 on the left.
See the examples below:Gets R5 = 0xBCA6 = 1011 1100 1010 0110 -->Returns R5 = 0000 00011111 1111
Gets R5 = 0x5322 = 0101 0011 0010 0010 0110 --> ReturnsR5 = 0000 0000 0011 1111
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply