Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #1369
| From | Vladimir Ivanov <none@none.tld> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Can anyone see a way to improve this ? |
| Date | 2014-10-27 15:56 +0200 |
| Message-ID | <alpine.DEB.2.02.1410271545140.13345@zztop> (permalink) |
| References | <34030b70-c7cb-4b31-a99a-6b44c3877066@googlegroups.com> |
On Mon, 27 Oct 2014, mdj wrote: > Hi, > > Below is a memory test loop for 1 page - assume the high order bytes get replaced for each page being tested. Zero page is deliberately avoided - this runs in either the language card or the $800-$BFFF area of main memory, testing pages of auxiliary memory without assuming any given byte of aux memory works. > > The obvious one is to unroll, which I'll do. Just wondering if I'm missing something else obvious. > > Thanks, > > Matt > > > LDX #$00 > NEXTBYTE LDY #$08 > LDA #$01 > NEXTBIT EOR #$FF ; Set and check complement first > STA $2000,X > CMP $2000,X > BNE ERROR > EOR #$FF > STA $2000,X > CMP $2000,X > BEQ CONT > ERROR JSR FLAGERR > CONT ASL > DEY > BNE NEXTBIT > INX > BNE NEXTBYTE > RTS > FLAGERR RTS ; Record this meaningfully in the future > You might want to change "BEQ COUNT" to "BNE ..." outside of the loop upon error, and save a cycle. And for heavier memory test, you could sacrifice speed, fill the memory with pseudo-random pattern, wait some time, and then check with same seed again. Rinse and repeat. This does not substitute specialized tests like walking 0/1s.
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can anyone see a way to improve this ? mdj <mdj.mdj@gmail.com> - 2014-10-27 05:04 -0700
Re: Can anyone see a way to improve this ? "Anton Treuenfels" <teamtempest@yahoo.com> - 2014-10-27 08:38 -0500
Re: Can anyone see a way to improve this ? Vladimir Ivanov <none@none.tld> - 2014-10-27 15:56 +0200
Re: Can anyone see a way to improve this ? Michael J. Mahon <mjmahon@aol.com> - 2014-10-27 13:21 -0500
Re: Can anyone see a way to improve this ? mdj <mdj.mdj@gmail.com> - 2014-10-27 17:48 -0700
Re: Can anyone see a way to improve this ? Snertking <SNERTKING@GMAIL.COM> - 2014-10-27 21:28 -0400
Re: Can anyone see a way to improve this ? mdj <mdj.mdj@gmail.com> - 2014-10-27 22:45 -0700
Re: Can anyone see a way to improve this ? Michael J. Mahon <mjmahon@aol.com> - 2014-10-29 10:33 -0500
Re: Can anyone see a way to improve this ? mdj <mdj.mdj@gmail.com> - 2014-10-29 22:54 -0700
Re: Can anyone see a way to improve this ? qkumba <peter.ferrie@gmail.com> - 2014-10-31 14:46 -0700
Re: Can anyone see a way to improve this ? Snertking <SNERTKING@GMAIL.COM> - 2014-10-27 21:25 -0400
Re: Can anyone see a way to improve this ? michael.pohoreski@gmail.com - 2014-12-30 10:12 -0800
Re: Can anyone see a way to improve this ? awanderin <awanderin@gmail.com> - 2014-10-27 21:35 -0600
csiph-web