*************************************************************** * * * Module ID: HEXADD.LIB By: GLH/W6BSK * * Last Updated: 28 Apr 85 * * Function : Add and display Version : 1.00 * * two hex numbers from * * command line. * * * * * *************************************************************** hexadd: call li6hex ; Load a number jc hexerr ; from console and test. call ccrlf call co6bhd ; Show in various formats xchg ; Move to DE call bi6hex ; load another number jc hexerr ; and verify- call ccrlf call co6bhd dad d ; add the two and call twocr ; display the total. call co6bhd call ccrlf jmp done ; quit. hexerr: call twocr call spmsg db 'Input format error...',0 call ccrlf jmp done