Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- intro db 27,"[H",27,"[2JHello, and welcome to the Trolley Problem Game! Today your sense of morality will be tested.",10,10,"You are standing at a fork in a trolley track with a lever at your side. On one side of the fork, there are five people tied up. On the other side, there is only one person tied up. The trolley is coming, and there is no way to stop it, or untie the people. If you don't pull the lever, the five will die, but if you do, the one will die. You will have saved five lives, but in turn, be directly responsible for the death of one.",10,10,"1. Do nothing",10,"2. Pull the lever",10,"3. Enable multi-track drifting and kill all six",10,10,"Enter a choice (1,2,3): "
- msg1 db 10,"You would trade lives to not be responsble for murder. You believe indirect killing isn't as bad as direct killing.",10
- msg2 db 10,"You would kill one person to save five. You believe that keeping the most people alive is the right choice.",10
- msg3 db 10,"You are a psychopath. Please leave me and my family alone.",10
- section .bss
- choice resb 2
- section .text
- global _start
- _start:
- mov eax, 4
- inc ebx
- mov ecx, intro
- mov edx, 637
- int 128
- mov eax, 3
- inc ebx
- mov ecx, choice
- mov edx, 2
- int 128
- mov eax, 4
- dec ebx
- cmp byte [choice], 50
- je op2
- jg op3
- op1:mov ecx, msg1
- mov edx, 117
- jmp g_a
- op2:mov ecx, msg2
- mov edx, 109
- jmp g_a
- op3:mov ecx, msg3
- mov edx, 60
- g_a:int 128
- mov eax, 1
- xor ebx, ebx
- int 128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement