home *** CD-ROM | disk | FTP | other *** search
- 666666666 Start of program.
- 01 499 clear accumulator (not necessary, but nice)
- 02 050 read 1st # into 50
- 03 150 load 1st # into accumulator
- 04 320 if accumulator <0 then goto 20 BON (branch on neg.)
- 05 051 read 2nd # into 51
- 06 251 add 2nd # to accumulator.
- 07 655 store sum in 55
- 08 150 load 1st # into accumulator
- 09 751 subtract 2nd # from accumulator
- 10 656 store difference. in 56
- 11 550 print 1st #
- 12 551 print 2nd #
- 13 555 print sum
- 14 556 print difference
- 15 801 goto do all over again...
- 20 999 end...
- 50 000 storage for 1st # these statements are not necessary,
- 51 000 storage for 2nd # but they help to keep track of storage
- 55 000 storage for sum locations used for data...
- 56 000 storage for difference
- 777777777 End of program, beginning of data
- 002 first number
- 003 second number
- -999 tells Cardiac that the program is done
- 888888888 End of data
- 999999999 End of source code