/assembly-npc-village

This is a program, that was made as a joke in python by some guy named uwunto, and I remade it in assembly... Best wasted hours of my life.

Primary LanguageAssemblyThe UnlicenseUnlicense

Assembly NPC Village

This is a program, that was made as a joke in python by some guy named uwunto, and I remade it in assembly... Best wasted hours of my life. This is the original program:

import random

names = ["Alice", "Bob", "Charlie", "David", "Eve"]
actions = ["runs", "jumps", "sleeps", "eats", "laughs", "works", "reads", "sings", "dances", "talks"]

for name in names:
    action = random.choice(actions)
    print(f"{name} {action}")

Firstly, I made that same program in C - simple-village.c Then, I made another C program, just by using syscalls and making it closer to assembly - village.c And then - the assembly program: village.asm

It's x86 32-bit assembly with intel syntax, works on linux, but if you change the syscall numbers, it should work elsewhere too.