I need help reading a line of input in a special way.
How do I read a something and split them into 2 different variables?
For example:
if my input is "$00002000", how do I store the "$" in one variable and the 00002000 in another?
Okay now I understand that, how do I ignore a comma and move to the next part?
For example:
if my input is "$00002000, D0"
I know how to store the $00002000 but how do I read the part after the comma and store it into a variable?
Yeah, I don't know how to verify if it's a comma, it's reading the first thing after the int.
$ = dollarSign
0 = dollarAmount
0 = comma
Let me explain what I'm basically trying to do:
This is going to be my input:
MOVE #79, $00002000
There are 3 parts in this instruction:
MOVE
#79
$00002000
I'm trying to store all the values into a variable so I know what to do with all of these parts.
Part 1, 1 variable:
MOVE
Part 2, 2 variables:
#
79
Part 3, 2 variables:
$
00002000