PDP12.ORG Logo

PDP-8 Minis
PDP-8 (0)
PDP-8/E (3)
PDP-8/M (2)
PDP-8/S (0)
PDP-11 Minis
PDP-12 Minis
PDP-12 Front View
Front View of HP-9100
Monroe 630
Tektronix 909
Test Equipment
Front View of HP-3440
Marconi 2955B
Front View of IBM 360 Front Panel
Help the Museum
Contact Us
Hosted by KRTEN.COM

PDP-8 Memory fill and test Program

This program fills memory with a given pattern (each location can be the same or offset by a step value), and tests the written value after all locations have been written with the given value.

next_w, 0000 1040 tad start / get starting address, 0001 3041 dca addr / and save to our working buffer. 0002 1042 tad curpat / get the current pattern, 0003 3043 dca mempat / and save to our working buffer. w, 0004 1043 tad mempat / combine the pattern, 0005 1044 tad step / and the step, 0006 3043 dca mempat / to derive the new pattern. 0007 1043 tad mempat / get it, 0010 3441 dca i addr / and write it to the current memory location. 0011 2041 isz addr / get next address 0012 5004 jmp w / and loop 0013 1040 tad start / if all addresses done, begin read test. 0014 3041 dca addr / stash the starting address into our working buffer. 0015 1042 tad curpat / get the current pattern 0016 3043 dca mempat / and save to our working buffer. r, 0017 1043 tad mempat / combine the pattern, 0020 1044 tad step / and the step, 0021 3043 dca mempat / to derive the new pattern. 0022 1043 tad mempat / fetch the new pattern, 0023 7041 cia / and negate it. 0024 1441 tad i addr / add it to the memory value being tested. 0025 7440 sza / a + -a should be zero, so skip the error jump 0026 5033 jmp error / it wasn't zero, something bad happened 0027 2041 isz addr / it was zero, this location is ok, go to next 0030 5017 jmp r / loop 0031 2042 isz curpat / all writes and reads done for this pattern, try next 0032 5000 jmp next_w / loop error, 0033 7402 hlt / either done all patterns or an error start, 0040 0050 / start of testable memory, suggest 0050 addr, 0041 0000 / current working address curpat, 0042 0000 / current pattern mempat, 0043 0000 / pattern in memory step, 0044 0001 / step for subsequent locations, suggest 0000 or 0001
Latest Updates
Master Reference
PDP-12 is alive!
New machine: PDP-8/L

Contact us This page was updated on Fri Feb 19 00:10:08 EST 2010 © 2000-2007 by Robert Krten.
All rights reserved.
Areas of expertise: 8044, 8051, ARC/CBS, ARCNet, ARM, ASM-86, Automated Disassembly, Avanza, Avionics Software, awk, bash, Bell 103, Bell 202, BITBus, Bootloaders, C, Call Processing, Caller ID, CF-UTTH, Clear Thinking and Common Sense, Client/Server, CMR-91, Code Analysis, Cold Standby, Computer Based Training, Course Developemnt, Course Presentation, CRS-1, curl, cvs, Czech Language, Databases, Data Acquisition, Data Recovery, Decompilation, Debugging, Distributed Processing, DMS-100, Documentation, Drivers, DSP, DTMF, E.164, Embedded Systems, Emulation, Equinox, expect, Fault Tolerance, FFT, Filesystems, Firewalls, Fractals, FreeBSD, FSK, Gammacell 40/1000/3000, Graphics, GSR-12000, Hardware, High Availability, Home Automation, Hot Standby, HTML, HTTP, IDA Pro, IIDS, Image Processing, In-Service Upgrade, Industrial Automation, Infrastructure, Internationalization, iRMX-86/286, ISBT-128, Kernels, ksh, Ladder Logic, Lexical Analyzers, Linux, Loggers, m4, make, Medical Devices, Memory Constrained Environments, Message Passing, Microcontrollers, MIDI, MIL-STD-2167A, NNTP, OpenBSD, Optimization, OrCAD, Oscilloscopes, PABX, Parallel Processing, Parsing, PDP-8, Photon, Porting, POSIX, POVRay, Powerpoint, PowerPC, Preprocessor, Process Control, Program Flow Analysis, Project Management, Prototyping, Public Speaking, QNET, QNX 2, QNX 4, QNX 6 (Neutrino), Radarsat, rcs, Realtime Techniques, Recursive Descent Parsers, Regression Testing, Regular Expressions, Requirements Analysis, Resource Managers, Restoration, Reverse Engineering, Scripting, Security Systems, sed, Serial Protocols, SGML, Simulation, SMDR, SMTP, Soldering, svn, SX-20, Synthesizers, System Architecture, T.4, T.30, TCL, TCP/IP, Technical Presentations, Technical Writing, Telecoms, Testcases, Testjigs, Text Processing, Threads, Tools, Traceability Matrices, TTL, UNIX, Utilities, UUCP, Validation Protocols, Vaulting, VAX/VMS, vi, Virtual Filesystems, Warm Standby, wget, Wirewrap, X-10, X.25, x86