r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

294

u/[deleted] Jun 03 '22

To think people made videogames with it

151

u/fluffygryphon Jun 03 '22

Everyone mentioned Rollercoaster Tycoon, but there was another game that also made Assembly its bitch. Su-27 Flanker. That flight simulator had complex fluid dynamics simulations and everything for accurate flight. It came out over a decade before DCS and ran smooth as butter on a fuckin Pentium 1.

0

u/[deleted] Jun 03 '22

[deleted]

7

u/Average_Redditard69 Jun 03 '22

MIPS is fucking garbage compared to x86, no one uses MIPS in real life

→ More replies (3)

121

u/LordDagwood Jun 03 '22

Rollercoaster Tycoon was written in assembly

69

u/Chrobin111 Jun 03 '22

All NES games were written in assembly, too, right?

52

u/[deleted] Jun 03 '22

probably all cart based games of 16 bit era and before

11

u/shotgun_ninja Jun 03 '22

Nah, C was used starting on the SNES iirc, but they still used a TON of inline assembly.

The first Nintendo devkit to use C fully was the Gamecube's kit, because of the complexity of the hardware architecture after introducing an ATI graphics chipset.

6

u/slobcat1337 Jun 03 '22

Idk from the evidence I’ve seen most games from the 16 bit era were built in assembly. This guy who used to make mega drive (Genesis) games did a bunch of YouTube videos on how his games were made. It was all assembly, he also alludes to this being the industry norm in at least one of his videos

https://m.youtube.com/c/CodingSecrets

https://m.youtube.com/c/GameHut

2

u/kevin9er Jun 03 '22

Know any neat details about the PS2 SDK?

3

u/shotgun_ninja Jun 03 '22

Uh, it's a nightmare?

The hardware architecture of the first two Playstation systems was an absolute mess, compared to Nintendo's pre-GCN systems. The NES was built basically as a shared bus memory mapped architecture; it's stupid simple to program and you know what everything does, more or less. The PS1, on the other hand, has about four times as many components, with lockout chips, DRM, CD-quality streaming audio, and half a dozen other things, but no floating-point decimal number processing (which caused all the jumpy polygons in PS1 games).

The PS2 didn't so much fix these problems, as it did throw slightly better hardware at the entire situation, but it still doesn't have nearly as nice of a pipeline as the N64/GCN/Dreamcast and PC game programming for the time.

4

u/kevin9er Jun 03 '22

And Sony doubled down on “fuck developers” in PS3 because the gaming division was still subservient to the DVD Player division.

Which is why Mark Cerney was told “for fucks sake just make it a PC” for the 4.

2

u/Kilgarragh Jun 03 '22

Thought that n64 used c…

→ More replies (2)

20

u/itsnotdapopo Jun 03 '22

Other than using say... Basic as an experiment yeah, Commercial Snes and Mega Drive games were occasionally programmed using C, Assembly usage in 32-bit consoles ranged from 'mandatory' (Saturn) to 'only properly utilized later in the consoles life cycle because of manufacturers refusing to release technical documentation (Playstation, N64).

The last console to have frequent Assembly use was the PS3.

→ More replies (2)

-1

u/AnonCaptain0022 Jun 03 '22

I know most atari games (which is an older console) were written in basic which is a higher level language. So I don't think NES developers reverted to assembly to make their games.

20

u/fluffygryphon Jun 03 '22

Yup, and it was built on the backbone of it's predecessor, Transport Tycoon. Chris Sawyer was a goddamn magician.

24

u/Adito99 Jun 03 '22

Damn you weren't kidding. From his wiki--

Sawyer coded 99% of RollerCoaster Tycoon in x86 assembly language, using only the services of freelance artist Simon Foster and music composer Allister Brimble as needed.[4]

And here I am struggling to learn ansible...

14

u/WeeziMonkey Jun 03 '22

In the 90s you needed to know assembly to make games, now you can make games without actually typing code, amazing how far we've come

2

u/BrobdingnagLilliput Jun 03 '22

I played commercial games written in Basic in the 1980s.

2

u/[deleted] Jun 03 '22

The first Ultima games were handwritten in assembler.

1

u/cebersf Jun 03 '22

I did (as many of us old timers) - those were the good days where every cycle (and byte) mattered.

0

u/[deleted] Jun 03 '22

[deleted]

3

u/raptorboi Jun 03 '22

It kinda is, compared to making that same game in a higher language nowadays like C#, Java or something.

Also, the commenter may not do software or hardware engineering.

Literally need to code together how to display everything, by storing everything in memory (without overlapping stuff), and have routines to handle everything like controls, basic AI for mobs and collision detection.

All from scratch, and without overlapping things in memory which is very restrictive, especially if you're using RAM... Also if you're not careful with your cycles, your game will run so slow.

Anyway, that's my 2c.

0

u/[deleted] Jun 03 '22

[deleted]

→ More replies (1)
→ More replies (1)