Find Jobs
Hire Freelancers

Time Sensitive must be done my Sun 11pm central time US, Project in PLP tool 5.2 a UART Palindrome Checker

$30-250 USD

已完成
已发布超过 4 年前

$30-250 USD

货到付款
-Attached is Source file#1 [login to view URL] this file is used to print to UART and will not need to be changed. -Attached is the Modular Skeleton file that needs to be modified in order to interact with source file #1 -After modifying Skeleton file you need to enter entry file attached into uart and it must read back yes no yes no for verification project is working. The Task In this project, you will be writing a program that receives a string of characters via the UART, checks if this string is a palindrome, and then uses a print function to print either “Yes” or “No”. A palindrome sequence of characters (typically a word or phrase) that is the same both forwards and backwards. For this project, strings will be terminated using a period (‘.’). You may assume that a string will contain at least one character in addition to a period. You will not need to handle empty strings or strings with only a period. Your program should be able to handle multiple strings sent one after another or concatenated together. For example, the string: “abba. data.” should print “Yes” followed by “No” on the next line. Spaces should be ignored when checking for a palindrome and the palindrome should not be case sensitive. For example, “A nut for a jar of Tuna.” would be considered a palindrome. Print Function A skeleton PLP project file is available to download on Blackboard. The PLP project includes a second ASM file titled, project3_print.asm. This ASM file contains the print function used in this project. PLPTool concatenates all ASM files within a PLP project into a single location in memory (unless additional .org statements have been added to specify different location for code). No changes to [login to view URL] should be made. When called, depending on the value in register $a0, the following string will be displayed on the simulated UART device’s output. If $a0 contains a zero then “No” will be displayed and if $a0 contains a non-zero value (e.g. one) then “Yes” will be displayed. The print function is called using the following instruction: call project3_print To use the print function, your PLP program needs to initialize the stack pointer ($sp) before performing the function call (or any other operations involving the stack pointer). For this reason, the skeleton project file includes an initialization that sets the stack pointer to 0x10fffffc (the last address of RAM). Palindrome Checking Strategies There are two strategies I would recommend for saving your string in in memory and checking to see if it is a palindrome. The first would be to use only an array and keep a pointer (a register containing a memory address) for both the first element in the array (commonly referred to as a head pointer) and last element in the array (commonly referred to as a tail pointer). As you add elements to your array, update your tail pointer so that it moves to the new last element in the array. When you have reached the end of your string (a period has been received), you can perform your palindrome check comparing the characters your head and tail pointers point to and, if they point to the same character, move them both inwards towards the center of your array. If the pointers cross and all the characters were the same, your string was a palindrome. The second strategy would be to use an array, treated as a queue, and the stack. You can traverse the array from the start (the first character saved) to the end (the last character saved) while simultaneously popping characters off the stack. The queue will give you the string forwards and the stack will give you the string backwards.
项目 ID: 21376852

关于此项目

3提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi, i'm Ganapathy, I have rich experience in various microcontroller and embedded system , I have developed lots of project in PLP in fact i have same code developed for another client with problem statement, if you are interested , contact me ,i'll send details Thank you
$30 USD 在1天之内
5.0 (25条评论)
4.5
4.5
3威客以平均价$177 USD来参与此工作竞价
用户头像
Hi there, I have read your project description and i'm confident i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the project. Thanks . .
$250 USD 在3天之内
5.0 (37条评论)
6.6
6.6
用户头像
Hi there, please leave a message on my chat so we can discuss the budget and deadline of the project. I have read your project description and i'm confident i can do this project for you perfectly. Thanks . .
$250 USD 在3天之内
5.0 (17条评论)
6.0
6.0

关于客户

UNITED STATES的国旗
Murfreesboro, United States
0.0
0
付款方式已验证
会员自9月 20, 2019起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。