Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .orig x3000
- Lea r1, storeString
- Lea r0, printStudent
- puts
- lea r0, enterText
- puts
- LOOP
- getc
- str r0, r1, 0
- add r1, r1, 1 ; next character
- add r0, r0, -10 ; just subtract in place
- brz OUTSIDE
- out
- br LOOP
- OUTSIDE
- Lea r0, userEnter
- puts
- Lea r0, storeString
- puts
- halt
- printStudent .stringz "Krishan Sharma, ID Number: 15897259"
- enterText .stringz "\nPlease enter a text: "
- userEnter .stringz "\nThe text you have typed is: "
- storeString .blkw 99
- .end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement