vijayanand_sodadasi
April 28th, 2006, 03:11 PM
Hello!
Can somebody explain me this statement: times 510-($-$$) db 0 . The comment says that it fills the file with 0's. what is ($-$$)?
The program is written for NASM assembler, can you give the "as" (linux assembler) equivalent for it.
A minimal bootstrap
-------------------
This bootstrap just hangs:
; HANG.ASM
; A minimal bootstrap
hang: ; Hang!
jmp hang
times 510-($-$$) db 0 ; Fill the file with 0's
dw 0AA55h ; End the file with AA55
Can somebody explain me this statement: times 510-($-$$) db 0 . The comment says that it fills the file with 0's. what is ($-$$)?
The program is written for NASM assembler, can you give the "as" (linux assembler) equivalent for it.
A minimal bootstrap
-------------------
This bootstrap just hangs:
; HANG.ASM
; A minimal bootstrap
hang: ; Hang!
jmp hang
times 510-($-$$) db 0 ; Fill the file with 0's
dw 0AA55h ; End the file with AA55