Subj : Re: Closing a file in Assembly on the VIC-20 To : Daniel Path From : Lawrence Woodman Date : Mon Jun 21 2021 08:12:46 On Fri, 18 Jun 2021 20:54:46 +1200, Daniel Path wrote: > 18 Jun 21 06:56, you wrote to you: > > LW> On Thu, 17 Jun 2021 18:56:16 -0000 (UTC), Lawrence Woodman wrote: > > >> On Thu, 17 Jun 2021 11:29:57 -0000 (UTC), Tilmann Hentze wrote: > >> > >>> Lawrence Woodman wrote: > >>>> I have created a piece of code which replicates the problem below > >>>> if anyone has any ideas where I'm going wrong I'd be very > >>>> grateful. > >>>> > >>>> [snip] > > LW> I've managed to track down the problem. Because I was automating some > LW> of the testing around this I hadn't left a long enough delay > LW> before displaying the directory. It turns out that it takes a little > LW> longer than I expected for the SAVE command to complete the write. > LW> Once I left a bigger delay before checking the directory everything > LW> was fine. It also appears that there is no need to call CLOSE either. > > and what are you coding? :) I'm creating an article and video about various ways to load and save memory on the VIC-20. I wrote the assembly code that I posted a while ago and was sure it worked previously. As it turned out there was nothing significantly wrong with the code, it was purely a testing issue. I can post the URLs to the article/video once finished if you're interested? Best wishes Lorry --- Basic Line Storage on the VIC-20 https://techtinkering.com/articles/basic-line-storage-on-the-vic-20/ --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .