home *** CD-ROM | disk | FTP | other *** search
- 666666666 Start of program
- 01 050 First number to multiply by
- 02 051 second number, please note both numbers must be positive
- 03 875 Jump to location 75, and do routine
- 04 550 Print 1st number
- 05 551 Print 2nd number
- 06 552 Print 1st * 2nd number
- 07 999 All done.
- 75 150 Load first number
- 76 700 Subtract 1 from it (location 00 always contains 1)
- 77 655 Store it at the temporary location
- 78 151 Load the second number, and
- 79 656 store it at the temporary location
- 80 199 Load return statement and store it for safe keeping.
- 81 697 at location 97.
- 82 155 Load the temporary number.
- 83 700 Subtract 1 from it (location 00 always contains 1)
- 84 395 If negative then done, goto 95
- 85 655 otherwise store it back again.
- 86 156 Load the second number, and
- 87 251 add the contents of the original number,
- 88 656 and store it back at location 56
- 89 882 Go back to 82 and do it until done
- 95 156 Load the answer,
- 96 652 and store it at location 52.
- 97 000 And this is the return statement.
- 50 000 Location of 1st number
- 51 000 Location of 2nd number
- 52 000 Location of 1st number * 2nd number
- 55 000 Temp storage for 1st number
- 56 000 Temp storage for 2nd number
- 777777777 Done with instructions, now for the data
- 009
- 007
- -999
- 888888888 Done with data.
- 999999999 Done with program.