-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathneighbors.asm
94 lines (94 loc) · 11.9 KB
/
neighbors.asm
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
;
; Generated by neighbors.c
;
_nbors_0_0: .dw $02, $04, $06, $08, $0a, $0c, $0e, $10, $12, $24, $36, $48, $5a, $6c, $7e, $90, $14, $16, $26, $28, $02, $04, $12, $24,
_nbors_1_0: .dw $00, $04, $06, $08, $0a, $0c, $0e, $10, $14, $26, $38, $4a, $5c, $6e, $80, $92, $12, $16, $24, $28, $00, $04, $14, $26,
_nbors_2_0: .dw $00, $02, $06, $08, $0a, $0c, $0e, $10, $16, $28, $3a, $4c, $5e, $70, $82, $94, $12, $14, $24, $26, $00, $02, $16, $28,
_nbors_3_0: .dw $00, $02, $04, $08, $0a, $0c, $0e, $10, $18, $2a, $3c, $4e, $60, $72, $84, $96, $1a, $1c, $2c, $2e, $08, $0a, $18, $2a,
_nbors_4_0: .dw $00, $02, $04, $06, $0a, $0c, $0e, $10, $1a, $2c, $3e, $50, $62, $74, $86, $98, $18, $1c, $2a, $2e, $06, $0a, $1a, $2c,
_nbors_5_0: .dw $00, $02, $04, $06, $08, $0c, $0e, $10, $1c, $2e, $40, $52, $64, $76, $88, $9a, $18, $1a, $2a, $2c, $06, $08, $1c, $2e,
_nbors_6_0: .dw $00, $02, $04, $06, $08, $0a, $0e, $10, $1e, $30, $42, $54, $66, $78, $8a, $9c, $20, $22, $32, $34, $0e, $10, $1e, $30,
_nbors_7_0: .dw $00, $02, $04, $06, $08, $0a, $0c, $10, $20, $32, $44, $56, $68, $7a, $8c, $9e, $1e, $22, $30, $34, $0c, $10, $20, $32,
_nbors_8_0: .dw $00, $02, $04, $06, $08, $0a, $0c, $0e, $22, $34, $46, $58, $6a, $7c, $8e, $a0, $1e, $20, $30, $32, $0c, $0e, $22, $34,
_nbors_0_1: .dw $14, $16, $18, $1a, $1c, $1e, $20, $22, $00, $24, $36, $48, $5a, $6c, $7e, $90, $02, $04, $26, $28, $00, $14, $16, $24,
_nbors_1_1: .dw $12, $16, $18, $1a, $1c, $1e, $20, $22, $02, $26, $38, $4a, $5c, $6e, $80, $92, $00, $04, $24, $28, $02, $12, $16, $26,
_nbors_2_1: .dw $12, $14, $18, $1a, $1c, $1e, $20, $22, $04, $28, $3a, $4c, $5e, $70, $82, $94, $00, $02, $24, $26, $04, $12, $14, $28,
_nbors_3_1: .dw $12, $14, $16, $1a, $1c, $1e, $20, $22, $06, $2a, $3c, $4e, $60, $72, $84, $96, $08, $0a, $2c, $2e, $06, $1a, $1c, $2a,
_nbors_4_1: .dw $12, $14, $16, $18, $1c, $1e, $20, $22, $08, $2c, $3e, $50, $62, $74, $86, $98, $06, $0a, $2a, $2e, $08, $18, $1c, $2c,
_nbors_5_1: .dw $12, $14, $16, $18, $1a, $1e, $20, $22, $0a, $2e, $40, $52, $64, $76, $88, $9a, $06, $08, $2a, $2c, $0a, $18, $1a, $2e,
_nbors_6_1: .dw $12, $14, $16, $18, $1a, $1c, $20, $22, $0c, $30, $42, $54, $66, $78, $8a, $9c, $0e, $10, $32, $34, $0c, $20, $22, $30,
_nbors_7_1: .dw $12, $14, $16, $18, $1a, $1c, $1e, $22, $0e, $32, $44, $56, $68, $7a, $8c, $9e, $0c, $10, $30, $34, $0e, $1e, $22, $32,
_nbors_8_1: .dw $12, $14, $16, $18, $1a, $1c, $1e, $20, $10, $34, $46, $58, $6a, $7c, $8e, $a0, $0c, $0e, $30, $32, $10, $1e, $20, $34,
_nbors_0_2: .dw $26, $28, $2a, $2c, $2e, $30, $32, $34, $00, $12, $36, $48, $5a, $6c, $7e, $90, $02, $04, $14, $16, $00, $12, $26, $28,
_nbors_1_2: .dw $24, $28, $2a, $2c, $2e, $30, $32, $34, $02, $14, $38, $4a, $5c, $6e, $80, $92, $00, $04, $12, $16, $02, $14, $24, $28,
_nbors_2_2: .dw $24, $26, $2a, $2c, $2e, $30, $32, $34, $04, $16, $3a, $4c, $5e, $70, $82, $94, $00, $02, $12, $14, $04, $16, $24, $26,
_nbors_3_2: .dw $24, $26, $28, $2c, $2e, $30, $32, $34, $06, $18, $3c, $4e, $60, $72, $84, $96, $08, $0a, $1a, $1c, $06, $18, $2c, $2e,
_nbors_4_2: .dw $24, $26, $28, $2a, $2e, $30, $32, $34, $08, $1a, $3e, $50, $62, $74, $86, $98, $06, $0a, $18, $1c, $08, $1a, $2a, $2e,
_nbors_5_2: .dw $24, $26, $28, $2a, $2c, $30, $32, $34, $0a, $1c, $40, $52, $64, $76, $88, $9a, $06, $08, $18, $1a, $0a, $1c, $2a, $2c,
_nbors_6_2: .dw $24, $26, $28, $2a, $2c, $2e, $32, $34, $0c, $1e, $42, $54, $66, $78, $8a, $9c, $0e, $10, $20, $22, $0c, $1e, $32, $34,
_nbors_7_2: .dw $24, $26, $28, $2a, $2c, $2e, $30, $34, $0e, $20, $44, $56, $68, $7a, $8c, $9e, $0c, $10, $1e, $22, $0e, $20, $30, $34,
_nbors_8_2: .dw $24, $26, $28, $2a, $2c, $2e, $30, $32, $10, $22, $46, $58, $6a, $7c, $8e, $a0, $0c, $0e, $1e, $20, $10, $22, $30, $32,
_nbors_0_3: .dw $38, $3a, $3c, $3e, $40, $42, $44, $46, $00, $12, $24, $48, $5a, $6c, $7e, $90, $4a, $4c, $5c, $5e, $38, $3a, $48, $5a,
_nbors_1_3: .dw $36, $3a, $3c, $3e, $40, $42, $44, $46, $02, $14, $26, $4a, $5c, $6e, $80, $92, $48, $4c, $5a, $5e, $36, $3a, $4a, $5c,
_nbors_2_3: .dw $36, $38, $3c, $3e, $40, $42, $44, $46, $04, $16, $28, $4c, $5e, $70, $82, $94, $48, $4a, $5a, $5c, $36, $38, $4c, $5e,
_nbors_3_3: .dw $36, $38, $3a, $3e, $40, $42, $44, $46, $06, $18, $2a, $4e, $60, $72, $84, $96, $50, $52, $62, $64, $3e, $40, $4e, $60,
_nbors_4_3: .dw $36, $38, $3a, $3c, $40, $42, $44, $46, $08, $1a, $2c, $50, $62, $74, $86, $98, $4e, $52, $60, $64, $3c, $40, $50, $62,
_nbors_5_3: .dw $36, $38, $3a, $3c, $3e, $42, $44, $46, $0a, $1c, $2e, $52, $64, $76, $88, $9a, $4e, $50, $60, $62, $3c, $3e, $52, $64,
_nbors_6_3: .dw $36, $38, $3a, $3c, $3e, $40, $44, $46, $0c, $1e, $30, $54, $66, $78, $8a, $9c, $56, $58, $68, $6a, $44, $46, $54, $66,
_nbors_7_3: .dw $36, $38, $3a, $3c, $3e, $40, $42, $46, $0e, $20, $32, $56, $68, $7a, $8c, $9e, $54, $58, $66, $6a, $42, $46, $56, $68,
_nbors_8_3: .dw $36, $38, $3a, $3c, $3e, $40, $42, $44, $10, $22, $34, $58, $6a, $7c, $8e, $a0, $54, $56, $66, $68, $42, $44, $58, $6a,
_nbors_0_4: .dw $4a, $4c, $4e, $50, $52, $54, $56, $58, $00, $12, $24, $36, $5a, $6c, $7e, $90, $38, $3a, $5c, $5e, $36, $4a, $4c, $5a,
_nbors_1_4: .dw $48, $4c, $4e, $50, $52, $54, $56, $58, $02, $14, $26, $38, $5c, $6e, $80, $92, $36, $3a, $5a, $5e, $38, $48, $4c, $5c,
_nbors_2_4: .dw $48, $4a, $4e, $50, $52, $54, $56, $58, $04, $16, $28, $3a, $5e, $70, $82, $94, $36, $38, $5a, $5c, $3a, $48, $4a, $5e,
_nbors_3_4: .dw $48, $4a, $4c, $50, $52, $54, $56, $58, $06, $18, $2a, $3c, $60, $72, $84, $96, $3e, $40, $62, $64, $3c, $50, $52, $60,
_nbors_4_4: .dw $48, $4a, $4c, $4e, $52, $54, $56, $58, $08, $1a, $2c, $3e, $62, $74, $86, $98, $3c, $40, $60, $64, $3e, $4e, $52, $62,
_nbors_5_4: .dw $48, $4a, $4c, $4e, $50, $54, $56, $58, $0a, $1c, $2e, $40, $64, $76, $88, $9a, $3c, $3e, $60, $62, $40, $4e, $50, $64,
_nbors_6_4: .dw $48, $4a, $4c, $4e, $50, $52, $56, $58, $0c, $1e, $30, $42, $66, $78, $8a, $9c, $44, $46, $68, $6a, $42, $56, $58, $66,
_nbors_7_4: .dw $48, $4a, $4c, $4e, $50, $52, $54, $58, $0e, $20, $32, $44, $68, $7a, $8c, $9e, $42, $46, $66, $6a, $44, $54, $58, $68,
_nbors_8_4: .dw $48, $4a, $4c, $4e, $50, $52, $54, $56, $10, $22, $34, $46, $6a, $7c, $8e, $a0, $42, $44, $66, $68, $46, $54, $56, $6a,
_nbors_0_5: .dw $5c, $5e, $60, $62, $64, $66, $68, $6a, $00, $12, $24, $36, $48, $6c, $7e, $90, $38, $3a, $4a, $4c, $36, $48, $5c, $5e,
_nbors_1_5: .dw $5a, $5e, $60, $62, $64, $66, $68, $6a, $02, $14, $26, $38, $4a, $6e, $80, $92, $36, $3a, $48, $4c, $38, $4a, $5a, $5e,
_nbors_2_5: .dw $5a, $5c, $60, $62, $64, $66, $68, $6a, $04, $16, $28, $3a, $4c, $70, $82, $94, $36, $38, $48, $4a, $3a, $4c, $5a, $5c,
_nbors_3_5: .dw $5a, $5c, $5e, $62, $64, $66, $68, $6a, $06, $18, $2a, $3c, $4e, $72, $84, $96, $3e, $40, $50, $52, $3c, $4e, $62, $64,
_nbors_4_5: .dw $5a, $5c, $5e, $60, $64, $66, $68, $6a, $08, $1a, $2c, $3e, $50, $74, $86, $98, $3c, $40, $4e, $52, $3e, $50, $60, $64,
_nbors_5_5: .dw $5a, $5c, $5e, $60, $62, $66, $68, $6a, $0a, $1c, $2e, $40, $52, $76, $88, $9a, $3c, $3e, $4e, $50, $40, $52, $60, $62,
_nbors_6_5: .dw $5a, $5c, $5e, $60, $62, $64, $68, $6a, $0c, $1e, $30, $42, $54, $78, $8a, $9c, $44, $46, $56, $58, $42, $54, $68, $6a,
_nbors_7_5: .dw $5a, $5c, $5e, $60, $62, $64, $66, $6a, $0e, $20, $32, $44, $56, $7a, $8c, $9e, $42, $46, $54, $58, $44, $56, $66, $6a,
_nbors_8_5: .dw $5a, $5c, $5e, $60, $62, $64, $66, $68, $10, $22, $34, $46, $58, $7c, $8e, $a0, $42, $44, $54, $56, $46, $58, $66, $68,
_nbors_0_6: .dw $6e, $70, $72, $74, $76, $78, $7a, $7c, $00, $12, $24, $36, $48, $5a, $7e, $90, $80, $82, $92, $94, $6e, $70, $7e, $90,
_nbors_1_6: .dw $6c, $70, $72, $74, $76, $78, $7a, $7c, $02, $14, $26, $38, $4a, $5c, $80, $92, $7e, $82, $90, $94, $6c, $70, $80, $92,
_nbors_2_6: .dw $6c, $6e, $72, $74, $76, $78, $7a, $7c, $04, $16, $28, $3a, $4c, $5e, $82, $94, $7e, $80, $90, $92, $6c, $6e, $82, $94,
_nbors_3_6: .dw $6c, $6e, $70, $74, $76, $78, $7a, $7c, $06, $18, $2a, $3c, $4e, $60, $84, $96, $86, $88, $98, $9a, $74, $76, $84, $96,
_nbors_4_6: .dw $6c, $6e, $70, $72, $76, $78, $7a, $7c, $08, $1a, $2c, $3e, $50, $62, $86, $98, $84, $88, $96, $9a, $72, $76, $86, $98,
_nbors_5_6: .dw $6c, $6e, $70, $72, $74, $78, $7a, $7c, $0a, $1c, $2e, $40, $52, $64, $88, $9a, $84, $86, $96, $98, $72, $74, $88, $9a,
_nbors_6_6: .dw $6c, $6e, $70, $72, $74, $76, $7a, $7c, $0c, $1e, $30, $42, $54, $66, $8a, $9c, $8c, $8e, $9e, $a0, $7a, $7c, $8a, $9c,
_nbors_7_6: .dw $6c, $6e, $70, $72, $74, $76, $78, $7c, $0e, $20, $32, $44, $56, $68, $8c, $9e, $8a, $8e, $9c, $a0, $78, $7c, $8c, $9e,
_nbors_8_6: .dw $6c, $6e, $70, $72, $74, $76, $78, $7a, $10, $22, $34, $46, $58, $6a, $8e, $a0, $8a, $8c, $9c, $9e, $78, $7a, $8e, $a0,
_nbors_0_7: .dw $80, $82, $84, $86, $88, $8a, $8c, $8e, $00, $12, $24, $36, $48, $5a, $6c, $90, $6e, $70, $92, $94, $6c, $80, $82, $90,
_nbors_1_7: .dw $7e, $82, $84, $86, $88, $8a, $8c, $8e, $02, $14, $26, $38, $4a, $5c, $6e, $92, $6c, $70, $90, $94, $6e, $7e, $82, $92,
_nbors_2_7: .dw $7e, $80, $84, $86, $88, $8a, $8c, $8e, $04, $16, $28, $3a, $4c, $5e, $70, $94, $6c, $6e, $90, $92, $70, $7e, $80, $94,
_nbors_3_7: .dw $7e, $80, $82, $86, $88, $8a, $8c, $8e, $06, $18, $2a, $3c, $4e, $60, $72, $96, $74, $76, $98, $9a, $72, $86, $88, $96,
_nbors_4_7: .dw $7e, $80, $82, $84, $88, $8a, $8c, $8e, $08, $1a, $2c, $3e, $50, $62, $74, $98, $72, $76, $96, $9a, $74, $84, $88, $98,
_nbors_5_7: .dw $7e, $80, $82, $84, $86, $8a, $8c, $8e, $0a, $1c, $2e, $40, $52, $64, $76, $9a, $72, $74, $96, $98, $76, $84, $86, $9a,
_nbors_6_7: .dw $7e, $80, $82, $84, $86, $88, $8c, $8e, $0c, $1e, $30, $42, $54, $66, $78, $9c, $7a, $7c, $9e, $a0, $78, $8c, $8e, $9c,
_nbors_7_7: .dw $7e, $80, $82, $84, $86, $88, $8a, $8e, $0e, $20, $32, $44, $56, $68, $7a, $9e, $78, $7c, $9c, $a0, $7a, $8a, $8e, $9e,
_nbors_8_7: .dw $7e, $80, $82, $84, $86, $88, $8a, $8c, $10, $22, $34, $46, $58, $6a, $7c, $a0, $78, $7a, $9c, $9e, $7c, $8a, $8c, $a0,
_nbors_0_8: .dw $92, $94, $96, $98, $9a, $9c, $9e, $a0, $00, $12, $24, $36, $48, $5a, $6c, $7e, $6e, $70, $80, $82, $6c, $7e, $92, $94,
_nbors_1_8: .dw $90, $94, $96, $98, $9a, $9c, $9e, $a0, $02, $14, $26, $38, $4a, $5c, $6e, $80, $6c, $70, $7e, $82, $6e, $80, $90, $94,
_nbors_2_8: .dw $90, $92, $96, $98, $9a, $9c, $9e, $a0, $04, $16, $28, $3a, $4c, $5e, $70, $82, $6c, $6e, $7e, $80, $70, $82, $90, $92,
_nbors_3_8: .dw $90, $92, $94, $98, $9a, $9c, $9e, $a0, $06, $18, $2a, $3c, $4e, $60, $72, $84, $74, $76, $86, $88, $72, $84, $98, $9a,
_nbors_4_8: .dw $90, $92, $94, $96, $9a, $9c, $9e, $a0, $08, $1a, $2c, $3e, $50, $62, $74, $86, $72, $76, $84, $88, $74, $86, $96, $9a,
_nbors_5_8: .dw $90, $92, $94, $96, $98, $9c, $9e, $a0, $0a, $1c, $2e, $40, $52, $64, $76, $88, $72, $74, $84, $86, $76, $88, $96, $98,
_nbors_6_8: .dw $90, $92, $94, $96, $98, $9a, $9e, $a0, $0c, $1e, $30, $42, $54, $66, $78, $8a, $7a, $7c, $8c, $8e, $78, $8a, $9e, $a0,
_nbors_7_8: .dw $90, $92, $94, $96, $98, $9a, $9c, $a0, $0e, $20, $32, $44, $56, $68, $7a, $8c, $78, $7c, $8a, $8e, $7a, $8c, $9c, $a0,
_nbors_8_8: .dw $90, $92, $94, $96, $98, $9a, $9c, $9e, $10, $22, $34, $46, $58, $6a, $7c, $8e, $78, $7a, $8a, $8c, $7c, $8e, $9c, $9e,
neighbor_list:
.dw _nbors_0_0, _nbors_1_0, _nbors_2_0, _nbors_3_0, _nbors_4_0, _nbors_5_0, _nbors_6_0, _nbors_7_0, _nbors_8_0,
.dw _nbors_0_1, _nbors_1_1, _nbors_2_1, _nbors_3_1, _nbors_4_1, _nbors_5_1, _nbors_6_1, _nbors_7_1, _nbors_8_1,
.dw _nbors_0_2, _nbors_1_2, _nbors_2_2, _nbors_3_2, _nbors_4_2, _nbors_5_2, _nbors_6_2, _nbors_7_2, _nbors_8_2,
.dw _nbors_0_3, _nbors_1_3, _nbors_2_3, _nbors_3_3, _nbors_4_3, _nbors_5_3, _nbors_6_3, _nbors_7_3, _nbors_8_3,
.dw _nbors_0_4, _nbors_1_4, _nbors_2_4, _nbors_3_4, _nbors_4_4, _nbors_5_4, _nbors_6_4, _nbors_7_4, _nbors_8_4,
.dw _nbors_0_5, _nbors_1_5, _nbors_2_5, _nbors_3_5, _nbors_4_5, _nbors_5_5, _nbors_6_5, _nbors_7_5, _nbors_8_5,
.dw _nbors_0_6, _nbors_1_6, _nbors_2_6, _nbors_3_6, _nbors_4_6, _nbors_5_6, _nbors_6_6, _nbors_7_6, _nbors_8_6,
.dw _nbors_0_7, _nbors_1_7, _nbors_2_7, _nbors_3_7, _nbors_4_7, _nbors_5_7, _nbors_6_7, _nbors_7_7, _nbors_8_7,
.dw _nbors_0_8, _nbors_1_8, _nbors_2_8, _nbors_3_8, _nbors_4_8, _nbors_5_8, _nbors_6_8, _nbors_7_8, _nbors_8_8,