flat assembler
Message board for the users of flat assembler.
Index
> Windows > question about files |
Author |
|
DimonSoft 15 Jul 2018, 07:58
You seem to be missing knowledge about file systems. SSDs are external devices from CPU’s perspective and they don’t share addressing space with RAM (unless you specifically setup some kind of DMA-like mechanism (if any SSD in the whole world would ever supports it) or pretend you have such a mechanism by emulating it with memory-mapped files). Anyway, you have a 32-bit pointer (in your example) which limits you to 4 GB. I doubt your SSD is so small.
|
|||
15 Jul 2018, 07:58 |
|
Tomasz Grysztar 15 Jul 2018, 08:53
DimonSoft wrote: unless you specifically setup some kind of DMA-like mechanism (if any SSD in the whole world would ever supports it) |
|||
15 Jul 2018, 08:53 |
|
Ali.Z 15 Jul 2018, 09:14
okay, then how would the OS load a file when there is no pointer points to the current location of clusters / sector that have the file and file data.
|
|||
15 Jul 2018, 09:14 |
|
revolution 15 Jul 2018, 09:27
External devices read and write data to and from RAM through the I/O mechanisms. A normal user mode process doesn't have any privilege to directly do I/O operations.
|
|||
15 Jul 2018, 09:27 |
|
Ali.Z 15 Jul 2018, 23:58
okay thanks guys, now i really hate user mode ):
|
|||
15 Jul 2018, 23:58 |
|
revolution 16 Jul 2018, 00:25
Elevate yourself to SYSTEM privilege and then you can do anything you want.
|
|||
16 Jul 2018, 00:25 |
|
Ali.Z 16 Jul 2018, 05:01
true, but im missing knowledge rev.
there are lot of things i dont know about, i even dont know boot process .. what load firsts and next. compiling a device driver using fasm not a hard task just PE native and you are done, but what about functions that a .sys must have. (i know most device drivers communicate with ntdll, hal.dll, ntoskrnl.exe) but does these modules have everything i need? (and what are the abilities i can perform) and how would my .sys communicate with my .exe or .dll? because .dll and .exe runs in usermode using usermode thread, and .sys runs in kernelmode so calling a function in my .sys from my .dll or .exe will result access violation. excuse me tho, no one taught anything about computers, hardware, software. (no school no institute nor university) everything i know is from reading documents on internet. (it took over 15 years to understand) sorry im not talking it personal, im just trying to say every single information i know is from internet .. and not everything i need is available in this network. |
|||
16 Jul 2018, 05:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.