-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGENMOVE.asm
45 lines (34 loc) · 1.48 KB
/
GENMOVE.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
; Chess
; Copyright (c) 2019-2020 Andrew Davie
SLOT 1 ; this code assembles for bank #1
NEWBANK GENMOVE
MAC HANDLEVEC
.byte {1}MoveReturn
.byte {1}MoveReturn ;byte {1}Handle_WHITE_PAWN ; 1
.byte {1}MoveReturn ;.byte {1}Handle_BLACK_PAWN ; 2
.byte {1}Handle_KNIGHT ; 3
.byte {1}Handle_BISHOP ; 4
.byte {1}Handle_ROOK ; 5
.byte {1}Handle_QUEEN ; 6
.byte {1}Handle_KING ; 7
.byte {1}MoveReturn
.byte {1}Handle_WHITE_PAWN ; 1
.byte {1}Handle_BLACK_PAWN ; 2
.byte {1}MoveReturn;.byte {1}Handle_KNIGHT ; 3
.byte {1}MoveReturn;.byte {1}Handle_BISHOP ; 4
.byte {1}MoveReturn;.byte {1}Handle_ROOK ; 5
.byte {1}MoveReturn;.byte {1}Handle_QUEEN ; 6
.byte {1}MoveReturn;.byte {1}Handle_KING ; 7
ENDM
; .byte 0 ; dummy to prevent page cross access on index 0
HandlerVectorLO HANDLEVEC <
HandlerVectorHI HANDLEVEC >
HandlerVectorBANK HANDLEVEC BANK_
include "Handler_BISHOP.asm"
include "Handler_KING.asm"
include "Handler_QUEEN.asm"
;---------------------------------------------------------------------------------------------------
CHECK_BANK_SIZE "GENMOVE"
;---------------------------------------------------------------------------------------------------
; EOF