Welcome, Guest. Please Login 3dfx Archive
 
  HomeHelpSearchLogin  
 
Page Index Toggle Pages: 1
Send Topic Print
Help- debbuger based on MSDOS to able set VGA 13h (Read 367 times)
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Help- debbuger based on MSDOS to able set VGA 13h
12.07.13 at 09:14:48
 
Hi,

I need some help. Anyone can recommend me a Debugger SW to able to set VGA mode 13h via MS-DOS?

It would be the unique way to find what memory bank is causing problems in my Rampage card. I need to find the bit is in short but my skills about it is ZERO. Sad

Thanks,
Oscar.
Back to top
 
WWW  
IP Logged
 
Loeschzwerg
Senior Member
****
Offline


AAlchemy PSU maker :-)

Posts: 396
Germany -> Bavaria -> Augsburg
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #1 - 12.07.13 at 10:41:24
 
Hi Oscar,

just to be sure what you mean: You need a simple DOS programm that displays something in 13h mode so you can locate the defective memory?

I can send you a quick ".com" file that displays a red screen in 320x200 and 256 colors.

Would this help?

Regards,
Dominik
Back to top
 
 
IP Logged
 
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #2 - 12.07.13 at 11:06:24
 
Hi Dominik,

Yes, it would be more or less.

I need to boot in DOS and set the VGA model 13h.

The idea is starts and write to a000:0000 segment and see which bits are not responding. Locate the bits and look for shorts.

How memory is organised in mode 13h
One of the greatest advantages of mode 13h for the programmer is the way the video memory is organised. Each pixel takes one byte of memory, and as we move horizontally across each line, we are moving one byte forward in memory. That is, mode 13h has a linear memory structure. The first pixel on the mode 13h screen (the one in the top left hand corner) is at memory address A000:0000. This is called the 'screen base address'.

Each 'box' represents one pixel. The pixel in the top left-hand corner is considered to have co-ordinates (0,0) and it exists at memory location A000:0000. The next pixel has co-ordinates (1,0) at it exists at memory location A000:0001. Continuing to the end of the line, we see that the pixel at (319,0) lives at memory location A000:013F.

The first pixel on the following line (0,1) lives at A000:0140, which is exactly one byte past the last pixel on the previous line. You should now understand what is meant by linear memory!

This pattern continues right down to the last pixel of the last line (319,199) which lives at A000:F9FF.
"One of the greatest
advantages of mode 13h
is ... that it has a linear
memory structure."


Another story will be once find the bit gives short to find at what memory bank makes reference but I think it is not bad idea to detetec problem on memory.

Regards,
Oscar.
Back to top
 
WWW  
IP Logged
 
gdonovan
YaBB Administrator
*****
Offline


Infernal Collector

Posts: 2361
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #3 - 12.07.13 at 11:27:14
 
Still doing research but take a look here Oscar-

http://www.delorie.com/djgpp/doc/ug/graphics/vga.html
Back to top
 

Rampage is alive!
 
IP Logged
 
Loeschzwerg
Senior Member
****
Offline


AAlchemy PSU maker :-)

Posts: 396
Germany -> Bavaria -> Augsburg
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #4 - 12.07.13 at 21:26:40
 
@Oscar: If you just need all pixels to be plotted, a simple pattern should be enough, right? Different colors or a rainbow pattern is no problem.

Let me know.
Back to top
« Last Edit: 12.07.13 at 21:26:58 by Loeschzwerg »  
 
IP Logged
 
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #5 - 12.07.13 at 21:43:34
 
Loeschzwerg wrote on 12.07.13 at 21:26:40:
@Oscar: If you just need all pixels to be plotted, a simple pattern should be enough, right? Different colors or a rainbow pattern is no problem.

Let me know.


Yes, Dominik. It would be enough!

Thanks,
Oscar.
Back to top
 
WWW  
IP Logged
 
Loeschzwerg
Senior Member
****
Offline


AAlchemy PSU maker :-)

Posts: 396
Germany -> Bavaria -> Augsburg
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #6 - 14.07.13 at 17:45:34
 
There you go:
http://www29.zippyshare.com/v/41453492/file.html

A very very simple color test (red, green, blue and yellow) in 13h VGA mode.

A readme-file is included.
Back to top
 
 
IP Logged
 
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #7 - 15.07.13 at 22:33:25
 
Thanks Dominik!

I will test and I will let you know.

Regards,
Oscar.
Back to top
 
WWW  
IP Logged
 
Loeschzwerg
Senior Member
****
Offline


AAlchemy PSU maker :-)

Posts: 396
Germany -> Bavaria -> Augsburg
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #8 - 16.07.13 at 06:49:10
 
Ok. At the moment I'm experimenting with a few pattern for dongle testing, but the compiler (MASM) is killing my nerves  Roll Eyes
Back to top
 
 
IP Logged
 
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #9 - 23.07.13 at 10:52:54
 
Well, I had some time free and I did some test with Dominik's sw.

So it looks:

BLUE TEST 13h
...

RED TEST 13h
...

Now the idea is test with different motherboards.

ps. Row problem is not related any short in memory.

Regards,
Oscar.
Back to top
 
WWW  
IP Logged
 
gdonovan
YaBB Administrator
*****
Offline


Infernal Collector

Posts: 2361
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #10 - 24.07.13 at 11:12:07
 
osckhar wrote on 23.07.13 at 10:52:54:
Now the idea is test with different motherboards.



My counsel would be patience Oscar- Let me find you a motherboard, set it up and ship with disk image or even hard drive so you have a stable platform to work with and know for sure not the cause of problem.
Back to top
 

Rampage is alive!
 
IP Logged
 
osckhar
God Member
*****
Offline


www.3Dfx.es

Posts: 812
SPAIN
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #11 - 24.07.13 at 13:54:06
 
gdonovan wrote on 24.07.13 at 11:12:07:
osckhar wrote on 23.07.13 at 10:52:54:
Now the idea is test with different motherboards.



My counsel would be patience Oscar- Let me find you a motherboard, set it up and ship with disk image or even hard drive so you have a stable platform to work with and know for sure not the cause of problem. 


Excellent idea Gary!!!!

Keep me informed.

Thanks,
Oscar.
Back to top
 
WWW  
IP Logged
 
Loeschzwerg
Senior Member
****
Offline


AAlchemy PSU maker :-)

Posts: 396
Germany -> Bavaria -> Augsburg
Gender: male
Re: Help- debbuger based on MSDOS to able set VGA 13h
Reply #12 - 29.07.13 at 18:39:34
 
http://www30.zippyshare.com/v/10854417/file.html

A small 16bit DOS program written in assembler. It generates RGBY in textmode (640x400).

Could be nice to see the color inversion with and without the dongle attached.

Edit:
...
Back to top
« Last Edit: 29.07.13 at 19:51:09 by Loeschzwerg »  
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print