I’m trying to make a small x86 program that gets as input the absolute path of a folder, which contains .txt files, and prints their size and fd
.data formatString: .asciz “%s” descLabel: .asciz “File Descriptor: %dn” sizeLabel: .asciz “File Size: %d kilobytesnn” afis_nr: .asciz “%d n” # Buffers and variables path: .space 256 dirPtr: .space 4 # pointer to DIR structure dirEntryPtr: .space 4 # pointer to dirent structure .text CONCRETE: pushl %ebp movl %esp, %ebp leal path, %edi # address of […]
I’m trying to make a small x86 program that gets as input the absolute path of a folder, which contains .txt files, and prints their size and fd
.data formatString: .asciz “%s” descLabel: .asciz “File Descriptor: %dn” sizeLabel: .asciz “File Size: %d kilobytesnn” afis_nr: .asciz “%d n” # Buffers and variables path: .space 256 dirPtr: .space 4 # pointer to DIR structure dirEntryPtr: .space 4 # pointer to dirent structure .text CONCRETE: pushl %ebp movl %esp, %ebp leal path, %edi # address of […]