summaryrefslogtreecommitdiff
path: root/list.asm
AgeCommit message (Collapse)Author
2014-02-14fix a missing colon after a labelOlivier Gayot
2014-02-14add a function which clears a listOlivier Gayot
list_clear(&plist) the function will run through every elements and clear them. the prehead is updated (first and size are set to 0)
2014-02-14consider that list_init is a leaf functionOlivier Gayot
leaf functions do not have to contain a prologue nor an epilogue.
2014-02-14use a structure to define a list and an elementOlivier Gayot
we make use of the struc / endstruc notation of nasm. this allows us to have change / add / remove some fields of the so said structures without having to change the whole code.
2014-02-14use local labels wherever possibleOlivier Gayot
this avoids the need of prefixing the redundant label names (e.g. end, loop) by the name of the function. The latter version is shorter to type and hides local labels when the object file is desassembled. Thus, instead of having function_name: jmp function_name_end function_name_end: we have this function_name: jmp .end .end:
2014-02-14explicitely set global data items typeOlivier Gayot
nasm lets us specify whether global data items are functions or data. as for us, we do not have any data atm. every global declaration of function have been changed from global function_name to global function_name:function
2014-02-14remove the explicit [BITS 64]Olivier Gayot
the manual of yasm says that we should avoid declaring [BITS ...] explicitely.
2014-02-14rename list.s in list.asmOlivier Gayot
the files with '.s' extension are not properly displayed by github.