K
K
Kaktys_DH2020-07-18 10:55:57
assembler
Kaktys_DH, 2020-07-18 10:55:57

If you make a game in assembler, then it will only be for one processor architecture? (since each assembler has its own processor)?

If you make a game in assembler, then it will only be for one processor architecture? (since each assembler has its own processor)? Or will it be for all architectures

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2020-07-18
@Zoominger

If you make a game in assembler,

Life is not enough. Even on Arkanoid.
about it will be only under one architecture of processors?

If you write under x64, it will only work on x64, and this is absolutely correct, because x32 has two feet in the grave, and even teapots support 64. Of course, you can forget about ARM and mobile phones.

1
15432, 2020-07-18
@15432

Each architecture has its own set of machine instructions, so yes, if you write something in assembler, it will only work on the processor in "whose language" you wrote.
There are cases when it is possible to run code on one processor for another processor. So, on Russian Elbrus and some ARM systems (for example, on new macbooks on ARM), you can run x86-64 code by translation (slower than the code of the original processor architecture).
Or, in QEMU / any other emulator, run the code of a "foreign" architecture. So, for example, they launch games from old consoles - NES, Sega, PS1, PS2
(much slower than the original architecture)

V
Vapaamies, 2020-07-19
@vapaamies

Check out KolibriOS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question