Should I learn to program in C or ASM?

Página 2/2
1 |

Por AxelStone

Prophet (2965)

Imagen del AxelStone

20-08-2020, 11:19

My suggestion should be use C, is more portable. You can start using Fusion-C.

Por DarkSchneider

Paladin (941)

Imagen del DarkSchneider

20-08-2020, 11:41

Manuel wrote:

You can also combine: write performance critical parts in assembler and the glue code in C.


Por gdx

Enlighted (4498)

Imagen del gdx

20-08-2020, 11:44

C is not more portable than assembler if you make games for MSX, SG-1000 and Colecovision.
Assembler is faster, economical in memory and more adapted for MSX. This is the best choice.

Assembler is not much more complicated than C if you have a good library. If you choose the C, you will still need to learn assembler.

Por DarkSchneider

Paladin (941)

Imagen del DarkSchneider

20-08-2020, 11:51

The strcuture handling and programming logic is much easier, faster and modifiable (as you modify code and the compiler generates the asm for you) on C.
Modifying code on ASM takes much longer because if you change lines, then you have to "fit" again the whole.


Enlighted (6506)

Imagen del ARTRAG

21-08-2020, 14:03

All depends on what you want to do and from which knowledge of coding and of the msx systems you start.
If you are a newbie probably it is better to start with C (this version that is actively supported on this forum )
Once you have started to understand hands on how the msx architecture works, you could start coding in assembly.
Also in this case, an effective way to use ASM is within C programs for the time critical parts
C is usually more flexible and easier to modify

Página 2/2
1 |