6 ms·
If I recall correctly you could run CGA and Hercules and the same time as they used different memory areas. There were even a few debuggers that used this into
by bombcar 4y ago
If I recall correctly you could run CGA and Hercules and the same time as they used different memory areas.
There were even a few debuggers that used this into the VGA era - program would be on the color monitor and your debugger on the black and white (actually usually orange or green).
- W-Stool 4y agoThis is correct. The Borland debugger supported this, it was the only real way to debug a "graphics mode" program back in the day.
- mmastrac 4y agoI used to run a dual head VGA/mono debugging setup back in the day. I used this to great effect cracking one of the Mechwarrior games for myself.
- switchbak 4y agoI remember cracking Mech Warrior (2?) via flipping a bit on the executable (and changing the drive letter of a path somewhere), it was so amazing when it just worked!
- ldite 4y agoOh wow, I'd forgotten all about that! It felt like science fiction when I got that working.
- fortran77 4y agoIt was also VGA and beyond -- and Hercules at the same time. And almost every debugger, including Microsoft CodeView, supported this mode. Most developers back in the late 80s and early 90s had a mono monitor on their PC, even into the Windows 3.1 and early Windows 95 days.
- toast0 4y agoWas useful for CAD as well, commands on mono text, visualization on color graphics (although, often black and white there for aesthetics)
- anyfoo 4y agoAnd because less color meant more resolution in the same amount of video RAM. If you were happy with monochrome CAD (no gray tones), you got 8 pixel in a single byte!
- bencollier49 4y agoIIRC VGA was at a000h and text at b800h.
- bonzini 4y agoAnd monochrome at b000h.
- rzzzt 4y agoDoes anyone know why cards did not map video memory into the C000-C800 or the D000-E000 segments? Did many machines have an option ROM or expanded memory there?
- hakfoo 4y agoA lot of early hard disc controllers used segment C800 for BIOS extensions. Other adaptors could map into the Dxxx and Exxx ranges.
- viler 4y agoPart of that was used for option ROMs like hard drive controllers, the EGA/VGA BIOS, network adapters, and for EMS; other areas were just marked by IBM as "reserved", which might have scared people off. In early machines there probably wasn't much of anything there, but then video memory needs were still modest enough that A000-BFFF sufficed. Probably a good thing, because then those 'holes' could be used for UMBs...
- ajenner 4y agoThe C000 segment was used for the EGA/VGA extension ROM. I'm guessing that using D000-EFFF would be unnecessary (because of the planar addressing squeezing 256kB of video memory into a 64kB address space), inconvenient (because the addresses wouldn't be contiguous - EGA and VGA were designed to coexist with either CGA or monochrome adapters in B000-BFFF) and (for VGA) insufficient - you'd still not have enough to map the entire 256kB of VRAM linearly. I also expect that IBM's engineers didn't want to take up all the extension ROM space because then it wouldn't be possible to add EMS cards, network cards, and whatever else ended up being mapped there. Though 192kB of write-only video memory in that space would be an interesting design!
- Scali 4y agoYes, originally CGA and MDA at the same time. Hercules was a non-IBM standard, based on MDA. Hercules has 64k of memory, where 32k is in the area of MDA, and the second 32k overlaps with the CGA area. You could disable the second 32k when you had a CGA card in your system. EGA and VGA were also made backwards compatible, and could co-exist with an MDA or Hercules card. The demo Stars by NoooN (https://www.pouet.net/prod.php?which=301 https://www.pouet.net/prod.php?which=301) has an easter egg for a combination of VGA and MDA/Hercules: on the monochrome screen, a Snake game appears, which can be played via keyboard while the demo is running.
- ajenner 4y agoI did actually use this debugging technique while making a couple of the effects of Area 5150 (the lake effect at the end, and the one two effects before that).
- iforgotpassword 4y agoI actually find it quite impressive what kind of things the IBM engineers thought of right from the start, given it was their very first PC ever. Design a text and a graphics card, make them have different base addresses so you can have dual monitor. Or allow having an option ROM at a specific address that can hook into the boot process of the BIOS, adding additional boot sources, eg network boot (whatever you can cram into 32k).