summaryrefslogtreecommitdiff
path: root/5/seat_id.asm
diff options
context:
space:
mode:
Diffstat (limited to '5/seat_id.asm')
-rw-r--r--5/seat_id.asm25
1 files changed, 0 insertions, 25 deletions
diff --git a/5/seat_id.asm b/5/seat_id.asm
deleted file mode 100644
index a372a9a..0000000
--- a/5/seat_id.asm
+++ /dev/null
@@ -1,25 +0,0 @@
-global seat_id
-
-section .text
-
-seat_id:
- xor eax, eax ; set up return value
- cmp BYTE [rdi], 'B'
- sete al
- xor ecx, ecx
-%assign i 1
-%rep 6
- shl eax, 1
- cmp BYTE [rdi + i], 'B'
- sete cl
- or eax, ecx
-%assign i i+1
-%endrep
-%rep 3
- shl eax, 1
- cmp BYTE [rdi + i], 'R'
- sete cl
- or eax, ecx
-%assign i i+1
-%endrep
- ret