Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MemTest 437/501/RH - my tries make exe variants (Developers)

posted by Mercury127(R), 09.06.2019, 20:53

> MT437.EXE - cause immediate restart, background and text seen for a moment
> MT501.EXE - hangs after a second, progress shows 2%

Yes, I have the same results. Sadly
I have no thoughts yet, why it happens like this, and how to fix it.
I just made small edits in MT86LDR.ASM.
It seems there is nothing more to edit in this file?
And then we need to look in the source of the memtest?

Comparing files MT86LDR.ASM and MT86__~1.ASM
***** MT86LDR.ASM
13: ; compressed, for example with http://upx.sf.net/ (UPX).
15: %define delta 0dh
17: %define fullsize (172476 + buffer - exeh)
18: ; 103308 memtest86 V4.37
19: ; 150024 memtest86+ V5.01
20: ; 172476 memtest86+ V5.0a1
22: %define stacksize 2048
***** MT86__~1.ASM
13: ; compressed, for example with http://upx.sf.net/ (UPX).
15: %define fullsize (150024 + buffer - exeh)
16: ; 150024 is the size of memtest86+ V5.01, adjust as needed!
18: %define stacksize 2048
*****

***** MT86LDR.ASM
141: add [cs:buflinear],eax ; linear address of head.S now
142: mov ax,[buffer+delta+251h] ; should be jmp far dword (ofs, seg)
143: cmp ax,0ea66h
***** MT86__~1.ASM
137: add [cs:buflinear],eax ; linear address of head.S now
138: mov ax,[buffer+251h] ; should be jmp far dword (ofs, seg)
139: cmp ax,0ea66h
*****

***** MT86LDR.ASM
154: mov eax,[cs:buflinear]
155: mov [buffer+delta+253h],eax ; patch the protected mode entry jump
156: ; (offset only - segment selector unchanged: flat linear CS)
***** MT86__~1.ASM
150: mov eax,[cs:buflinear]
151: mov [buffer+253h],eax ; patch the protected mode entry jump
152: ; (offset only - segment selector unchanged: flat linear CS)
*****

***** MT86LDR.ASM
158: findgdt:
159: mov eax,[cs:buffer+delta+20ch] ; should be lgdt offset
160: and eax,00ffffffh
***** MT86__~1.ASM
154: findgdt:
155: mov eax,[cs:buffer+20ch] ; should be lgdt offset
156: and eax,00ffffffh
*****

***** MT86LDR.ASM
162: jnz gdtbug
164: mov ax,[cs:buffer+delta+20fh] ; GDTR contents pointer
165: mov bx,ax
***** MT86__~1.ASM
158: jnz gdtbug
160: mov ax,[cs:buffer+20fh] ; GDTR contents pointer
161: mov bx,ax
*****

 

Complete thread:

Back to the forum
Board view  Mix view
15974 Postings in 1478 Threads, 271 registered users, 119 users online (0 registered, 119 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum