1. Implement the getstr() function of the followingCcode as PIC24 assembly language. Use the policy established in this chapter for using working registers for subroutine parameters and locals. Assume the return value of the getch() function is passed back via the W0 register; do not implement the getch() subroutine. uint8_t getch(void){
// not shown
}
// get string
void getstr(char* psz_in){
uint8_t u8_char;
do {
u8_char = getch();
*psz_in = u8_char;
psz_in++;
} while (u8_char != 0)}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here