Skip to main content
1 of 7
user5434231
  • 1.6k
  • 11
  • 12

#8086 machine code, 68 bytes 00000000 80 3e 80 00 02 76 22 be 82 00 ac 88 c2 ac 38 c2 |.>...v".......8.| 00000010 9d 9c 88 c2 ac 3c 0d 74 10 38 c2 74 f3 77 05 9d |.....<.t.8.t.w..| 00000020 72 ef eb 0a 9d 77 ea eb 05 ba 37 01 eb 03 ba 3e |r....w....7....>| 00000030 01 b4 09 cd 21 cd 20 74 72 75 74 68 79 24 66 61 |....!. truthy$fa| 00000040 6c 73 79 24 |lsy$| 00000044

Assembled from:

org 0x100 use16 cmp byte [0x80], 2 jbe y mov si, 0x82 lodsb mov dl, al lodsb cmp dl, al e: popf a: pushf mov dl, al lodsb cmp al, 0x0d je y cmp dl, al je e ja @f popf jb a jmp n @@: popf ja a jmp n y: mov dx, yay jmp @f n: mov dx, nay @@: mov ah, 0x09 int 0x21 int 0x20 yay db "truthy$" nay db "falsy$" 
user5434231
  • 1.6k
  • 11
  • 12