diff options
Diffstat (limited to 'cmpen472hw10_McDonnell/Sources/main.asm')
| -rw-r--r-- | cmpen472hw10_McDonnell/Sources/main.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmpen472hw10_McDonnell/Sources/main.asm b/cmpen472hw10_McDonnell/Sources/main.asm index 1894425..25aa88d 100644 --- a/cmpen472hw10_McDonnell/Sources/main.asm +++ b/cmpen472hw10_McDonnell/Sources/main.asm @@ -623,6 +623,7 @@ skipSpaces ldaa 1,+x ; Load the next character into X puld ; Restore D from the stack puld ; Restore D from the stack puld ; Restore D from the stack + jsr PrintTime ; Print Time lbra ecDone ; Branch to ecDone isH cmpa #'h' ; Compare A to 'h' bne isM ; If A != 'h', branch to isM @@ -630,6 +631,7 @@ isH cmpa #'h' ; Compare A to 'h' cmpb #NULL ; Compare B to NULL lbne badCommand ; If B != CR, bad command staa outputBuf ; Store A into outputBuf + jsr PrintTime ; Print Time lbra ecDone ; Branch to ecDone isM cmpa #'m' ; Compare A to 'm' bne isS ; If A != 'm', branch to isS @@ -637,6 +639,7 @@ isM cmpa #'m' ; Compare A to 'm' cmpb #NULL ; Compare B to NULL lbne badCommand ; If B != CR, bad command staa outputBuf ; Store A into outputBuf + jsr PrintTime ; Print Time lbra ecDone ; Branch to ecDone isS cmpa #'s' ; Compare A to 's' bne isQ ; If A != 's', branch to isQ @@ -644,6 +647,7 @@ isS cmpa #'s' ; Compare A to 's' cmpb #NULL ; Compare B to NULL lbne badCommand ; If B != CR, bad command staa outputBuf ; Store A into outputBuf + jsr PrintTime ; Print Time lbra ecDone ; Branch to ecDone isQ cmpa #'q' ; Compare A to 'q' bne isGw ; If A != 'q', branch to isGw |
