So, I have the following code:
section .data
sizebuf dw 1024
section .bss
buf resb 1024
section .text
global _start
_start:
; put bmp file name in rbx
pop rbx
pop rbx
pop rbx
; open BMP
mov eax, 5
mov ebx, rbx
mov rcx, 0
int 80h
; read BMP
mov eax, 3
mov ebx, eax
mov ecx, buf
mov edx, sizebuf
int 80h
Basically I want this code to open a bmp image and read bytes 3-6 and 11-14, storing them somewhere in order to know the file size and offset. Right now I think it just opens and reads the whole file and I can't seem to figure out how to read those specific bytes, even after reading some similar questions (sorry if duplicate). I am a complete beginner in assembly so any help is appreciated. Thanks!