yes if you are not using system calls of linux and windows. if you want your assembly code to run on both operating system, you have to switch the os to real time and use bios calls. but i dont think that is a good thing to do, and i am not even sure if this operating systems would allow you. you might have some problems.
Linux and Windows run on several different machine architectures to which they have
been ported, assembly language programs are machine specific and cannot be garuanteed
to run or properly assemble under another version of Linux or Windows.
If a compatible assembler and library were used on systems of the same architecture,
using for instance calls to a linked standard library, it might be possible depending on the
program. As for the compiled executable Linux and Windows use a different executable
file format, used by the operating system loader for linking, allocating memory and relocation.
The BIOS is effectively disabled in protected mode on x86 based PCs.
NASM is a x86 assembler for Linux and Windows.
No it wouldn't. Applications expect the operating system to do various things of their behalf, such as allocating memory, writing to disk, displaying stuff on the screen, getting keyboard input, and so on. Every operating system has its own way of making those services available to applications, and, apart from the core services, you can't even count on the same services being available under different operating systems.
High level languages generally hide operating system calls away from you, but in assembly language programs they have to be made explicitly.
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...