Learning x86 with NASM - Opening and Reading Files

  Рет қаралды 5,240

OliveStem

OliveStem

Күн бұрын

Пікірлер: 14
@callmenobody34
@callmenobody34 Жыл бұрын
I have to say your tutorials about assembly are really great. Somehow you manage to explain this topic better than any professor I ve had so far
@oneloveafrica8860
@oneloveafrica8860 11 ай бұрын
I don't know why this channel still less than million subscriber .. it's the best channel I ever seen
@Alex-fn3go
@Alex-fn3go 10 ай бұрын
Hi, you're doing such a great job by explaining thing so clearly. But I have a question, why did you define pathname as DD and not DB. I would expect it to fail with DD with reading chars, but it isn't. What am i lacking?
@Sam-dh7fr
@Sam-dh7fr 10 ай бұрын
By the way, you dont need to keep wrting stepi. Just do it one, then press enter after that
@nickeax
@nickeax 6 ай бұрын
Thanks!
@Sam-dh7fr
@Sam-dh7fr 10 ай бұрын
pathname did not have a null terminator. Still, while debugging, it knew where it ended. Is it because memory after the last letter/byte was nulled/zeroed ?
@mdmostainbillah5399
@mdmostainbillah5399 Жыл бұрын
Super awesome ❤
@ethanxenon404
@ethanxenon404 4 ай бұрын
Thanks, I put the database file in the same directory as the program. It did not work, however when I reduced "pathname" to only the file name, the code worked. Is it only looking for a relative path?
@ethanxenon404
@ethanxenon404 4 ай бұрын
Well, works now. I probably got my path wrong, file descriptor was coming back -2 but is 3 now.
@vaishakvinay
@vaishakvinay Ай бұрын
It's showing -2 for me instead of 3
@ashwinsanthosh9154
@ashwinsanthosh9154 11 ай бұрын
Amazing tutorials! There does seem to be an issue with the links provided though, all of them redirect to the same page.
@olivestemlearning
@olivestemlearning 11 ай бұрын
Thanks for letting me know! I've updated the links
@decb.7959
@decb.7959 Жыл бұрын
One thing I am curious about is how the assembler / linker knows what the address of `pathname`, for example, will be. I'm also wondering why the addresses are so high and don't start at 0.
@olivestemlearning
@olivestemlearning Жыл бұрын
Generally, all ELF programs will start at the same address, 0x08048000. When a process runs, the stack memory for the process is placed below the program instructions. Because the stack grows from high memory down to low memory, the program starts at a high address to provide space for stack growth. Regarding how the assembler knows what the address of pathname is, when the assembler assembles the code, it will place everything from the .data section into memory. When it does this, it keeps track of where the data was placed, then replaces the variable name with the memory location it corresponds with. The assembler will generally pick a fixed offset from the end of the program instructions to start placing data into memory
Learning x86 with NASM - Using Lseek with Files
7:58
OliveStem
Рет қаралды 2 М.
Learning x86 with NASM - Creating and Writing Files
9:50
OliveStem
Рет қаралды 2,7 М.
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 148 МЛН
FREE Docker Registry for Rails Apps No Cloud Required! 🎯
10:42
Rails Quest by Kaleb Lape
Рет қаралды 270
x86 Operating Systems - Reading From the Disk in BIOS
21:39
OliveStem
Рет қаралды 3,6 М.
6 Research Levels Every Academic Must Master - You're Stuck at Level 2
13:15
A Compiler For Our Own Programming Language // Full Guide
18:54
Booting an Operating System
11:11
Dhananjai Rao
Рет қаралды 100 М.
Learning x86 with NASM - Working with Byte and Word Data
13:37
Learning x86 with NASM - Characters, Strings and Lists
11:52
OliveStem
Рет қаралды 10 М.
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32