Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,905 of 4,675    |
|    Rick C. Hodgin to wolfgang kern    |
|    Re: Entering Protected Mode    |
|    05 Jul 19 12:56:23    |
      From: rick.c.hodgin@gmail.com              On 7/4/2019 3:10 AM, wolfgang kern wrote:       > On 03.07.2019 14:12, Rick C. Hodgin wrote:       >       > ...       >> Until then I did a lot of this:       >>       >> mov ax,0b800h       >> mov es,ax       >> mov word ptr es:[di],0072eh ; Display a dot       >> @@:       >> hlt       >> jmp @B       >>       >> That kind of thing. :-)       >       > this tell that it's still in realmode with text-mode 03.       >       > for PM32 check:       > ;assume DS flat 4G       >       > C7 05 00 80 0B 00 50 70 mov word [0x000b8000],0x7050 ;"P"              In pmode I would do this:               mov ax,_sVGA        mov es,ax        mov word ptr es:[0],0072eh ; Display a dot        @@:        hlt        jmp @B              I would use positions at X,Y from 0,0 (upper-left) across the       line horizontally to indicate what I went through. In some       places I would use a "-" in others a "+" to indicate which       part of the code went through, etc.              My startup upper-left bar would look like this:               ....-...+....              And so on. It was an easy to way indicate it was working       without yet having keyboard and mouse functions, or even       decent video functions.              Later on I had full handlers and wrote code more or less       like we see in DOS.              --       Rick C. Hodgin              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca