- #1
angeliKITTYx
- 8
- 0
Homework Statement
You are to write a program that will display your full name and your major (First Name, Middle name and Last Name) on the Terminal Input/output (I/O) screen.[/B]
Homework Equations
The Attempt at a Solution
I was trying to get the screen to say "What's your first name?" *store human input as name1*
"Middle name? *store input as name2* etc... and then it would print the full name and my major at the end,
BR main
name1: .WORD ? (or do I use .BYTE ?)
name2: .WORD ?
name3: .WORD ?
major: .WORD ?
main: .ASCII "What is your first name?"
LDA ?, i
STA name1, d
.ASCII "What is your middle name?"
LDA ?, i
STA name2, d
.ASCII "What is your last name?"
LDA ?, i
STA name3, d
.ASCII "What are you studying for school?"
LDA ?, i
STA major, d
.ASCII "Your Information:"
??Print name1, name2, name3, major??
STOP
.END
but I am hitting a wall with storing human input. So I took the easy route and just did CHARO over an over, but this seems like the wrong path... any ideas?
CHARO 0x44,i
CHARO 0x61,i
CHARO 0x6c,i
CHARO 0x61,i
CHARO 0x6c,i
CHARO 0x20,i
STOP
.END
*output is "Dalal "