Using the same assembler, the basic assembly code written on each operating system is basically the same, except their interface. ie, the following is different between windows and linux:
See Assembly - System Call