flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Ali.Z
is it possible to make console as a text editor?
_________________ Asm For Wise Humans |
|||
![]() |
|
revolution
DOS had the program EDLIN. So, yes, it is possible and it has been done.
|
|||
![]() |
|
Ali.Z
hmm, interesting.
but setconsolemode doesnt have an option to ignore ENTER (virtual key enter) please tell me it doesnt require kernelmode lol, hopefully not. |
|||
![]() |
|
Ali.Z
still not sure about ignoring key strokes, can you point me to...?
|
|||
![]() |
|
revolution
In your app you receive the keystrokes and then decide what to do with them. If you want to ignore some keys then simply go back to waiting for the next keystroke.
|
|||
![]() |
|
Ali.Z
ok, another question might be off topic:
are INS(byte,word,dword) and OUTS(byte,word,dword) privilege instructions? because my program crashed when i added them lol, and while being debugged couldnt even step-thru |
|||
![]() |
|
Picnic
For such project, i dοn't think you will need anything more than console functions.
|
|||
![]() |
|
revolution
Ali.A wrote: ok, another question might be off topic: The OS can enable certain ports for user access. However Windows doesn't enable any ports. |
|||
![]() |
|
Ali.Z
interesting, i thought windows would use such asm instructions.
they use syscall which is similar to interrupt services but a lil bit faster than INT |
|||
![]() |
|
ManOfSteel
Ali.A wrote: interesting, i thought windows would use such asm instructions. Of course it must be using in/out instructions for all its drivers (disk, keyboard, etc.) It's just that it doesn't allow any access to them from user-space processes to prevent user programs from causing interference with the system and wreacking havoc. Drivers are kernel-space processes. This is what privilege separation is all about. Modern operating systems implement this separation to prevent problems caused both by errors (software and user) as well as malicious behavior. But like Picnic already said, console functions is all that you need here (and 99.99% of the time). |
|||
![]() |
|
Ali.Z
revolution wrote: In your app you receive the keystrokes and then decide what to do with them. If you want to ignore some keys then simply go back to waiting for the next keystroke. thanks buddy, keyboard input i think i can also parse keystrokes, ill look for more functions and uses. _________________ Asm For Wise Humans |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.