lowlevel-z80: save a few bytes (it matters)
authorAlan Cox <alan@linux.intel.com>
Tue, 13 Sep 2016 21:03:24 +0000 (22:03 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 13 Sep 2016 21:03:24 +0000 (22:03 +0100)
Kernel/lowlevel-z80.s

index 199668a..cc4a65a 100644 (file)
@@ -316,7 +316,7 @@ null_handler:
 
 
 
-illegalmsg: .ascii "[trap_illegal]"
+illegalmsg: .ascii "[illegal]"
             .db 13, 10, 0
 
 trap_illegal:
@@ -581,8 +581,7 @@ outnewline:
         ld a, #0x0d  ; output newline
         call outchar
         ld a, #0x0a
-        call outchar
-        ret
+        jp outchar
 
 outhl:  ; prints HL in hex.
        push af