Question: This is for my Machine and assembly language class. Im using Linux and my output must be a date in the form of month day,
Register use tart: initIO setEVT initF * Initialize (required for I/O) * Error handling routines * For floating point macros only 1ineout name lineout prompt linein buff cvta2 buff, #2 move.1 DO, D1 sub.1 #1,DI move.1 D1,D2 muis #11,D1 leamonths,A1 adda D1,A1 move.b 0 (A1),ans +0 move.b 1(A1), ans+1 move.b 2(A1),ans+2 move.b 3 (A1), ans+3 move.b 4 (A1), ans+4 move.b 5(A1),ans+5 move.b 6 (A1), ans+6 move.b 7 (A1), ans+7 move.b B(A1), ans+8 move.b 9 (A1), ans+9 move.b 10(A1), ans+10 lea muls adda D2,A2 elr.1 D3 move.b (A2),D3 days, 2 lea ans, A2 adda D3,2 move . b #' , , (A2 ) + move.bbuff+3, (A2)+ move.b buff+4, (A2)+ move.b (A2)+ move , b #, ,,(A2 ) + 1ineout put break * Terminate ezecution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
