This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jpettie:portfolio:hpcproject68kassembly [2012/12/14 23:34] – jpettie | user:jpettie:portfolio:hpcproject68kassembly [2012/12/14 23:36] (current) – jpettie | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | *----------------------------------------------------------- | ||
+ | * Program | ||
+ | * Written by : Jacob Pettie | ||
+ | * Description: | ||
+ | *----------------------------------------------------------- | ||
+ | ORG $1000 | ||
+ | START: ; first instruction of program | ||
+ | LEA BEGIN, | ||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | LEA INPUT, | ||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | MOVE.B D1, | ||
+ | CLR.B D1 | ||
+ | |||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | ADD.B D2, | ||
+ | |||
+ | LEA ANSWER, | ||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | CLR.B D2 | ||
+ | |||
+ | MOVE.B # | ||
+ | TRAP #15 | ||
+ | |||
+ | MOVE.B # | ||
+ | TRAP # | ||
+ | |||
+ | * Variables and Strings | ||
+ | BEGIN DC.B ' | ||
+ | INPUT DC.B ' | ||
+ | ANSWER DC.B ' | ||
+ | |||
+ | END START ; | ||
+ | </ | ||
+ | |||
+ | {{http:// |