Re: LILO jump/retf question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi....

Not a pro asm coder, but here's what I think...

On Sun, Mar 13, 2011 at 04:03, Andrzej Kardas <andrzej-kardas@xxxxx> wrote:
> i wonder if are there any benefits of replacing line
>
> jmpi    go,INITSEG  ; which, i think is more readable
>
> by
>
> push    es
> push    #go
> retf
>
> besides to make people confused?


hm, I just read about retf here:
http://stackoverflow.com/questions/1396909/ret-retn-retf-how-to-use-them

and.... I think, personally, the push-push-retf is more readable. By
pushing the values into the stack and do far return, it's easy to
interpret that "we jump into return value which we should find in
stack"

The readability I point here is more like "do goto vs don't do goto".
Although in assembly, we're not forced to do everything structurally,
but it's better to avoid it. Let me guess, the context of the above
"retf" is to exit from somekind of "function"?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux