1032
you are viewing a single comment's thread
view the rest of the comments
[-] Lemjukes@lemm.ee 55 points 19 hours ago* (last edited 2 hours ago)

It also makes it really portable which is a big part of why all the ports to modern systems are so close to the original. Obligatory OpenRCT2 shoutout.

edit: This is not entirely correct, I was mistaken about my understanding of some things. Still check out openrct2

[-] Faresh@lemmy.ml 39 points 16 hours ago* (last edited 16 hours ago)

Writing it in assembly would make it pretty much the opposite of portable (not accounting for emulation), since you are directly giving instructions to a specific hardware and OS.

[-] Lemjukes@lemm.ee -3 points 11 hours ago

Not necessarily, unless you’re working on something like an OS you’re not usually directly accessing/working on the hardware. As long as you can connect the asm up to your os/driver abstraction layer and the os to hardware apis work the game should be functional. Not to mention RCT targets the x86 assembler architecture which was one of the most popular at the time

[-] Faresh@lemmy.ml 2 points 5 hours ago* (last edited 5 hours ago)

you’re not usually directly accessing/working on the hardware

I mean, you are. Sure, there's a layer of abstraction when doing tasks that require the intervention of the kernel, but you are still dealing with cpu registers and stuff like that. Merely by writing in assembly you are making your software less portable because you are writing for a specific ISA that only a certain family of processors can read, and talking with the kernel through an API or ABI that is specific to the kernel (standards like Posix mitigate the latter part somewhat, but some systems (windows) aren't Posix compilant).

load more comments (1 replies)
load more comments (1 replies)
load more comments (8 replies)
this post was submitted on 17 Oct 2024
1032 points (99.0% liked)

RetroGaming

19335 readers
1469 users here now

Vintage gaming community.

Rules:

  1. Be kind.
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

founded 1 year ago
MODERATORS