Skip to content

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.

License

Notifications You must be signed in to change notification settings

RORAKUS/assembly-npc-village

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published