From 7cd80e7450f3eea7e8a7b7851ba63dec6d9f8f24 Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Wed, 2 Dec 2015 00:21:55 -0800 Subject: [PATCH] optimized the sei/cli pairing a bit. --- libsrc/c128/emd/c128-ram.s | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 #