Write a pic18f assembly language program at address 0x200


Question: Write a PIC18F assembly language program at address 0x200 that will check whether the 16-bit signed number in registers [0x31][0x30] is positive or negative. If the number is positive, the program will multiply the 16-bit unsigned number (bits 12 through 15 as 0's) in [0x21][0x20] by 16, and provide a 16-bit result; otherwise, the program will set the byte in register 0x40 to all ones. Use only data movement, shift, bit manipulation, and program control instructions. Assume the 16-bit signed and unsigned numbers are already loaded into the data registers.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a pic18f assembly language program at address 0x200
Reference No:- TGS02271239

Expected delivery within 24 Hours