From: Marco van den Heuvel Date: Wed, 2 Dec 2015 08:21:55 +0000 (-0800) Subject: optimized the sei/cli pairing a bit. X-Git-Tag: V2.16~195^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7cd80e7450f3eea7e8a7b7851ba63dec6d9f8f24;p=cc65 optimized the sei/cli pairing a bit. --- diff --git a/libsrc/c128/emd/c128-ram.s b/libsrc/c128/emd/c128-ram.s index 8c958a540..3fc52c9cc 100644 --- a/libsrc/c128/emd/c128-ram.s +++ b/libsrc/c128/emd/c128-ram.s @@ -96,8 +96,7 @@ PAGECOUNT: ; by the driver. ; -MAP: sei - sta curpage +MAP: sta curpage stx curpage+1 ; Remember the new page clc @@ -108,6 +107,7 @@ MAP: sei lda #window ; Return the window address - cli rts ; ------------------------------------------------------------------------ @@ -136,8 +136,7 @@ USE: sta curpage ; ------------------------------------------------------------------------ ; COMMIT: Commit changes in the memory window to extended storage. -COMMIT: sei - lda curpage ; Get the current page +COMMIT: lda curpage ; Get the current page ldx curpage+1 bmi done ; Jump if no page mapped @@ -149,6 +148,7 @@ COMMIT: sei lda #