d1cbe56436cb — Laurens Holst 5 years ago
src: Replace some call/rets with jumps where it’s not confusing.
2 files changed, 5 insertions(+), 10 deletions(-)

M src/Application.asm
M src/GzipArchive.asm
M src/Application.asm +3 -6
@@ 179,8 179,7 @@ Application_PrintWelcome:
 	call Application_IsQuiet
 	ret nz
 	ld hl,Application_welcome
-	call System_Print
-	ret
+	jp System_Print
 
 ; ix = this
 Application_PrintInflating:

          
@@ 195,8 194,7 @@ Application_PrintInflating:
 	pop ix
 	call System_Print
 	ld hl,Application_dotDotDot
-	call System_Print
-	ret
+	jp System_Print
 
 ; ix = this
 Application_PrintTesting:

          
@@ 211,8 209,7 @@ Application_PrintTesting:
 	pop ix
 	call System_Print
 	ld hl,Application_dotDotDot
-	call System_Print
-	ret
+	jp System_Print
 
 ; ix = this
 ; f <- nz: quiet

          
M src/GzipArchive.asm +2 -4
@@ 251,8 251,7 @@ GzipArchive_SkipExtra:
 	call Reader_ReadWord_IY
 	ld c,e
 	ld b,d
-	call Reader_Skip_IY
-	ret
+	jp Reader_Skip_IY
 
 ; ix = this
 GzipArchive_SkipASCIIZ: PROC

          
@@ 267,8 266,7 @@ Loop:
 ; ix = this
 GzipArchive_SkipHeaderCRC:
 	call GzipArchive_GetReaderIY
-	call Reader_ReadWord_IY
-	ret
+	jp Reader_ReadWord_IY
 
 ; ix = this
 ; f <- nz: mismatch