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,989 of 4,675    |
|    R.Wieser to All    |
|    Re: can't read memory at 0xb8000    |
|    16 Dec 19 10:17:03    |
      From: address@nospicedham.not.available              bilsch01,              > The problem is that anywhere I place the cursor, hitting the enter key       > returns 0x081b regardless where the cursor is on the screen.              Suggestion: Check if your values are what you expect them to be. And start       with *writing* something to the screen before you subtract 2 from DI. It       will show you if your calculated position is where the cursor is.              If-and-when that doesn't quite work, display the contents of DX after the       "get cursor" call. After that shows the expected values display the       contents of ES:DI. just before reading from screen-memory / subtracting 2       from DI              Remark: The code you posted works here.              > Maybe the screen buffer is unavailable for reading? Is that possible?              Ofcourse. But not likely (never heard of it).              Regards,       Rudy Wieser              --- 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