by BillyBoyo » Sat Sep 22, 2012 10:44 pm
Riscciscinstset,
For some reason I looked at your code further.
It is about 10 months since you've been here, and I guess in that time you didn't have much time to apply yourself to learning.
For a small program, I don't know how to list the inconsistencies.
Are you reading 133 or 80?
Are you writing 133 or 72?
Are your input and output FBA or not?
You seem to treat CHAR as sufficient to occupy 10 bytes on output, yet it is only two bytes long.
NUM allows for seven digits.
What, other than a S0C7, do you expect to be in NUM after you get a successful GET?
You OI with byte three of NUM, yet the sign will be in byte four.
Your initialisation of the 80-byte output (currently) with a 133 byte literal of space is "wasteful" of storage, though that may not matter these days. The initialisation can be done with no extra storage defined.
To me it is very confusing to call a program COPY.
- These users thanked the author BillyBoyo for the post:
- RISCCISCInstSet (Sun Sep 23, 2012 10:14 am)