summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/lib/shared/case.src
blob: c2fc6c44f1ac958ba202957b8acb088c2b7633e0 (plain)
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
; (c) Copyright 2001-2008 Zilog Inc.
;-------------------------------------------------------------------------
; CASE branch resolution.
;
; Input:
;	Operand1: 
;		  bc : 24 bit address of CASE TABLE
;
;	Operand2: 
;		  de : 24 bit number of entries in table
;
;	Operand3: 
;		  hl : 24 bit value to match in table
; 
; Output:
;	Result:   hl : 24 bit address of case jp to take
; Registers Used:
; 
; 
; Table Format:
;	[24-bit value][JP label (4-bytes)] 7 bytes total
; 
;-------------------------------------------------------------------------
	.def __case
	.assume adl=1

__case		equ 000110h