Category : Network Files
Archive   : TCP_SRC.ZIP
Filename : MEMTEST.ASM
memory_test:
;enter with ax = segment of memory to test, cx = number of bytes to test.
;exit with ne, bx->failing byte if the memory test failed.
push ds
mov ds,ax
mov bx,-1
memory_test_1:
inc bx
mov al,ds:[bx] ;get a copy of the location.
mov ah,ds:[bx+2] ;get a copy of the location.
not al
mov ds:[bx],al ;try to store the complement.
mov ds:[bx+2],ah ;drain any capacitive memory
mov ah,al
not ah
cmp ds:[bx],al ;did the store work?
mov ds:[bx],ah ;(in any case, restore the original)
loope memory_test_1 ;keep going if the store worked.
pop ds
ret
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/