#OpenDiskFont()
17-Jun-95 07:29:06
Sb: #47229-#OpenDiskFont()
Fm: Jim Butterfield 73624,14
To: Phillip Wooller 100024,2227
>> Some people don't like the LEA instruction….
Of course, one advantage of LEA over MOVE.L # is that you get a richer set of
addressing modes.
In particular, programmers writing a "small code" model can do:
LEA ASCFONT(PC),A0
which makes the instruction shorter and faster, and also saves you a
relocation vector in the executable code.
It may be that we're long past the days where we count bytes and
microseconds. But when we want to get an address into a register, LEA still
seems more, well, elegant. Even if it sometimes is followed by a move into a
data register (darn some of those clumsy library calls!).
–Jim