# HG changeset patch # User Laurens Holst # Date 1542404227 -3600 # Fri Nov 16 22:37:07 2018 +0100 # Node ID d1cbe56436cb3eb34cf5d8a4cb3c06a43180c807 # Parent 97d4edac8987a95323638f606b03a4c6e9caf5b4 src: Replace some call/rets with jumps where it’s not confusing. diff --git a/src/Application.asm b/src/Application.asm --- a/src/Application.asm +++ b/src/Application.asm @@ -179,8 +179,7 @@ call Application_IsQuiet ret nz ld hl,Application_welcome - call System_Print - ret + jp System_Print ; ix = this Application_PrintInflating: @@ -195,8 +194,7 @@ pop ix call System_Print ld hl,Application_dotDotDot - call System_Print - ret + jp System_Print ; ix = this Application_PrintTesting: @@ -211,8 +209,7 @@ pop ix call System_Print ld hl,Application_dotDotDot - call System_Print - ret + jp System_Print ; ix = this ; f <- nz: quiet diff --git a/src/GzipArchive.asm b/src/GzipArchive.asm --- a/src/GzipArchive.asm +++ b/src/GzipArchive.asm @@ -251,8 +251,7 @@ 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 @@ ; ix = this GzipArchive_SkipHeaderCRC: call GzipArchive_GetReaderIY - call Reader_ReadWord_IY - ret + jp Reader_ReadWord_IY ; ix = this ; f <- nz: mismatch