Skip to main content

AddToAny

Share/Save

Miscellaneous

LC3 subroutine convert decimal to hex

Posted in

Hi,
I really need help to build a decimal-to-hex converter as a subroutine.
The range of possible input numbers is [0, 65535].

For example:
User enters “#64222” , the program outputs “xFADE”
User enters “#10” , the program outputs “xA” or “x000A”

Anyone know how to do this???

THANKS

LC3 Program to echo user entered characters

I need a program to echo the user entered strings. I have write this code. but its not working properly. Please help me out.

LC3 Assembly Palindrome Program

I need to write a program in LC3 language which echoes users input and decide whether it is a "Palindrome" or not

example 1

user input = My name is red

Ouput should be = My name is red

String entered is not a Palindrome

example 2

user input= abccba

Output= abccba

String entered is a Palindrome

Please Help!

Syndicate content