Advertisement
sylvieseal

Untitled

Feb 20th, 2023
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2.  
  3.     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): "
  4.     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
  5.     msg2 db 10,"You would kill one person to save five. You believe that keeping the most people alive is the right choice.",10
  6.     msg3 db 10,"You are a psychopath. Please leave me and my family alone.",10
  7.  
  8. section .bss
  9.  
  10.     choice resb 2
  11.  
  12. section .text
  13.     global _start
  14. _start:
  15.    
  16.     mov eax, 4
  17.     inc ebx
  18.     mov ecx, intro
  19.     mov edx, 637
  20.     int 128
  21.  
  22.     mov eax, 3
  23.     inc ebx
  24.     mov ecx, choice
  25.     mov edx, 2
  26.     int 128
  27.  
  28.     mov eax, 4
  29.     dec ebx
  30.  
  31.     cmp byte [choice], 50
  32.     je op2
  33.     jg op3
  34.  
  35. op1:mov ecx, msg1
  36.     mov edx, 117
  37.     jmp g_a
  38.  
  39. op2:mov ecx, msg2
  40.     mov edx, 109
  41.     jmp g_a
  42.  
  43. op3:mov ecx, msg3
  44.     mov edx, 60
  45.  
  46. g_a:int 128
  47.  
  48.     mov eax, 1
  49.     xor ebx, ebx
  50.     int 128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement