September 2017
Beginner to intermediate
290 pages
6h 58m
English
There may be a need to repeat the same portion of code with minor differences or even without them. Assemblers have directives (sometimes referred to as built-in macro instructions) that allow us exactly this. There are three such statements common to all three assemblers--FASM, MASM and GAS:
hex_chars:rept 10 cnt {db '0' + cnt - 1}rept 6 cnt {db 'A' + cnt - 1}
This would generate an array of hexadecimal characters named hex_chars, and is equivalent ...
Read now
Unlock full access