flat assembler
Message board for the users of flat assembler.
Index
> Windows > console text editor |
Author |
|
Ali.Z 18 Jul 2018, 03:07
is it possible to make console as a text editor?
_________________ Asm For Wise Humans |
|||
18 Jul 2018, 03:07 |
|
revolution 18 Jul 2018, 03:10
DOS had the program EDLIN. So, yes, it is possible and it has been done.
|
|||
18 Jul 2018, 03:10 |
|
revolution 18 Jul 2018, 09:48
You can parse the keystrokes in any way you need to. You don't have to use any drivers. As the user presses the keys you can ignore them or process them as is required for your app.
|
|||
18 Jul 2018, 09:48 |
|
Ali.Z 18 Jul 2018, 09:57
still not sure about ignoring key strokes, can you point me to...?
|
|||
18 Jul 2018, 09:57 |
|
revolution 18 Jul 2018, 10:00
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.
|
|||
18 Jul 2018, 10:00 |
|
Ali.Z 18 Jul 2018, 11:12
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 |
|||
18 Jul 2018, 11:12 |
|
Picnic 18 Jul 2018, 11:24
For such project, i dοn't think you will need anything more than console functions.
|
|||
18 Jul 2018, 11:24 |
|
revolution 18 Jul 2018, 11:31
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. |
|||
18 Jul 2018, 11:31 |
|
Ali.Z 18 Jul 2018, 12:25
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 |
|||
18 Jul 2018, 12:25 |
|
ManOfSteel 18 Jul 2018, 17:29
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). |
|||
18 Jul 2018, 17:29 |
|
Ali.Z 20 Jul 2018, 02:06
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 |
|||
20 Jul 2018, 02:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.