--- In vmu-dev@egroups.com, Omar Cornut <cornut@c...> wrote: > Hello everybody
(on both list :) > > I'm posting from home - actually never posted from work -
because I don't > have Internet connection at work. > > I'm new to VM and today
while reading the main PDF (the version from > the SDK10) I stumbled accross
something I couldn't understand: all > exemples using relative jump seemed
buggy to me. > > I don't them handy so I can't quote the exact examples, but
the problems > were usually on the line using the "LA" label in those examples,
like > > BR LA > > What is unclear to me is which what value the assembler
replace LA. > Judging by these exemples it should be the relative value. > >
But then why a JMP LA would work, JMP taking an absolute address?! > Someone to
clear up my mind and tell me where I am wrong? The assembler accepts absolute
addresses for all branch instructions, and then converts them to relative if
needed. This is because it would be a pain in the behind to have to write
BR LA-(.-1) and similar everywhere. All assemblers I know do this. //
Marcus