Re: basic architecture question
- From: James Harris <james.harris.1@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 15 Jul 2009 15:42:36 GMT
On 15 July, 07:48, Tim Roberts <t...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
mamute <mam...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:r to
I am studying assembler with a kind of old book, and the book's based
operating system was DOS and Windows 3.1.
It was describing the intel x86 architecture and it has an exercise
whose you need to dump the memory of video buffer display, at address
b800:0.
When I open a cmd.exe, DOS prompt, and dump the video buffer, it seems
ok. However, if I open a second DOS prompt, and change the screen like
listing the files, and then go to debug and dump the screen again, it
seems that I have another buffer but both with the same memory
location.
It seems that my Windows is emulating this video buffer at b800:0 and
handling internally, but does it?
Absolutely. =A0It's done entirely in software. =A0Now, if you do Alt-Ente=
take your shell full-screen, then you will be talking to the real VGAy
hardware, but as long as you're windowed, all of the BIOS calls and
hardware port writes are trapped in software and simulated, and the memor=
writes are trapped by the paging system.s
Sadly, none of this works any more in Win64. =A0All of the 16-bit stuff i=
gone. =A032-bit console apps use the API instead of I/O port calls.u
Is there any reason for that behaviour?
Sure -- Microsoft's legendary backward compatibility. =A0The fact that yo=
can still run on Vista an MS-DOS program that was compiled more than 25not
years ago is an incredible testament to this commitment. =A0Mac users are=
so lucky.
Microsoft's? Do you mean Intel's legendary backward compatibility?
Interestingly the AMD-designed x86-64 architecture was the first to
abandon the old VM86 mode.
James
.
- Follow-Ups:
- Re: basic architecture question
- From: Jerry Coffin
- Re: basic architecture question
- From: Jaelani
- Re: basic architecture question
- References:
- basic architecture question
- From: mamute
- Re: basic architecture question
- From: Tim Roberts
- basic architecture question
- Prev by Date: Re: basic architecture question
- Next by Date: Re: basic architecture question
- Previous by thread: Re: basic architecture question
- Next by thread: Re: basic architecture question
- Index(es):
Relevant Pages
|