From 79fc294506eae5c7de505b9a0a37b192f212d96e Mon Sep 17 00:00:00 2001 From: CrazyEttin <> Date: Fri, 14 Oct 2022 20:19:00 +0300 Subject: [PATCH] tweak the code slightly --- gidubba.asm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gidubba.asm b/gidubba.asm index cb44498..8c31457 100644 --- a/gidubba.asm +++ b/gidubba.asm @@ -904,10 +904,6 @@ write: load r0, #ff ;Write cleq r0, r0, prwr - ;Write an end-of-file - load r0, #1a - store fffd, r0 - ;Return to the command prompt breq r0, r0, cmdp @@ -1793,13 +1789,13 @@ prwr: load r0, svstrt ;Load a character from the save chprwr: load r1, buffer + 100 + ;Print the character +prwrch: store fffe, r1 + ;Check for the save end load r2, #1a breq r1, r2, pwend - ;Print the character -prwrch: store fffe, r1 - ;Increment the save address ;Load the address load r0, chprwr + 1