-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackstabber.red
More file actions
33 lines (27 loc) · 852 Bytes
/
backstabber.red
File metadata and controls
33 lines (27 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;redcode
;name Backstabber
;author Anders Ivner
;strategy Brief scanner.
;contact [email protected]
;assert 1
; Oh well, I don't know. I guess this one has as much chance as anything
; else.
dist equ 19
step equ 3094
start add const, scan
scan cmp -dist, 0
slt #20+dist, scan
jmp start
mov #19+dist, cnt
mov scan, @loop
loop mov glue, <scan+11
cnt djn loop, #0
djn start, #20 ;how many times?
spl 0, <-3
clr2 mov gate, <-2
jmp -1, <-5
dat #0
gate dat <-4, <-5
const dat #step, #step
glue spl -1, 1
end start