This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Special Symbols in AS?


Are there any special symbols available in the GAS syntax? I'm writing ax
x86 bootsector and it would be really nice if I could put:

.space (510-$$)
.word 0xaa55

at the end, where $$ represents the current assembled position, instead of
calculating how long the file is and then adjusting it everytime I change
the length.

-- 
Ryan "leadZERO" Sommers
Gamer's Impact President
ryans@gamersimpact.com
ICQ: 1019590
AIM/MSN: leadZERO

-= http://www.gamersimpact.com =-



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]