ÚVOD | Novinky | 8 Bitů | Příslušenství | Drobnosti | TTL | Kontakt


SAPI-1 | ONDRA | PMI-80 | PMD-85 | klony PMD-85 | klony SM50/40 | PETR | PLAN-80A | IQ151 | TNS | FK-1 | HVĚZDA | SP 830 | PCS 1-QR6000


ZPS | Technické prostředky | Programové vybavení | Dokumentace


8 bity / SAPI-1 / Programové vybavení / IOT / ASM


Výpis programu IOT, asembler


TITLE	PROGRAM IOT

; TEST IO
; PROGRAM PROVEDE POUZE ZAKLADNI FUNKCNI TEST IO
; C 11.12.2023EC

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;NASTAVENI PARAMETRU PRO PREKLAD

SYS	EQU	-1		;-- -1 = CPM
				;\- 00 = MIKOS
MIKOSD	EQU	0		;-1 = MIKOS/D

;-------------------------------
;ADRESACE DESEK

VADR	EQU	38H		;VYCOZI ADRESA PRO BWP-1
ADP1_1	EQU	0D0H		;VYCOZI ADRESA PRO PRVNI ADP-1
ADP1_2	EQU	0E0H		;VYCOZI ADRESA PRO DRUHOU ADP-1

;-------------------------------
;POPIS PROVADENE OPRACE PRI KROKOVANI

POPIS	EQU	-1		;-1 ZAPNUTO

;-------------------------------
;POMOCNE KNIHOVNY IO

TESLA	EQU	-1		;-1 ZAPNUTO
RUS	EQU	-1		;-1 ZAPNUTO

;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	IF	SYS
START	EQU	0100H		;CPM
	ELSE
START	EQU	4400H		;MIKOS
	ENDIF
	ASEG

	IF	SYS
BDOS	EQU	0005H
NEXT	EQU	0		;PREDANI RIZENI SYSTEMU
	ORG	START		;CPM
	ELSE
	IF	MIKOSD
	DB	'<'
	DW	$KONEC
	DW	START
	DB	'>'
SUM	EQU	LOW $KONEC+HIGH $KONEC+LOW START+HIGH START+'>'
	DB	LOW SUM	
	ENDIF
	.PHASE	START		;MIKOS
CI	EQU	0103H		;VSTUP ZNAKU Z CONSOLY
				;VYSTUP: A - ASCII KOD ZNAKU
				;RUSI: PSW
CO	EQU	0109H		;VYSTUP ZNAKU NA CONSOLY
				;vstup: C - ASCII KOD ZNAKU
				;RUSI: PSW
CSTS	EQU	0112H		;TEST KONSOLY
				;VYSTUP: A = 0 NENI ZNAK
				;	 A <> 0 JE ZNAK
				;RUSI: PSW
NEXT	EQU	0139H		;PREDANI RIZENI MONITORU

	JMP	START+3
	ENDIF

;POLE PRO ZPRACOVANI NAPETI, ZAROVNANO NA XX00
POLE2	EQU	HIGH $KONEC*100H+100H

;===============================
;KONSTANTY
CTRLC	EQU	3
CR	EQU	0DH
LF	EQU	0AH
ESC	EQU	27
PPK	EQU	10		;POCET PRUCHODU TESTEM
ZPC	EQU	11110111B	;ZAPIS PREHOD NA CTENI

;NASTAVENI ROZHODOVACI UROVNE PRO KONTROLU LOG. ROZDILU
VELN	EQU	20H		;MAX ROZDILOVE NAPETI PRO LOG. UROVEN "DESITKOVE" V 0.XXV
VELN1	EQU	'2'		;PRVNI PISMENO TEXTU
VELN2	EQU	'0'		;DRUHE PISMENO TEXTU

;===============================
;ADRESY PRO TESTER

PORT1	EQU	VADR
PORT2	EQU	PORT1 + 1
PORT3	EQU	PORT1 + 2
P_REG	EQU	PORT1 + 3

;-------------------------------
;ADRESACE PRO PREVODNIKY ADP-1
;PRVNI ADP-1

ADP1D	EQU	ADP1_1
ADP1R	EQU	ADP1_1+1

;DRUHA ADP-1

ADP2D	EQU	ADP1_2
ADP2R	EQU	ADP1_2+1

;===============================
;KONSTATY PRO POMOCNY REGISTR

;VYBER POVOLOVACICH REGISTRU PRO VYSTUP

POV_OUT	EQU	11000000B

;ZAKLADNI STAV POMOCNEHO REGISTRU

ZSTAV	EQU	01000000B

;PRIPRAVA NA ZAPNUTI NAPAJENI PRO ZIF28
;ROZSVITI ZELENOU SVITIVKU NAD PATICI ZIF28
	
DIL14	EQU	01000100B
DIL16	EQU	01000101B
DIL20	EQU	01000110B
DIL24	EQU	01000111B

;PRIPRAVA NA ZAPNUTI NAPAJENI PRO ZIF16
;ROZSVITI ZELENOU SVITIVKU NAD PATICI ZIF16

DIL5_12	EQU	01001000B
DIL4_12	EQU	01001001B
DIL4_13	EQU	01001010B
DIL5_13	EQU	01001011B

;PRO ZAPNUTI NAPAJENI JE POTREBA PRICIST KONSTANTU

Z_NAP	EQU	00100000B

;===============================
;STRUKTURA IDENTIFIKATORU PARAMETRU

;NASTAVENI VSTUPU A VYSTUPU 
T_VV2	EQU	00001000B	;PORT 1 A 2
T_VV3	EQU	00010000B	;PORT 1, 2 A 3

;PRO ZAPIS S NASLEDNYM CTENIM
T_W1	EQU	00011001B	;PORT 1
T_W2	EQU	00011010B	;PORT 2
T_W12	EQU	00011011B	;PORT 1 A 2
T_W3	EQU	00011100B	;PORT 3
T_W13	EQU	00011101B	;PORT 1 A 3
T_W23	EQU	00011110B	;PORT 2 A 3
T_W123	EQU	00011111B	;PORT 1, 2 A 3

;KONSTANTA V/V PARAMATRU
KVVP	EQU	00011000B

;PRO CTENI
T_I1	EQU	00000001B	;PORT 1
T_I2	EQU	00000010B	;PORT 2
T_I12	EQU	00000011B	;PORT 1 A 2
T_I3	EQU	00000100B	;PORT 3
T_I13	EQU	00000101B	;PORT 1 A 3
T_I23	EQU	00000110B	;PORT 2 A 3
T_I123	EQU	00000111B	;PORT 1, 2 A 3

;KONSTANTA PRO  UPRAVU NA CTENI (AND)
CTENI	EQU	11100111B

;PRO ZAPIS
T_O1	EQU	00001001B	;PORT 1
T_O2	EQU	00001010B	;PORT 2
T_O12	EQU	00001011B	;PORT 1 A 2
T_O3	EQU	00001100B	;PORT 3
T_O13	EQU	00001101B	;PORT 1 A 3
T_O23	EQU	00001110B	;PORT 2 A 3
T_O123	EQU	00001111B	;PORT 1, 2 A 3

;KONSTANTA PRO UPRAVU NA ZAPIS (AND)
ZAPIS	EQU	11101111B

;SKOKY V RAMCI TESTOVACICH DAT
T_GOTO	EQU	00100000B	;PRESKOK (ADRESA)
T_GOSUB	EQU	00100001B	;ODSKOK DO "PODPROGRAMU" (ADRESA)
T_RET	EQU	00100010B	;NAVRAT Z "PODPROGRAMU"
T_PROG	EQU	00100011B	;SKOK DO SROJOVEHO KODU (ADRESA)

;OSTATNI
T_NAP	EQU	00100100B	;NAPAJENI
T_NZ2	EQU	00100101B	;NEZAPOJENE VYNODY PORT 1 A 2
T_NZ3	EQU	00100110B	;NEZAPOJENE VYNODY PORT 1, 2 A 3
T_ZIF14	EQU	00100111B	;POZDRO DIL 14 V ZIF 16 (BEZ PARAMETRU)

T_NIC	EQU	00000000B	;NEJSOU TESTOVACI DATA
T_KONEC	EQU	11111110B	;KONEC TESTOVACI TABULKY

;===============================

BLOKO	EQU	0FFFFH-BLOKP+1	;KONSTANTA PRO ODECTENI BLOKU

;*******************************
;ZACATEK PROGRAMU
;HLAVNI SMICKA

	LXI	SP,STACK	;ZALOZ ZASOBNIK
	CALL	VYSTAV		;VYCHOZI STAV TESTTERU
	XRA	A
	STA	KROKO		;KROKOVANI VYPNUTO
	STA	ZOBRO		;ZOBRAZENI DIL VYPNUTO
	STA	MNAP		;ZOBRAZENI MERENI NAPETI U DIL VYPNUTO
	STA	PAKNAP		;ZRUS PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	STA	KTN		;TRIDENI NAPETI VYPNUTO
	STA	LOG		;KOTROLA TTL LOG UROVNI
	LXI	H,KROKO
	MOV	M,A		;KROKO	KROKOVANI VYPNUTO
	INX	H
	MOV	M,A		;ZOBRO	ZOBRAZENI DIL VYPNUTO
	INX	H
	MOV	M,A		;MNAP	ZOBRAZENI MERENI NAPETI U DIL VYPNUTO
	INX	H
	MOV	M,A		;PAKNAP	ZRUS PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	INX	H
	MOV	M,A		;KTN	TRIDENI NAPETI VYPNUTO
	INX	H
	MOV	M,A		;LOG	KOTROLA TTL LOG UROVNI
	LXI	D,UVOD
	CALL	PRINT		;VYPIS UVOD
	LXI	H,SADYIO
	SHLD	STAB		;POLOHA V TABULCE SKUPIN IO
PRVVYB:	LXI	SP,STACK	;OBNOV ZASOBNIK
	LXI	H,SADYIO
	SHLD	ZTAB
	LXI	D,BLOKO
	LXI	H,SADYIOK
	DAD	D
	SHLD	KTAB
	CALL	CRLF2
	LXI	D,VYB1T
	CALL	PRINT		;PRVNI VYBER, SADA IO
	CALL	CRLF2
	LHLD	STAB		;POLOHO V TABULCE SKUPIN IO
	CALL	VYBER1
	CPI	CR
	SHLD	STAB		;SHOV POLOHU V TABULCE SKUPIN IO
	JZ	VYBIO
KONEC:	CALL	VYSTAV		;VYCHOZI STAV TESTTERU
	CALL	CRLF2
	LXI	D,KONECT	;KONEC PROGRAMU
	CALL	PRINT
	JMP	NEXT		;VRACENI RIZENI MONITORU/SYSTEMU
VYBIO2:	LHLD	PTAB		;OBNOV POZICI V TABULCE
VYBIO:  LXI	D,TEXTP		;DELKA TEXTU
	DAD	D		;PRICTI JI K 
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	XCHG			;PROHOD  A 
	SHLD	ZTAB		;ULOZ ZACATEK TABULKY
	XCHG			;PROHOD  A 
	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	XCHG			;PROHOD  A 
	LXI	D,BLOKO
	DAD	D
	SHLD	KTAB		;ULOZ KONEC TABULKY
	CALL	CRLF2
	LXI	D,VYB2T
	CALL	PRINT		;DRUHY VYBER, IO
	CALL	CRLF2
VYBIO1:	CALL	VYBER
	JMP	VYBIO4
VYBIO3:	CALL	CRLF2
	LXI	D,VYB2T		;OBNOVA VYBERU IO
	CALL	PRINT		;DRUHY VYBER, IO
	CALL	CRLF2
	LHLD	PTAB		;OBNOV POZICI V TABULCE	
	CALL	VYBER1		;OBNOV VYBER IO
VYBIO4:	CPI	ESC
	JZ	PRVVYB		;NAVRAT NA VYBER SKUPINY IO
	CPI	CR
	JZ	TEST		;JDEM TESTOVAT
	JMP	VYBIO1

;*******************************
;TEST IO
TEST:	SHLD	PTAB		;ULOZ POLOHU V TABULCE
	CALL	CRLF		;ODRADKUJ
	LXI	D,TEXTP		;DELKA TEXTU
	DAD	D		;PRICTI JI K 
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	PUSH	D		;SCHOV SI ADRESU POLOHY POPISU NAPAJENI IO
	INX	D
	INX	D		;POCATEK POPISU IO
	CALL	PRINT		;VYPIS POPIS IO
	CALL	CRLF		;ODRADKUJ
	POP	D		;OBNOV SI ADRESU POLOHY POPISU NAPAJENI IO
	PUSH	H		;SCHOV SI UKAZOVATKO
	XCHG			;ADRESU POPISU NAPAJENI IO DO 
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	CALL	PRINT		;VYPIS POPISU NAPAJENI IO
	POP	H		;OBNOV UKAZOVATKO
	CALL	CRLF2
	LXI	D,POKT
	CALL	PRINT		;POKRACOVAT?
TEST1:	CALL	CTIZ		;CTI KONZOLI
	CPI	ESC
	JZ	VYBIO3		;NAVRAT NA VYBER IO
	CPI	CR
	JNZ	TEST1		;SPUST TEST

;===============================
;VLASTNI TEST
	INX	H		;ADRESA TEST TABULKY
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE (V  ADRESA TEST TABULKY)
	MVI	A,PPK		;POCET PRUCHODU TESTEM
	STA	PP		;A ULOZ JE
	LXI	H,0		;VYCHOZI STAV NEZAPOJENYCH VIVODU PRO ZOBRAZOVANI
	SHLD	NCZ
	SHLD	NCZ+2		;+ VYCHOZI STAV PRO ZIF16 PRO ZOBRAZOVANI
	SHLD	NCZ+3		;+ VYCHOZI STAV PRO ERR PRO ZOBRAZOVANI
	DCX	H
	SHLD	VDAT		;VYCHOZI NASTAVENI VYSTUPNICH DAT PRO ZOBRAZENI
	SHLD	VDAT+1

	IF	POPIS

	LXI	H,TXNDEF
	SHLD	OPR		;VYCHOZI NASTAVENI PRO TEXT PROVEDENE OPERACE

	ENDIF

	XCHG			;ADRESA TEST TABULKY DO 
	SHLD	TTAB		;ULOZ AKTUALNI TEST TABULKU
	JMP	TEST3
TESTHS:	INX	H		;DALSI ADRESA V TABULCE
;	CALL	WAIT24		;CHVILI POCKEJ MAME KB-01 TJ. 2M KABLU	
TEST3:	LDA	KROKO		;NACTI PRIZNAK KROKOVANI
	CPI	01
	JNZ	TEST8		;NENI KROKOVANI

	IF	POPIS

	XCHG
	LHLD	OPR		;NACTI ADRESU TEXTU PROVEDENE OPERACE
	XCHG
	CALL	PRINT		;VYTISNI TEXT OPERACE

	ENDIF

	PUSH	H
	CALL	HADR		;TISK OBSAHU 
	CALL	CTIZ		;CTI ZNAK Z KOZOL
	POP	H
TEST8:	LDA	VVP		;TEST NA V/V PARAMETR
	ANA	A
	JZ	TEST7		;NENI DRUHA FAZE V/V PARAMETR
	LHLD	WZTAB		;OBNOV ADRESU V TEST TABULCE
TEST7:	MOV	A,M		;NACTI PARAMETR PRO TEST
	MOV	B,A		;A ULOZ DO 
	ANI	11111000B	;JEN HORNICH 5 BITU
	CPI	KVVP		;PARAMETR V/V PARAMETRU
	JNZ	TEST5		;NENI V/v PARAMETR - JDEM HLEDAT
	LDA	VVP		;STAV V/V PARAMETR
	ANA	A
	JZ	TEST6		;PRVNI FAZE V/V PARAMETRU
	XRA	A		;DRUHA FAZE V/V PARAMATRU
	STA	VVP		;VYCHOZI STAV PRO V/V PARAMETR
	MOV	A,B
	ANI	CTENI		;VYTVOR CTENI
	MOV	B,A		;VRAT DO 
	LXI	D,TABTT		;PRESKOCI ZAPIS
	JMP	TEST4

TEST6:	INR	A
	STA	VVP		;ULOZ ZE ZAPISUJEM
	SHLD	WZTAB		;ULOZ ADRESU V TEST TABULCE
	MOV	A,B		;
	ANI	ZAPIS		;JEN SPODNI 3 BITY - BUDE ZAPIS
	MOV	B,A		;VRAT DO 

;-------------------------------
;PROHLEDA TABULKU A SKOCI NA ADRSU
;V  JE CO SE HLEDA
;ZACHOVA 

TEST5:	LXI	D,TABTST	;ADRESA POCATKU DABULKY
TEST4:	PUSH	H		;SCHOV ADRESU V TEST TABULCE
	XCHG			;ADRESU TABULKY DO 	
PROHL:	MOV	A,M		;CTI PRIKAZ
	CMP	B
	JZ	PROHU		;NASEL PRIKAZ	
	CPI	-1		;KONEC TABULKY
	JZ	PROHK
	INX	H		;HL=HL+3 / +5 ->
	INX	H		;DALSI POZICE
	INX	H

	IF	POPIS

	INX	H
	INX	H

	ENDIF

	JMP	PROHL		;DALSI PRIKAZ V TABULCE
PROHU:	INX	H		;VYBER ADRESU Z TABULKY

	IF	POPIS

	MOV	E,M		;DO 
	INX	H
	MOV	D,M		;DALSI PULKU DO 
	XCHG
	SHLD	OPR		;ULOZ ADRESU TEXTU OPERACE
	XCHG
	INX	H		;VYBER ADRESU Z TABULKY

	ENDIF

	MOV	E,M		;DO 
	INX	H
	MOV	D,M		;DALSI PULKU DO 
	XCHG			;ADRESU PROGRAMU DO HL
	XTHL			;OBNOV  A ADRESU PROGAMU NA ZASOBNIK
	RET			;SKOK DO PROGRAMU -> JMP

PROHK:	POP	H		;OBNOV ADRESU V TEST TABULCE
	LXI	D,NEZKO		;NEZNAMI KOD
VYSTV1:	CALL	PRINT
	CALL	CRLF
	CALL	HADR		;TISK OBSAHU 
	CALL	CRLF
	MOV	A,M
	CALL	DBYT
VYSTV3:	LDA	KROKO		;NACTI PRIZNAK KROKOVANI
	CPI	01
	JNZ	VYSTV2		;NENI KROKOVANI
	CALL	CTIZ		;CTI ZNAK Z KOZOLI
VYSTV2:	CALL	VYSTAV		;VYCHOZI STAV TESTTERU
	JMP	VYBIO3		;NOVY VYBER

;-------------------------------
;TABULKA PRIKAZU V TESTOVACI TABULCE

	IF	POPIS

TABTST:	DB	T_O12
	DW	TXO12		;ADRESA TEXTU OPERACE
	DW	TO12		;VYSTAVENI DAT NA PORT 12
	DB	T_O123
	DW	TXO123
	DW	TO123		;VYSTAVENI DAT NA PORT 123
	DB	T_O1
	DW	TXO1
	DW	TO1		;VYSTAVENI DAT NA PORT 1
	DB	T_O2
	DW	TXO2
	DW	TO2		;VYSTAVENI DAT NA PORT 2
	DB	T_O3
	DW	TXO3
	DW	TO3		;VYSTAVENI DAT NA PORT 3
	DB	T_O13
	DW	TXO13
	DW	TO13		;VYSTAVENI DAT NA PORT 13
	DB	T_O23
	DW	TXO23
	DW	TO23		;VYSTAVENI DAT NA PORT 23
TABTT:	DB	T_I12
	DW	TXI12
	DW	TI12		;POROVNANI DAT Z PORTU 12
	DB	T_I123
	DW	TXI123
	DW	TI123		;POROVNANI DAT Z PORTU 123
	DB	T_I1
	DW	TXI1
	DW	TI1		;POROVNANI DAT Z PORTU 1
	DB	T_I2
	DW	TXI2
	DW	TI2		;POROVNANI DAT Z PORTU 2
	DB	T_I3
	DW	TXI3
	DW	TI3		;POROVNANI DAT Z PORTU 3
	DB	T_I13
	DW	TXI13
	DW	TI13		;POROVNANI DAT Z PORTU 13
	DB	T_I23
	DW	TXI23
	DW	TI23		;POROVNANI DAT Z PORTU 23
	DB	T_VV2
	DW	TXVV2
	DW	TVV2		;NASTAV V/V MAX DIL 16
	DB	T_VV3
	DW	TXVV3
	DW	TVV3		;NASTAV V/V MAX DIL 24
	DB	T_NAP
	DW	TXNAP
	DW	TNAP		;NASTAV, ZAPNI NAPAJENI
	DB	T_GOTO
	DW	TXGOTO
	DW	TGOTO		;SKOK V TABULCE
	DB	T_GOSUB
	DW	TXGOSUB
	DW	TGOSUB		;PODPROGRAM V DATECH
	DB	T_RET
	DW	TXRET
	DW	TRET		;NAVRAT Z DATOVEHO PODPROGRAMU
	DB	T_PROG
	DW	TXPROG
	DW	TPROG		;SKOK DO STROJOVEHO KODU
	DB	T_NZ2
	DW	TXNZ2
	DW	TNZ2		;NEZAPONENE VYVODY PRO ZOBRAZENI DIL MAX DIL 16
	DB	T_NZ3
	DW	TXNZ3
	DW	TNZ3		;NEZAPONENE VYVODY PRO ZOBRAZENI DIL MAX DIL 24
	DB	T_ZIF14
	DW	TXZIF14
	DW	TZIF14		;PRIZNAK POUZDRA DIL14 V ZIF16
	DB	T_NIC
	DW	TXNDEF
	DW	TNIC		;NENI TESTOVACI TABULKA
	DB	T_KONEC
	DW	TXNDEF
	DW	TKONEC		;KONEC TESTU
	DB	-1		;KONEC TABULKY

	ELSE

TABTST:	DB	T_O12
	DW	TO12		;VYSTAVENI DAT NA PORT 12
	DB	T_O123
	DW	TO123		;VYSTAVENI DAT NA PORT 123
	DB	T_O1
	DW	TO1		;VYSTAVENI DAT NA PORT 1
	DB	T_O2
	DW	TO2		;VYSTAVENI DAT NA PORT 2
	DB	T_O3
	DW	TO3		;VYSTAVENI DAT NA PORT 3
	DB	T_O13
	DW	TO13		;VYSTAVENI DAT NA PORT 13
	DB	T_O23
	DW	TO23		;VYSTAVENI DAT NA PORT 23
TABTT:	DB	T_I12
	DW	TI12		;POROVNANI DAT Z PORTU 12
	DB	T_I123
	DW	TI123		;POROVNANI DAT Z PORTU 123
	DB	T_I1
	DW	TI1		;POROVNANI DAT Z PORTU 1
	DB	T_I2
	DW	TI2		;POROVNANI DAT Z PORTU 2
	DB	T_I3
	DW	TI3		;POROVNANI DAT Z PORTU 3
	DB	T_I13
	DW	TI13		;POROVNANI DAT Z PORTU 13
	DB	T_I23
	DW	TI23		;POROVNANI DAT Z PORTU 23
	DB	T_VV2
	DW	TVV2		;NASTAV V/V MAX DIL 16
	DB	T_VV3
	DW	TVV3		;NASTAV V/V MAX DIL 24
	DB	T_NAP
	DW	TNAP		;NASTAV, ZAPNI NAPAJENI
	DB	T_GOTO
	DW	TGOTO		;SKOK V TABULCE
	DB	T_GOSUB
	DW	TGOSUB		;PODPROGRAM V DATECH
	DB	T_RET
	DW	TRET		;NAVRAT Z DATOVEHO PODPROGRAMU
	DB	T_PROG
	DW	TPROG		;SKOK DO STROJOVEHO KODU
	DB	T_NZ2
	DW	TNZ2		;NEZAPONENE VYVODY PRO ZOBRAZENI DIL MAX DIL 16
	DB	T_NZ3
	DW	TNZ3		;NEZAPONENE VYVODY PRO ZOBRAZENI DIL MAX DIL 24
	DB	T_ZIF14
	DW	TZIF14		;PRIZNAK POUZDRA DIL14 V ZIF16
	DB	T_NIC
	DW	TNIC		;NENI TESTOVACI TABULKA
	DB	T_KONEC
	DW	TKONEC		;KONEC TESTU
	DB	-1		;KONEC TABULKY

	ENDIF

;===============================
;NASTAVENI V/V PRO MAX DIL 16
TVV2:	CALL	TVV2P
TVVN:	LDA	ANAP		;STAV NAPAJENI
	MVI	B,ZSTAV		;JESTE ZAKLADNI STAV P. REG.
	ORA	B
	OUT	P_REG		;ZAPIS DO POM. REGISTRU
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
;-------------------------------
TVV2P:	MVI	B,POV_OUT	;VYBER POV. REG. PRO VYSTUP
	LDA	ANAP
	ORA	B		;A PRICI AKTUALNI NAPAJENI
	OUT	P_REG		;ZAPIS DO POM. REGISTRU
	INX	H
	MOV	A,M
	OUT	PORT1
	STA	VVZ		;ULOZ PRO ZOBRAZENI PRO DIL CO JE VSTUP A VYSTUP PORT 1
	INX	H
	MOV	A,M
	OUT	PORT2
	STA	VVZ+1		;ULOZ PRO ZOBRAZENI PRO DIL CO JE VSTUP A VYSTUP PORT 2
	RET
;===============================
;NASTAVENI V/V PRO MAX DIL 24
TVV3:	CALL	TVV2P
	INX	H
	MOV	A,M
	OUT	PORT3
	STA	VVZ+2		;ULOZ PRO ZOBRAZENI PRO DIL CO JE VSTUP A VYSTUP PORT 3
	JMP	TVVN		;NASTAV AKTUALNI NAPAJENI

;===============================
;NASTAVENI NEZAPOJENYCH VYVODU PRO ZOBRAZENI DIL
TNZ2:	CALL	TNZ2A
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
TNZ2A:	INX	H
	MOV	A,M
	STA	NCZ		;ULOZ NEZAPOJENE VYVODY PRO ZOBRAZENI DIL NA PORTU 1
	INX	H
	MOV	A,M
	STA	NCZ+1		;ULOZ NEZAPOJENE VYVODY PRO ZOBRAZENI DIL NA PORTU 2
	RET
;===============================
TNZ3:	CALL	TNZ2A
	INX	H
	MOV	A,M
	STA	NCZ+2		;ULOZ NEZAPOJENE VYVODY PRO ZOBRAZENI DIL NA PORTU 3
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY

;===============================
;NASTAV PRIZNAK POUZDRA DIL14 V ZIF16
TZIF14:	MVI	A,1
	STA	ZIF14		;ULOZ PRIZNAK POUZDRA DIL14 V ZIF16
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY

;===============================
;NASTAVENI A ZAPNUTI NAPETI
TNAP:	INX	H
	LDA	PP		;POCET PRUCHODU
	CPI	PPK		;JE TO PRVNI PRUCHOD
	JNZ	TNAP3		;JINAK POKRACUJEM
	MOV	A,M
	STA	ANAP		;ULOZ PRO POZDEJI
	STA	DIL		;ULOZ PRO ZOBRAZENI DIL NAPAJENI
	OUT	P_REG		;ROZNI LED
	CALL	CRLF2
	LXI	D,ZALOZT
	CALL	PRINT		;ZALOZ IO
TNAP2:	CALL	CTIZ
	CPI	ESC
	JZ	VYBIO3		;NAVRAT NA VYBER IO
	CPI	CR
	JNZ	TNAP2		;CEKAME NA "CR"
	MVI	B,Z_NAP		;PRIZNAK PRO ZAPNUTI NAPAJANI
	LDA	ANAP		;JAKE NAPAJENI
	ORA	B
	STA	ANAP		;ULOZ STAV NAPAJENI
	OUT	P_REG		;ZAPNI NAPAJENI
TNAP3:	CALL	WAIT24		;POCKEJ 24mS
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY

;===============================
;BLOK PRO VYSTAVEVANI DAT NA PORT
TO1:	CALL	TO1P
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
TO12:	CALL	TO1P
TO2:	CALL	TO2P
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
TO13:	CALL	TO1P
	CALL	TO3P
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
TO123:	CALL	TO1P
TO23:	CALL	TO2P
TO3:	CALL	TO3P
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY
TO1P:	INX	H		;VYSTAVENI DAT NA PORT1
	MOV	A,M
	OUT	PORT1
	STA	VDAT		;ULOZ PRO ZOBRAZENI DIL Z PORTU 1
	RET
TO2P:	INX	H		;VYSTAVENI DAT NA PORT2
	MOV	A,M
	OUT	PORT2
	STA	VDAT+1		;ULOZ PRO ZOBRAZENI DIL Z PORTU 2
	RET
TO3P:	INX	H		;VYSTAVENI DAT NA PORT3
	MOV	A,M
	OUT	PORT3
	STA	VDAT+2		;ULOZ PRO ZOBRAZENI DIL Z PORTU 3
	RET

;===============================
;BLOK PRO POROVNANI DAT Z PORTU
TI1:	CALL	TI1P
	JMP	TI
TI12:	CALL	TI1P
TI2:	CALL	TI2P
	JMP	TI
TI13:	CALL	TI1P
	CALL	TI3P
	JMP	TI
TI123:	CALL	TI1P
TI23:	CALL	TI2P
TI3:	CALL	TI3P
TI:	LDA	ZOBRO		;PRIZNAK ZOBRAZOVANI DIL
	CPI	01
	CZ	ZDIL		;SKOK POKUT SE ZOBRAZUJE DIL
	LDA	ERR		;PRIZNAK CHYBY
	ANA	A
	CNZ	ZDIL		;JE-LI TAK ZOBRAZ DIL
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY

TI1P:	IN	PORT1		;POROVNANI DAT Z PORTU 1
	MOV	B,A		;SCHOV DATA Z PORTU
	STA	CDAT		;ULOZ CTENA DATA Z PORTU 1 PRO ZOBRAZENI DIL
	INX	H
	MOV	A,M
	STA	VDAT		;ULOZ PRO ZOBRAZENI DIL Z PORTU 1
	XRA	B		;POROVNEJ
	RZ
	LXI	D,ERR1T
	JMP	TIXP

TI2P:	IN	PORT2		;POROVNANI DAT Z PORTU 2
	MOV	B,A		;SCHOV DATA Z PORTU
	STA	CDAT+1		;ULOZ CTENA DATA Z PORTU 2 PRO ZOBRAZENI DIL
	INX	H
	MOV	A,M
	STA	VDAT+1		;ULOZ PRO ZOBRAZENI DIL Z PORTU 2
	XRA	B		;POROVNEJ
	RZ
	LXI	D,ERR2T
	JMP	TIXP

TI3P:	IN	PORT3		;POROVNANI DAT Z PORTU 3
	MOV	B,A		;SCHOV DATA Z PORTU
	STA	CDAT+2		;ULOZ CTENA DATA Z PORTU 3 PRO ZOBRAZENI DIL
	INX	H
	MOV	A,M
	STA	VDAT+2		;ULOZ PRO ZOBRAZENI DIL Z PORTU 3
	XRA	B		;POROVNEJ
	RZ
	LXI	D,ERR3T
TIXP:	LDA	ERR		;PRIZNAK CHYBY
	ANA	A
	RNZ			;JE-LI TAK SE VRAT
	SHLD	HLERR		;ULOZ  A  PRO ZOBRAZENI CHYBZ
	XCHG
	SHLD	DEERR
	XCHG			;VRAT DO PUVODNIHO STAVU
	MOV	A,B
	STA	PP		;ULOZ DATA Z PORTU
	MVI	A,1
	STA	ERR		;ULOZ PRIZNAK CHIBY
	RET

;===============================
;SKOK V TABULCE
TGOTO:	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	XCHG			;PROHOD  A  
	JMP	TEST3		;POKRACUJ V TESTU

;===============================
;NENI TESTOVACI TABULKA
TNIC:	CALL	CRLF2
	LXI	D,TNICT
	JMP	VYSTV1		;NA VYBER IO

;===============================
;KONEC TABULKY PRO TEST
TKONEC:	MVI	A,'.'
	CALL	COA		;ZA PRUCHOD UDELA TECKU
	LDA	KROKO		;NACTI PRIZNAK KROKOVANI
	CPI	01
	JNZ	TKONEC1		;NENI KROKOVANI
	CALL	CTIZ		;CTI ZNAK Z KOZOLI
	LDA	KROKO		;NACTI PRIZNAK KROKOVANI
	RLC			;VYPNI DOCASNE KROKOVANI
	STA	KROKO		;ULOZ PRIZNAK KROKOVANI
TKONEC1:LDA	ZOBRO		;NACTI PRIZNAK ZOBRAZOVANI DIL
	CPI	01
	JNZ	TKONEC2		;NENI ZOBRAZOVANI DIL
	RLC			;VYPNI  DOCASNE ZOBRAZOVANI DIL
	STA	ZOBRO		;ULOZ PRIZNAK ZOBRAZOVANI DIL
TKONEC2:LDA	PP		;NACTI POCET PRUCHODU
	DCR	A		;POCET PRUCHODU -1
	STA	PP		;ULOZ POCET PRUCHODU
	JZ	FKONEC		;JE KONEC TESTU
	LHLD	TTAB		;OBNOV AKTUALNI TEST TABULKU
	JMP	TEST3		;POKRACUJ V TESTU
FKONEC:	LDA	KROKO		;NACTI PRIZNAK KROKOVANI
	CPI	02
	JNZ	TKONEC3		;NENI DACASNE VYPNUTE KROKOVANI
	RRC			;ZAPNI DACASNE VYPNUTE KROKOVANI
	STA	KROKO		;ULOZ PRIZNAK KROKOVANI
TKONEC3:LDA	ZOBRO		;NACTI PRIZNAK ZOBRAZOVANI DIL
	CPI	02
	JNZ	TKONEC4		;NENI DACASNE VYPNUTE ZOBRAZOVANI DIL
	RRC			;ZAPNI DACASNE VYPNUTE ZOBRAZOVANI DIL
	STA	ZOBRO		;ULOZ PRIZNAK ZOBRAZOVANI DIL
TKONEC4:CALL	CRLF2
	LXI	D,TKT		;TEXT USPESNEHO KONCE TESTU
	CALL	PRINT
	JMP	VYSTV2		;NA VYBER IO

;===============================
;SKOK DO PODPROGRAMU V TABULCE
;JE MOZNA JEN JEDNA UROVEN
TGOSUB:	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE
	SHLD	AGOSUB		;ULOZ ADRESU PRO NAVRAT
	XCHG			;PROHOD  A 
	JMP	TEST3		;POKRACUJ V TESTU

;===============================
;NAVRAT Z PODPOGRAMU V TABUKCU
TRET:	LHLD	AGOSUB		;OBNOV ADRESU V TABULCE
	JMP	TESTHS		;NAVRAT DO HLAVI SMICKY

;===============================
;SKOK DO STROJOVEHO KODU
;NAVRAT ZE STROJOVEHO KODU SE PROVEDE STANDARTNE INSTRUKCI RET
TPROG:	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE ADRESY STOJOVEHO PODPROGRAMU
	PUSH	H		;SCHOV ADRESU V TESTOVACI TABULCE
	LXI	H,TPROGR	;NAVRATOVA ADRESA
	PUSH	H		;A ULOZ JI
	XCHG			;PROHOD  A 
	PCHL			;SKOC DO SROJOVEHO KODU
TPROGR:	POP	H		;OBNOV ADRESU V TESTOVACI TABULCE
	JMP	TESTHS		;NAVRAT DO HLAVNI PROGRAMOVE SMYCKY

;*******************************
;PODPROGRAMY
;*******************************

VYBER:	LHLD	ZTAB		;POCATEKU TABULKY
VYBER1:	MVI	A,CR
	CALL	COA		;NA ZACATEK RADKU
	MOV	D,H
	MOV	E,L		; DO  
	CALL	PRINT		;ZOBRAZ TEXT
VYBER2:	CALL	CTIZ		;CTI ZNAK Z KOZOLI
	CPI	'>'
	JZ	DALSI		;DALSI POLOZKA
	CPI	'<'
	JZ	KZP		;PREDCHOZI POLOZKA
	CPI	CR
	RZ
	CPI	ESC		;NAVRAT O UROVEN VISE
	RZ
	CPI	'#'
	CZ	NADP1		;NASTAVENI PREVODNIKU ADP-1
	JMP	VYBER1

DALSI:	XCHG			;PROHOD  A 
	LXI	H,KTAB		;ADRESA PROMNENE KONECE TABULKY
	INX	H		;ADRESA VYSSIHO BYTE
	MOV	A,M		;NACTI VYSSI BYTE
	CMP	D		;POROVNEJ S AKTUALNIM VYSSI BYTE	
	JNZ	DALSI1
	DCX	H		;ADRESA NIZSIHO BYTE
	MOV	A,M		;NACTI NIZSSI BYTE
	CMP	E		;POVNEJ S AKTUALNIM NIZSSI BYTE	
	JNZ	DALSI1
	LHLD	ZTAB		;POKUT SHOTA TAK NA ZACATEK TABULKY
	JMP	VYBER1		;DALSI VYBER
DALSI1:	XCHG			;PROHOD  A 
	LXI	D,BLOKP
	DAD	D		;PRICTI DELKU TABULKY
	JMP	VYBER1		;DALSI VYBER

KZP:	XCHG			;PROHOD  A 
	LXI	H,ZTAB		;ADRESA PROMNENE ZACATKU TABULKY
	INX	H		;ADRESA VYSSIHO BYTE
	MOV	A,M		;NACTI VYSSI BYTE
	CMP	D		;POVNEJ S AKTUALNIM VYSSI BYTE	
	JNZ	KZP1
	DCX	H		;ADRESA NIZSIHO BYTE
	MOV	A,M		;NACTI NIZSSI BYTE
	CMP	E		;POVNEJ S AKTUALNIM NIZSSI BYTE	
	JNZ	KZP1
	LHLD	KTAB		;POKUT SHOTA TAK NA KONEC TABULKY
	JMP	VYBER1		;DALSI VYBER
KZP1:   XCHG			;PROHOD  A 
	LXI	D,BLOKO
	DAD	D		;ODECTI DELKU TABULKY
	JMP	VYBER1		;DALSI VYBER

HELP:	LXI	D,HELPT
	CALL	PRINT
CRLF2:
NAVRAT:	CALL	CRLF

;===============================
CRLF:	LXI	D,CRLFT

;===============================
	IF	SYS		;CPM

PRINT:	MVI	C,9
BDOS1:	PUSH	B
	PUSH	H
	CALL	BDOS
	POP	H
	POP	B
	RET

	ELSE			;MIKOS

PRINT:	LDAX	D		;NACTI DATA
	CPI	'$'		;TEST KONCE TEXTU
	RZ			;JE-LI TAK NAVRAT
	CPI	'a'-1
	JC	PRINT1
	CPI	'z'+1
	JNC	PRINT1
	ANI	11011111B	;PREVED NA VELKA PISMENA
PRINT1:	MOV	C,A
	CALL	CO		;VYTISKNI ZNAK Z REG. 'C'
	INX	D		;ADRESA DAT +1
	JMP	PRINT

	ENDIF	

;===============================
	IF	SYS		;CPM

CTIZ:	MVI	C,6
	MVI	E,0FFH		;CHCEME ZNAK
	CALL	BDOS1
	ANA	A
	JZ	CTIZ		;ZADNY NENI

	ELSE			;MIKOS

CTIZ:	CALL	CI

	ENDIF

	CPI	CTRLC
	JZ	KONEC		;^C - KONEC PROGRAMU
	CPI	'?'
	JZ	HELP		;ZOBRAZ NAPOVDU
	CPI	'K'
	JZ	KROK		;ZAPNE / VYPNE KROKOVANI
	CPI	'k'
	JZ	KROK		;ZAPNE / VYPNE KROKOVANI
	CPI	'Z'
	JZ	NDIL		;ZAPNE / VYPNE ZOBRAZENI DIL
	CPI	'z'
	JZ	NDIL		;ZAPNE / VYPNE ZOBRAZENI DIL
	CPI	'M'
	JZ	ZDNAP		;ZAPNE / VYPNE MERENI NAPETI PRO ZOBRAZENI DIL
	CPI	'm'
	JZ	ZDNAP		;ZAPNE / VYPNE MERENI NAPETI PRO ZOBRAZENI DIL
	CPI	'T'
	JZ	ZTN		;ZAPNE / VYPNE TRIDENI NAPETI
	CPI	't'
	JZ	ZTN		;ZAPNE / VYPNE TRIDENI NAPETI
	CPI	'L'
	JZ	LOGN		;NASTAVI KONTROLNI LOG. UROVNE
	CPI	'l'
	JZ	LOGN		;NASTAVI KONTROLNI LOG. UROVNE
	CPI	'*'
	JZ	STAVY		;ZOBRAZI STAVY PREPINACU
	RET

;===============================
;NASTAVENI POCATECNICH PARAMETRU
VYSTAV:	XRA	A
	OUT	P_REG		;TETESR DO VYCHOZIHO STAVU
	STA	ANAP		;I STAV NAPAJENI
	STA	VVP		;VYCHOZI STAV PRO V/V PARAMETR
	RET

;===============================
WAIT24:	LXI	D,2000D		;24 MILI SEKUND

;===============================
;CEKACI SMYCKA
WAIT:	DCX	D		;DE*12us+5us
	MOV	A,D
	ORA	E
	JNZ	WAIT		;DOKUD NENI DE=0
	RET
;===============================
;TISK OBSAHU  V HEXA KODU
HADR:	MOV	A,H
	CALL	DBYT		;VYPISE H
	MOV	A,L

;-------------------------------
DBYT:	PUSH	PSW		;VYPISE BYTE V REG. A
	CALL	HBYTE
	CALL	COA
	POP	PSW
	CALL	LBYTE		;VYPISE DOLNI NIBBLE REG A
	JMP	COA

;-------------------------------
HBYTE:	RRC
	RRC
	RRC
	RRC
LBYTE:	ANI	0FH
	ADI	90H		;PREVOD HEX-->ASCII
	DAA
	ACI	'@'
	DAA
	RET

;-------------------------------
;TISK ZNAKU Z REG. <A>
COA:	PUSH	H
	PUSH	D
	PUSH	B

	IF	SYS		;CPM

	MOV	E,A
	MVI	C,2
	CALL	BDOS		;VYPIS ZNAKU Z REG. 'E'

	ELSE			;MIKOS

	MOV	C,A
	CALL	CO		;VYPIS ZNAKU Z REG. 'C'

	ENDIF

	POP	B
	POP	D
	POP	H
	RET

;===============================
;TISK REGISRTRU "A" V BIN. TVARU
DBIN:	MOV	D,A		;SCHOV DATA
	MVI	A,' '		;MEZERA
	CALL	COA		;TISK MEZERY
	MVI	E,8		;MAME 8 BITU
DBIN2:	MOV	A,D		;OBNOV DATA
	RAL			;DALSI BIT DO "CY"
	MOV	D,A		;SCHOV DATA
	MVI	A,'1'		;NASTAV 1
	JC	DBIN1		;JDEM TISKNOUT 1
	DCR	A		;BUDE 0
DBIN1:	CALL	COA		;VYTISKNI ZNAK
	DCR	E		;POCITALO -1
	JNZ	DBIN2		;ZNOVU
	RET
;===============================
;ZAPNE / VYPNE KROKOVANI
KROK:	CALL	CRLF2
	LDA	KROKO		;NACTI PRIZNAK KROKO
	ANA	A
	JZ	KROK1
	DCR	A		;VYPNI KROKOVANI
	STA	KROKO		;ULOZ PRIZNAK KROKO
	LXI	D,KROKT
	CALL	PRINT
	LXI	D,VYPT
	JMP	PRINT

KROK1:	INR	A		;ZAPNI KROKOVANI
	STA	KROKO		;ULOZ PRIZNAK KROKO
	LXI	D,KROKT
	CALL	PRINT
	LXI	D,ZAPT
	JMP	PRINT
;===============================
;ZAPNE / VYPNE ZOBRAZOVANI DIL
NDIL:	CALL	CRLF2
	LDA	ZOBRO		;NACTI PRIZNAK ZOBRO
	ANA	A
	JZ	NDIL1
	DCR	A		;VYPNI ZOBRAZOVANI DIL
	STA	ZOBRO		;ULOZ PRIZNAK ZOBRO
	LXI	D,ZOBRT
	CALL	PRINT
	LXI	D,VYPT
	JMP	PRINT

NDIL1:	INR	A		;ZAPNI ZOBRAZOVANI DIL
	STA	ZOBRO		;ULOZ PRIZNAK KROKO
	LXI	D,ZOBRT
	CALL	PRINT
	LXI	D,ZAPT
	JMP	PRINT
;===============================
;ZAPNE / VYPNE ZOBRAZOVANI NAPETI U DIL
ZDNAP:	CALL	CRLF2
	LDA	MNAP		;NACTI PRIZNAK MNAP
	ANA	A
	JZ	ZDNAP1
ZDNAP2:	DCR	A		;VYPNI ZOBRAZOVANI NAPETI U DIL
	STA	MNAP		;ULOZ PRIZNAK MNAP
	LXI	D,MNAPT
	CALL	PRINT
	LXI	D,VYPT
	JMP	PRINT

ZDNAP1:	CALL	PADP1		;TEST NA PRITOMNOST PREVODNIKU ADP-1
	ANA	A
	JNZ	ZDNAP2		;JE-LI CHYBA VYPNI ZOBRAZOVANI
	INR	A		;ZAPNI ZOBRAZOVANI NAPETI U DIL
	STA	MNAP		;ULOZ PRIZNAK MNAP
	LXI	D,MNAPT
	CALL	PRINT
	LXI	D,ZAPT
	JMP	PRINT
;===============================
;ZAPNE / VYPNE TRIDENI NAPETI
ZTN:	CALL	CRLF2
	LDA	KTN		;NACTI PRIZNAK TRIDENI NAPETI
	ANA	A
	JZ	ZTN1
	DCR	A		;VYPNI TRIDENI NAPETI
	STA	KTN		;ULOZ PRIZNAK KTN
	LXI	D,ZTNT
	CALL	PRINT
	LXI	D,VYPT
	JMP	PRINT

ZTN1:	INR	A		;ZAPNI TRIDENI NAPETI
	STA	KTN		;ULOZ PRIZNAK KTN
	LXI	D,ZTNT
	CALL	PRINT
	LXI	D,ZAPT
	JMP	PRINT
;===============================
;NASTAVI LOG. UROVNE PRO KOTROLU TTL/CMOS
LOGN:	CALL	CRLF2
	LDA	LOG		;NACTI PRIZNAK LOG UROVNI
	ANA	A
	JZ	LOGN1
	DCR	A		;VYPNI TRIDENI NAPETI
	STA	LOG		;ULOZ PRIZNAK KTN
	LXI	D,LOGT
	CALL	PRINT
	LXI	D,TTLT
	JMP	PRINT

LOGN1:	INR	A		;ZAPNI TRIDENI NAPETI
	STA	LOG		;ULOZ PRIZNAK KTN
	LXI	D,LOGT
	CALL	PRINT
	LXI	D,CMOST
	JMP	PRINT
;===============================
;ZOBRAZI STAV PREPINACU
STAVY:	CALL	CRLF2
	MVI	A,'K'		;KROKOVANI
	CALL	COA
	MVI	A,'-'
	CALL	COA
	LDA	KROKO
	ADI	'0'
	CALL	COA
	MVI	A,' '
	CALL	COA
	MVI	A,'Z'		;ZOBRAZENI DIL
	CALL	COA
	MVI	A,'-'
	CALL	COA
	LDA	ZOBRO
	ADI	'0'
	CALL	COA
	MVI	A,' '
	CALL	COA
	MVI	A,'M'		;MERENI NAPETI
	CALL	COA
	MVI	A,'-'
	CALL	COA
	LDA	MNAP
	ADI	'0'
	CALL	COA
	MVI	A,' '
	CALL	COA
	MVI	A,'T'		;TRIDENI NAPETI
	CALL	COA
	MVI	A,'-'
	CALL	COA
	LDA	KTN
	ADI	'0'
	CALL	COA
	MVI	A,' '
	CALL	COA

	MVI	A,'L'		;NASTAVENI LOG UROVNI
	CALL	COA
	MVI	A,'-'
	CALL	COA
	LXI	D,TTLT
	LDA	LOG
	ANA	A
	JZ	STAVY1
	LXI	D,CMOST
STAVY1:	JMP	PRINT
;===============================
;NASTAVENI PREVODNIKU ADP-1
NADP1:	CALL	CRLF2
	CALL	PADP1		;ZJISTI PRITOMNOST PREVODNIKU
	ANA	A
	RNZ			;PRI CHYBE NAVRAT
	LXI	D,TTPOP
	CALL	PRINT		;UVODNI TEXT PRO NASTAVENI ADP-1
	CALL	CRLF2
	MVI	B,0		;PRO ZACATEK BUDE ZESILENI A=1 A KANAL 0
NADP2:
	IF	SYS		;CPM

	PUSH	B
	MVI	C,6
	MVI	E,0FFH		;CHCEME ZNAK
	CALL	BDOS1
	POP	B

	ELSE			;MIKOS

	CALL	CSTS		;JE STISKLA KLAVESA
	ANA	A
	JZ	NADP3		;NENI
	CALL	CI		;PRECTI ZNAK Z KLAVESNICE

	ENDIF

	CPI	'0'
	JZ	ZA1		;ZESILENI A=1
	CPI	'1'
	JZ	ZA10		;ZESILENI A=10
	CPI	CR
	JZ	NAVRAT		;KONEC NASTAVENI
	CPI	CTRLC
	JZ	KONEC		;^C - KONEC PROGRAMU

NADP3:	MOV	A,B
	ANA	A
	LXI	D,TZA1		;ZESILENI A=1
	JZ	NADP4
	LXI	D,TZA10		;ZESILENI A=10
NADP4:	CALL	PRINT

	LXI	D,TADP1		;ADP-1/0DH
	CALL	PRINT
	CALL	CADP1		;SPUST PRENOD A CTI DATA
	CALL	PNCA		;PREVOD NA KONSOLI "A"
	IN	ADP1D		;SPODNI CISLICE
	CALL	PNCB		;PREVOD NA KONSOLI "B"

	IF	SYS		;CPM

	LXI	D,TADP2		;ADP-1/0EH

	ELSE			;MIKOS

	LXI	D,TADP2M	;../0EH

	ENDIF

	CALL	PRINT
	CALL	CADP2		;SPUST PRENOD A CTI DATA
	CALL	PNCA		;PREVOD NA KONSOLI "A"
	IN	ADP2D		;SPODNI CISLICE
	CALL	PNCB		;PREVOD NA KONSOLI "B"

	MVI	A,CR
	CALL	COA		;NA ZACATEK RADKU
	JMP	NADP2		;ZNONU

ZA1:	MVI	B,0		;ZESILENI A=1 A KANAL 0
	JMP	NADP3
ZA10:	MVI	B,10H		;ZESILENI A=10 A KANAL 0
	JMP	NADP3

;-------------------------------
;SPUSTENI PREVODU A PRECTENI NENISIHO BYTE A ZNAMENKA
;V  JE CISLO KANALU A ZESILENI
CADP1:	MOV	A,B
	OUT	ADP1R		;PREPNI KANAL
	CALL	CEKEJ		;POCKEJ NA USTALENI HODNOT
	OUT	ADP1R		;SPUST PREVOD
CADP1A:	IN	ADP1R	
	RLC			;NACTI READY DO 
	JC	CADP1A		;NENI-LI PROVOD HOTOV TAK ZNOVU
	RRC			;NACTENA DATA DO PUVODNIHO STAVU
	RET

;DRUHY PREVODNIK
CADP2:	MOV	A,B
	OUT	ADP2R		;PREPNI KANAL
	CALL	CEKEJ		;POCKEJ NA USTALENI HODNOT
	OUT	ADP2R		;SPUST PREVOD
CADP2A:	IN	ADP2R	
	RLC			;NACTI READY DO 
	JC	CADP2A		;NENI-LI PROVOD HOTOV TAK ZNOVU
	RRC			;NACTENA DATA DO PUVODNIHO STAVU
	RET

;POCKEJ NEZ SE PREPNENE MAC16 A USTALI HODOTA PREVODU
;CEKA SE ASI 1000X DELE NEZ JE KATALOGOVA HODNOTA (CCA MAX 3uS PRO MAC16)
;PROC TO TAK JE NETUSIM
CEKEJ:	PUSH	PSW
	PUSH	B
	PUSH	D
	PUSH	H
	CALL	WAIT24		;POCKEJ 24 mS
	POP	H
	POP	D
	POP	B
	POP	PSW
	RET

;-------------------------------
;PRENOD NA KONSOLI ZNAMENKO A NEJVISSI CISLICE
PNCA:	MOV	C,A		;SCHOV NACTENA DATA
	ANI	00010000B	;CHCEME JEN ZNAMENKO
	ANA	A
	MVI	A,'+'
	JZ	PNCA1
	MVI	A,'-'
PNCA1:	CALL	COA		;ZOBRAZ ZNAMENKO
	MOV	A,B		;JAKE MAME ZESILENI
	ANA	A
	JZ	PNCA2		;MAME A=1
	MVI	A,'0'
	CALL	COA		;ZOBRAZ NULU
	MVI	A,'.'
	CALL	COA		;A TECKU
	MOV	A,C		;OBNOV DATA
	CALL	LDEC		;PREVED SPODNI NIBL
	CALL	COA		;COBRAZ CISLO
	RET

PNCA2:	MOV	A,C		;OBNOV DATA
	CALL	LDEC		;PREVED SPODNI NIBL
	CALL	COA		;COBRAZ CISLO
	MVI	A,'.'
	CALL	COA		;A TECKU
	RET

;-------------------------------
;PREVOD NA KONSOLI NIZSI DVE CISLICE A JEDNOTKU
PNCB:	MOV	C,A		;SCHOV NACTENA DATA
	CALL	HDEC		;PREVED HORNI NIBL
	CALL	COA		;COBRAZ CISLO
	MOV	A,C		;OBNOV DATA
	CALL	LDEC		;PREVED SPODNI NIBL
	CALL	COA		;COBRAZ CISLO
	MVI	A,'V'
	CALL	COA		;ZOBRAZ "V"
	RET

;===============================
;TEST NA PRITOMNOST PREVODNIKU ADP-1
;V <A> VRATI:
;ADP-1 PRITOMNY = 0
;CHYBA U NEKTERE ADP-1 = 1
PADP1:	MVI	C,0
	IN	ADP1R
	RAL			;NACTI READY DO 
	JNC	PADP2
	XRA	A
	OUT	ADP1R		;SPUST PREVOD
	IN	ADP1R	
	RAL			;NACTI READY DO 
	JNC	PADP3
PADP2:	LXI	D,TADPT
	CALL	PRINT	
	LXI	D,TADP1
	CALL	PRINT
	CALL	CRLF2
	MVI	C,1

PADP3:	IN	ADP2R
	RAL			;NACTI READY DO 
	JNC	PADP4
	XRA	A
	OUT	ADP2R		;SPUST PREVOD
	IN	ADP2R
	RAL			;NACTI READY DO 
	JNC	PADP5
PADP4:	LXI	D,TADPT
	CALL	PRINT
	LXI	D,TADP2
	CALL	PRINT
	CALL	CRLF2
	MVI	C,1

PADP5:	MOV	A,C
	RET

;===============================
;ZOBRAZENI DIL ANEB PREHLEDNE ZOBAZENI STAVU NA DIL PRI CTENI
;VYMAZ CELE TABULKY A NASTAVENI ZAKLADNICH CR-LF A $
;FORMAT RADKU
;
;	  1	    2	      3
;12345678901234567890123456789012345678
;+0.00V 0  0 XXX  1  14 YYY 1  1 +0.00V 
;  |	|  |  |   |   |  |  |  |   |
;  |	|  |  |   |   |  |  |  |   +- NAPETI NA PATICI
;  |	|  |  |   |   |  |  |  +----- LOG. STAV NA PATICI
;  |	|  |  |   |   |  |  +-------- LOG. STAV DLE TABULKY
;  |	|  |  |   |   |  +----------- TYP SIGNALU (GND, VCC, IN, OUT, NZ)
;  |	|  |  |   +---+-------------- CISLO VYVODU
;  |	|  |  +---------------------- TYP SIGNALU (GND, VCC, IN, OUT, NZ)
;  |	|  +------------------------- LOG. STAV DLE TABULKY
;  |	+---------------------------- LOG. STAV NA PATICI
;  +--------------------------------- NAPETI NA PATICI

ZDIL:	PUSH	H		;SCHOV UKAZATEL V TESTOVACI TABULCE
	LXI	H,POLE		;POCATEK POLE PRO ZOBRAZENI DIL
	PUSH	H		;ULOZ POCATEK POLE
	LXI	D,480		;VELIKOST POLE
ZDIL1:	MVI	M,' '		;ULOZ MEZERU
	INX	H		;ADRESA +1
	DCX	D		;POCITALO -1
	MOV	A,E
	ORA	D
	JNZ	ZDIL1		;NENI-LI KONEC TAK ZNOVU
	LXI	H,POLE2		;POCATEK POLE PRO VYHODNOCENI NAPETI
	LXI	D,512		;VELIKOST POLE
ZDIL17:	MVI	M,-1		;BUDEME ZAPISOVAT FFH
	INX	H		;ADRESA +1
	DCX	D		;POCITALO -1
	MOV	A,E
	ORA	D
	JNZ	ZDIL17		;NENI-LI KONEC TAK ZNOVU
	POP	H		;OBNOV POCATEK POLE PRO ZOBRAZENI DIL
	MVI	B,11		;POCET RADKU
	LXI	D,38		;KROK V TABULCE
ZDIL2:	DAD	D
	MVI	M,CR		;ULOZ CR
	INX	H
	MVI	M,LF		;ULOZ LF
	INX	H
	DCR	B
	JNZ	ZDIL2		;NENI-LI KONEC TAK ZNOVU

	MVI	A,'$'
	STA	POLE+478	;ULOZ KONCOVY ZNAK
;-------------------------------
;NACTENI PARAMTU PRO ZOBRAZENI DIL, GND, VCC, ...
	LDA	DIL		;NACTI NAPAJENI
	ANI	00000111B	;CHCEME JEN SPODI 3 BITY
	RLC			;* 2
	RLC			;* 4
	RLC			;* 8
	MOV	C,A
	MVI	B,0		;KOLIK PRICIST
	LXI	H,TABD1		;POCATEK TABULKY
	DAD	B		;V  ADRESA V TABULCE
	MOV	B,M		;POCATECNI HODNOTA PRO LEVI SLOUPEC
	INX	H
	MOV	C,M		;POCATECNI HODNOTA PRO PRVY SLOPEC
	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE ADRESY ODKUT ZOBRAZOVAT
	PUSH	D		;SCHOV ADRESU ODKUT ZOBRAZIT
	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE ADRESY GND
	PUSH	D		;SCHOV ADRESU GND
	INX	H
	MOV	E,M		;NACTI NIZSI BYTE
	INX	H
	MOV	D,M		;NACTI VYSSI BYTE ADRESY VCC
	PUSH	D		;SCHOV ADRESU VCC
	LDA	ZIF14		;NACTI PRIZNAK DIL14 V ZIF16
	ANA	A
	JZ	ZDIL3
	MVI	C,7H		;NOVY POCATEK PRO PRAVY SLOPEC
	MVI	A,'$'
	STA	POLE+480-42	;NOVY ULOZ KONCOVY ZNAK
;-------------------------------
;CISELNY POPIS (CISLA PRO DIL)
;ZOBRAZI CISLA, LEVY SLOUPEC
ZDIL3:	PUSH	B
	LXI	D,39		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+16	;ADRESA ODKUD UKLADAT
	CALL	ZDIL4
	POP	B

;ZOBRAZI CISLA, PRAVI SLOUPEC
	MOV	B,C
	LXI	D,-41		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+20+40*11	;ADRESA ODKUD UKLADAT
	CALL	ZDIL4
;-------------------------------
;POPIS IN A OUT
;ZOBRAZI IN OUT, PORT 1
	LDA	VVZ		;STAV V/V PORT1
	MVI	C,8		;POCET BYTE
	LXI	D,38		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+12+40*4	;ADRESA ODKUD UKLADAT
	CALL	ZDIL7

;ZOBRAZI IN OUT, PORT 2
	LDA	VVZ+1		;STAV V/V PORT2
	MVI	C,8		;POCET BYTE
	LXI	D,-42		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+23+40*11	;ADRESA ODKUD UKLADAT
	CALL	ZDIL7

;ZOBRAZI IN OUT, PORT 3
	LDA	VVZ+2		;STAV V/V PORT3
	MVI	C,4		;POCET BYTE
	LXI	D,38		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+12	;ADRESA ODKUD UKLADAT
	CALL	ZDIL7

;ZOBRAZI IN OUT, PORT 3
	MVI	C,4		;POCET BYTE
	LXI	D,-42		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+23+40*3	;ADRESA ODKUD UKLADAT
	CALL	ZDIL7
;-------------------------------
;POPIS NEZOPOJENE VYVODY
;ZOBRAZI NZ, PORT 1
	LDA	NCZ		;NAZAPOJENE VYVODY PORT1
	MVI	C,8		;POCET BYTE
	LXI	D,38		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+12+40*4	;ADRESA ODKUD UKLADAT
	CALL	ZDIL10

;ZOBRAZI NZ, PORT 2
	LDA	NCZ+1		;NAZAPOJENE VYVODY PORT2
	MVI	C,8		;POCET BYTE
	LXI	D,-42		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+23+40*11	;ADRESA ODKUD UKLADAT
	CALL	ZDIL10

;ZOBRAZI NZ, PORT 3
	LDA	NCZ+2		;NAZAPOJENE VYVODY PORT3
	MVI	C,4		;POCET BYTE
	LXI	D,38		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+12	;ADRESA ODKUD UKLADAT
	CALL	ZDIL10

;ZOBRAZI NZ, PORT 3
	MVI	C,4		;POCET BYTE
	LXI	D,-42		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+23+40*3	;ADRESA ODKUD UKLADAT
	CALL	ZDIL10
;-------------------------------
;ZOBRAZENI VCC  GND
;ZOBRAZI VCC
        POP	H		;VYZVEDNI ADRESU VCC
	MVI	M,'V'
	INX	H
	MVI	M,'C'
	INX	H
	MVI	M,'C'

;ZOBRAZI GND
        POP	H		;VYZVEDNI ADRESU GND
	MVI	M,'G'
	INX	H
	MVI	M,'N'
	INX	H
	MVI	M,'D'
;-------------------------------
;ZOBRAZENI ZAPISOVANYCH DAT
;ZOBRAZI ZAPISOVANA DATA, PORT 1
	LDA	VDAT		;VYSTUPNI DATA PORT1
	MVI	C,8		;POCET BYTE
	LXI	D,40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+10+40*4	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI ZAPISOVANA DATA, PORT 2
	LDA	VDAT+1		;VYSTUPNI DATA PORT2
	MVI	C,8		;POCET BYTE
	LXI	D,-40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+27+40*11	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI ZAPISOVANA DATA, PORT 3
	LDA	VDAT+2		;VYSTUPNI DATA PORT3
	MVI	C,4		;POCET BYTE
	LXI	D,40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+10	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI ZAPISOVANA DATA, PORT 3
	MVI	C,4		;POCET BYTE
	LXI	D,-40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+27+40*3	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8
;-------------------------------
;ZOBRAZENI CTENYCH DAT
;ZOBRAZI CTENA DATA, PORT 1
	LDA	CDAT		;CTENA DATA PORT1
	MVI	C,8		;POCET BYTE
	LXI	D,40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+7+40*4	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI CTENA DATA, PORT 2
	LDA	CDAT+1		;CTENA DATA PORT2
	MVI	C,8		;POCET BYTE
	LXI	D,-40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+30+40*11	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI CTENA DATA, PORT 3
	LDA	CDAT+2		;CTENA DATA PORT3
	MVI	C,4		;POCET BYTE
	LXI	D,40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+7	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;ZOBRAZI CTENA DATA, PORT 3
	MVI	C,4		;POCET BYTE
	LXI	D,-40		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+30+40*3	;ADRESA ODKUD UKLADAT
	CALL	ZDIL8

;-------------------------------
;DOBRAZENI NAPETI
;ZDIL14:
	LDA	MNAP		;NACTI PRIZNAK MNAP	
	ANA	A
	JZ	ZDIL13		;ZOBRAZOVAT NAPETI SE NEBUDE 
	LDA	DIL		;KOLIK RADKU BUDEM ZOBRAZOVAT
	ANI	00000111B	;CHCE JEN BITY 1, 2 A 3
	MVI	D,0
	MOV	E,A		;POZICE V TABULCE DELEK IO
	LXI	H,DILDEL	;TABULKA DELEK IO
	DAD	D		;VYPOCITEJ ADRESU
	MOV	C,M		;A NACTI DELKU
	LDA	ZIF14		;NACTI PRIZNAK DIL14 V ZIF16
	MOV	B,A		;ULOZ HO JAKO POCATEK ODKUD MERIT
	ANA	A
	JZ	ZDIL14		;NENI-LI DIL14 V ZIF16
	DCR	C		;ZKRAT POCITADLO DELKY IO
ZDIL14:	PUSH	B		;SCHOV SI TO PRO DRUHY PREVODNIK

;LEVA RADA

	LXI	D,-45		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+40*10	;ADRESA ODKUD UKLADAT PRO DIL14 V ZIF16
	ANA	A
	JNZ	ZDIL15		;JE DIL14 V ZIF16
	LXI	H,POLE+40*11	;ADRESA ODKUD UKLADAT
ZDIL15:	CALL	CADP1		;SPUST PREVOD A CTI DATA
	PUSH	D		;POSCHOVAVEJ REGISTRY
	PUSH	H
	PUSH	PSW
	LDA	KTN		;PRIZNAK TRIDENI
	ANA	A
	JZ	KNAP1		;NENILI PRIZNAK TAK TRIDIT NEBUDEMA
	LXI	D,12		;POSUV NA SLOUPEC S TYPEM VSTUPU
	DAD	D		;CO BUDE ZA VSTUP
	MOV	A,M
	CPI	'I'		;VSTUP
	JZ	KNAP		;NENI-LI 'I' TAK TEST NA 'O'
	CPI	'O'		;VYSTUP
	JNZ	KNAP1		;NENI-LI 'O' TAK NAVRAT
KNAP:	ANI	00000010B	;CHCEME JEN BIT 1
	RRC			;A DO BITU 0
	MVI	D,HIGH POLE2	;ZACATEK POLE2 HORNI ARESA
	ADD	D
	MOV	D,A		;HORNI ADRSA
	DCX	H
	DCX	H		;ADRESA LOG. HODNOTY
	MOV	A,M		;A NACTIJI
	INX	H
	INX	H
	INX	H
	INX	H
	INX	H
	INX	H		;ADRESA ODKUT SE PRECTE CISLO RADKU
	ANI	00000001B	;CHCEME JEN BIT 0
	RRC			;A DO BITU 7 ... A MAME ADRESU BLOKU (IN0 00,IN1 01, OUT0 10, OUT1 11) 
	MOV	E,A		;ULOZ NA POZDEJI
	MOV	A,B		;CISLO KANALU DO <A>, LEVA STRANA
	RLC
	RLC			;POSUN DOLEVA
	ORA	E		;SPOJ
	MOV	E,A		;V   (.......A BCDDDD00) ANEB ADRESA V POLE2
				;A - IN/OUT
				;B - 0/1
				;C - STRAN
				;D - KANAL

	POP	PSW
	ANI	00011111B	;JEN PLATNE BITY
	STAX	D		;ULOZ HORNI BYTE NAPETI
	PUSH	PSW
	INX	D
	XCHG
	SHLD	AKNAP		;ULOZ ADRESU PRO ZAPIS DRUHE POLOVINY NAPETI
	XCHG
	MVI	A,1
	STA	PAKNAP		;ULOZ PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	INX	D		;ADRSA V POLE2 ANEB KAM ULOZIT CISLO RADKU
	MOV	A,M
	STAX	D		;ULOZ PRVNI CISLO
	INX	H
	INX	D
	MOV	A,M
	STAX	D		;ULOZ DRUHE CISLO
KNAP1:	POP	PSW		;OBNOV REGISTY
	POP	H
	POP	D
	CALL	ZDILA		;PREVOD DO TABULKY "A"
	LDA	PAKNAP		;NACTI PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	ANA	A	
	IN	ADP1D		;SPODNI CISLICE
	JZ	KNAP4
	PUSH	H
	LHLD	AKNAP		;ADRESA V POLE2
	MOV	M,A		;ULOZ DOLNI BYTE NAPETI
	XRA	A
	STA	PAKNAP		;ZRUS PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	MOV	A,M
	POP	H
KNAP4:	CALL	ZDILB		;PREVOD DO TABULKY "B"
	DAD	D		;NOVA ADRESA V POLI
	INR	B		;DALSI KANAL
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL15		;NENI-LI KONEC ZNOVU

;PRAVA RADA

	POP	B		;OBNOV DATA PRO DRUHY PREVODNIK
	LXI	D,-45		;O KOLIK JE NOVY RADEK
	LXI	H,POLE+32+40*10	;ADRESA ODKUD UKLADAT PRO DIL14 V ZIF16
	MOV	A,B
	ANA	A
	JNZ	ZDIL16		;JE DIL14 V ZIF16
	LXI	H,POLE+32+40*11	;ADRESA ODKUD UKLADAT
ZDIL16:	CALL	CADP2		;SPUST PREVOD A CTI DATA
	PUSH	D		;POSCHOVAVEJ REGISTRY
	PUSH	H
	PUSH	PSW
	LDA	KTN		;PRIZNAK TRIDENI
	ANA	A
	JZ	KNAP3		;NENILI PRIZNAK TAK TRIDIT NEBUDEMA
	LXI	D,-9		;POSUV NA SLOUPEC S TYPEM VSTUPU
	DAD	D		;CO BUDE ZA VSTUP
	MOV	A,M
	CPI	'I'		;VSTUP
	JZ	KNAP2		;NENI-LI 'I' TAK TEST NA 'O'
	CPI	'O'		;VYSTUP
	JNZ	KNAP3		;NENI-LI 'O' TAK NAVRAT
KNAP2:	ANI	00000010B	;CHCEME JEN BIT 1
	RRC			;A DO BITU 0
	MVI	D,HIGH POLE2	;HORNI ARESA
	ADD	D
	MOV	D,A		;HORNI ADRSA
	INX	H
	INX	H
	INX	H
	INX	H		;ADRESA LOG. HODNOTY
	MOV	A,M		;A NACTIJI
	DCX	H
	DCX	H
	DCX	H
	DCX	H
	DCX	H
	DCX	H
	DCX	H		;ADRESA ODKUT SE PRECTE CISLO RADKU
	ANI	00000001B	;CHCEME JEN BIT 0
	RRC			;A DO BITU 7 ... A MAME ADRESU BLOKU (IN0 00,IN1 01, OUT0 10, OUT1 11) 
	MOV	E,A		;ULOZ NA POZDEJI
	MOV	A,B		;CISLO KANALU DO <A>,
	ORI	0010000B	;A LEVA STRANA
	RLC
	RLC			;POSUN DOLEVA
	ORA	E		;SECTI
	MOV	E,A		;V   (.......A BCDDDD00) ANEB ADRESA V POLE2
				;A - IN/OUT
				;B - 0/1
				;C - STRAN
				;D - KANAL

	POP	PSW
	ANI	00011111B	;JEN PLATNE BITY
	STAX	D		;ULOZ HORNI BYTE NAPETI
	PUSH	PSW
	INX	D
	XCHG
	SHLD	AKNAP		;ULOZ ADRESU PRO ZAPIS DRUHE POLOVINY NAPETI
	XCHG
	MVI	A,1
	STA	PAKNAP		;ULOZ PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	INX	D		;ADRSA V POLE2 ANEB KAM ULOZIT CISLO RADKU
	MOV	A,M
	STAX	D		;ULOZ PRVNI CISLO
	INX	H
	INX	D
	MOV	A,M
	STAX	D		;ULOZ DRUHE CISLO
KNAP3:	POP	PSW		;OBNOV REGISTY
	POP	H
	POP	D
	CALL	ZDILA		;PREVOD DO TABULKY "A"
	LDA	PAKNAP		;NACTI PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	ANA	A	
	IN	ADP2D		;SPODNI CISLICE
	JZ	KNAP5
	PUSH	H
	LHLD	AKNAP		;ODRESA V POLE2
	MOV	M,A		;ULOZ DOLNI BYTE NAPETI
	XRA	A
	STA	PAKNAP		;ZRUS PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
	MOV	A,M
	POP	H
KNAP5:	CALL	ZDILB		;PREVOD DO TABULKY "B"
	DAD	D		;NOVA ADRESA V POLI
	INR	B		;DALSI KANAL
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL16		;NENI-LI KONEC ZNOVU

;-------------------------------
;ZOBRAZENI SESTAVENE TABULKY
ZDIL13:	CALL	CRLF		;ZOBRA CO JSME ZPACHALI
	POP	D		;ODRESA ODKUT ZOBRAZIT
	CALL	PRINT
;	CALL	CRLF
;	CALL	CRLF
;	LXI	D,POLE		;KOMPLETNI TABULKA
;	MVI	A,CR
;	STA	POLE+480-42	;I POSLEDNI RADEK
;	CALL	PRINT
	CALL	CRLF
;-------------------------------
;ZOBARENI TRIDENEHO NAPETI
;	  1	    2	      3		4
;1234567890123456789012345678901234567890
; IN 0      IN 1      OUT 0     OUT 1
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15
;+0.00V  1 +0.00V 10 +0.00V 11 +0.00V 15

	LDA	MNAP		;PRIZNAK MERENI NAPETI
	ANA	A
	JZ	KCHYB		;NENILI PRIZNAK TAK TRIDIT A ZOBRAZOVAT NEBUDEM
	LDA	KTN		;PRIZNAK TRIDENI
	ANA	A
	JZ	KCHYB		;NENILI PRIZNAK TAK TRIDIT A ZOBRAZOVAT NEBUDEM
;	CALL	DUMP		;POLE2
	XRA	A
	STA	CHLOG
	STA	CHLOG1		;VINULUJ PRIZNAKY CHIBNE LOG UROVNE
	CALL	TTN		;SETRID NAPETI
	LXI	D,PZTTNT
	CALL	PRINT		;POPIS TABULKY
	MVI	B,32		;MAX 32 RADKU 
	LXI	H,POLE2		;POCATEK POLE K ZOBRAZENI
ZTTN4:	LXI	D,125		;DALSI POLOZKA
	MVI	A,4		;POCET POLI
	STA	PR		;PRO NALEZENI KONCE DAT
	XRA	A
	STA	POUT1		;VINULUJ PRIZNAK OUT 1
	CALL	ZTTN1		;ZOBRAZ POLOZKU IN0 NA RADKU
	DAD	D
	CALL	ZTTN1		;ZOBRAZ POLOZKU IN1 NA RADKU
	DAD	D
	CALL	ZTTN1		;ZOBRAZ POLOZKU OUT0 NA RADKU
	DAD	D
	MVI	A,1
	STA	POUT1		;NASTAV PRIZNAK OUT 1
	CALL	ZTTN1		;ZOBRAZ POLOZKU OUT1 NA RADKU
	LDA	PR
	ANA	A
	JZ	ZTTN5		;PRAZDNY RADEK
	CALL	CRLF
	LXI	D,-383		;DALSI RADEK
	DAD	D
	DCR	B
	JNZ	ZTTN4
ZTTN5:	CALL	CRLF

;SPOCITEJ ROZDILI MIN/MAX

	XRA	A
	STA	PR		;VZNULUJ PRIZNAK VELKEHO ROZDILU
	STA	POUT1		;VINULUJ PRIZNAK OUT 1
	DCR	A
	STA	CHLOG		;VYPNI KONTROLU LOG UROVNI
	LXI	H,POLE2
	MVI	B,4		;POCET POLI
ZTTN10:	PUSH	H
	PUSH	B

;ZOBRAZI POLOZKU Z POLE2
;V  ADRESA POLOZKY
;V  POLOZKA V POLI
;V  POCET POLOZEK K ZOBRAZENI
;.......A BCDDDD00, ADRESA V POLE2
;A - IN/OUT
;B - 0/1
;C - STRAN
;D - KANAL

	LXI	B,31		;MAX. POCET POLOZEK POLE  A POLOZKA V POLI 
ZTTN11:	PUSH	H		;ULOZ POCATEK BLOKU V POLE2
	MOV	A,C		;POJEDEME OD KONCE
	RLC
	RLC
	ORA	L
	MOV	L,A		;ADESA POLOZKY 	
	MOV	A,M
	POP	H		;OBNOV POCATEK POLE2
	CPI	-1
	JNZ	ZTTN12		;JSOU PRVNI DATA OD KONCE
	DCR	C
	JNZ	ZTTN11		;NENI-LI KONEC DALSI POLOZKA
	LDA	POUT1		;NACTI PRIZNAK OUT
	ANA	A
	JNZ	ZTTN13		;JE OUT 1 TAK BEZ MEZER
	LXI	D,MEZ10T	;JINAK TISKNI MEZERY
	CALL	PRINT		;ANEB NENI CO POCITAT
	JMP	ZTTN13

ZTTN12:	MOV	D,H		;V  JE ADRESA NEJNISSIHO NAPETI
	MOV	E,L		;ADRSU POCATKU POLE I DO 
	MOV	A,C	
	RLC
	RLC
	ORA	E
	MOV	E,A		;V  JE ADRESA NEJVISSIHO NAPETI
	MOV	B,M
	INX	H
	MOV	C,M		;NEJNISSI NAPETI DO  MENSITEL
	XCHG
	MOV	D,M
	INX	H
	MOV	E,M		;NEJVISSIHO NAPETI DO  MENSENEC

;ODECITANI DESTKOVE
	STC			;CY=1 STOVKOVY DOPLNEK PRO 1. ODECET
	MVI	A,99H		;HLEDANI DOPLNKU 99 NEBO 100
	ACI	0		;MENSITELE (CY=0 NEBO 1)
	SUB	C		;ODECET S CY
	ADD	E		;PRICTENI MENSENCE
	DAA			;PREVOD NA DESITKOVE CISLO
	MOV	H,A		;ULOZ
	MVI	A,99H		;HLEDANI DOPLNKU 99 NEBO 100, VYSSI BYTE
	ACI	0		;MENSITELE (CY=0 NEBO 1)
	SUB	B		;ODECET S CY
	ADD	D		;PRICTENI MENSENCE
	DAA			;PREVOD NA DESITKOVE CISLO
	MOV	L,A		;ULOZ

	SHLD	RNAP		;ULOZ PRO TISK
	ANA	A		;BUDE MENE NEZ 1V
	JNZ	ZTTN14
	MOV	A,H
	CPI	VELN+1		;MAX ROZDIL
	JNC	ZTTN14
	LXI	H,2020H		;MEZERY
	JMP	ZTTN15		;RODIL NAPETI POD 0.20V
ZTTN14:	LXI	H,202AH		;"* " 
	MVI	A,1
	STA	PR		;ULOZ, BYL VELKY ROZDIL NAPETI
ZTTN15:	SHLD	RNAP+2		;MISTO CISEL
	LXI	H,RNAP		;ODKUT VITISKNOUT
	CALL	ZTTN1		;VYTISKNI ROZDILOVE NAPETI

ZTTN13:	POP	B
	POP	H
	LXI	D,128		;DELKA POLE
	DAD	D
	DCR	B
	MOV	A,B
	CPI	1
	JNZ	ZTTN18
	STA	POUT1		;ULOZ PRIZNAK OUT 1
ZTTN18:	ANA	A
	JNZ	ZTTN10		;JESTE NEJSOU VSECHNY BLOKY
	CALL	CRLF2
	LDA	PR
	ANA	A
	JZ	ZTTN16		;JE-LI ROZPTIL V PORADKU TAK NA KONTROLU LOG UROVNI 
	LXI	D,VELNT
	CALL	PRINT		;TISK UPOZORNENI

ZTTN16:	LDA	CHLOG1
	ANA	A
	JZ	ZTTN17		;JSOU-LI LOG UROBNE V PORADKU TAK NA KONTROLU CHYB
	LXI	D,CHLOGT
	CALL	PRINT		;TISK UPOZORNENI

ZTTN17:	LDA	PR
	MOV	C,A
	LDA	CHLOG1	
	ORA	C
	JZ	KCHYB		;NENI CHYBA

	LDA	ERR		;PRIZNAK CHYBY
	ANA	A
	JNZ	KCHYB		;PRESKOC POKUT JE CHYBA
	CALL	CTIZ		;POCKEJ NA POTVRENI
	JMP	KCHYB		;NA ZOBRAZENI CHYBI
;-------------------------------
;ZOBRAZENI JDNOHO POLE NA RADKU SE SETRIZENIM NAPETIM
ZTTN1:	MOV	A,M		;NACTI DATA ... 1
	MOV	C,A		;SCHOV
	CPI	-1		;TEST NA PRITOMNOST DAT
	JNZ	ZTTN2		;JSOU-LI DATA TAK JE VYTISKNI
	LDA	POUT1		;NACTI PRIZNAK OUT
	ANA	A
	JNZ	ZTTN1M		;JE OUT 1 TAK BEZ MEZER
	PUSH	D
	LXI	D,MEZ10T	;JINAK TISKNI MEZERY
	CALL	PRINT
	POP	D
ZTTN1M:	INX	H
	INX	H
	INX	H
	LDA	PR
	DCR	A		;ODECET ZA PRAZDNE POLE
	STA	PR
	RET

;V  ADRESA POLOZKY
;.......A BCDDDD00, ADRESA V POLE2
;A - IN/OUT
;B - 0/1
;C - STRAN
;D - KANAL


ZTTN2:	LDA	CHLOG
	CPI	-1
	JZ	ZTTN20		;JE VIPNUTA KONTROLA LOG UROVNI
	PUSH	D
	PUSH	B
	PUSH	H
	LXI	D,NTTL		;TABUKA LOG NAPETI PRO TTL
	LDA	LOG		;PRIZNAK NA TTL/CMOS
	ANA	A
	JZ	ZTTN21		;MAME TTL
	LXI	D,NCMOS		;TABUKA LOG NAPETI PRO TTL
ZTTN21:	DAD	H
	DAD	H		; O DVA BITY DO LEVA
	MOV	A,H
	ANI	00000110B	;CHCEME JEN BITY 1 A 2
	MOV	C,A		;SPOCITEJ ADRESU LOG UROVE PRO KONTROLU
	MVI	B,0
	XCHG
	DAD	B
	XCHG			;V  JE ADRESA LOG NAPETI PRO KONTROLU
	POP	H		;OBNOV ADRESU V POLE 2
	PUSH	H		;A ZASE JI SCHOV
	MOV	A,L
	RAL			;TEST NA LOG 0/1
	JC	ZTTN22
;LOG 0
	MOV	B,M		;DATA
	LDAX	D		;KONSTANTA
	CMP	B
	JZ	ZTTN27		;SHODA NAPETI ... JEDNOTKY VOLTU
	JNC	ZTTN25		;NAPETI V TOLERANCI ... JEDNOTKY VOLTU
	JC	ZTTN24		;NAPETI MIMO TOLERANCI ... JEDNOTKY VOLTU
ZTTN27:	INX	H
	INX	D		;KONSTANTA
	MOV	B,M		;DATA
	LDAX	D
	CMP	B
	JC	ZTTN24		;NAPETI MIMO TOLERANCI ... DESETINY VOLTU
	JMP	ZTTN25		;NAPETI V TOLERANCI
;LOG 1
ZTTN22:	XCHG
	LDAX	D		;DATA
	MOV	B,M		;KONSTANTA
	CMP	B
	JZ	ZTTN28		;SHODA NAPETI ... JEDNOTKY VOLTU
	JNC	ZTTN25		;NAPETI V TOLERANCI ... JEDNOTKY VOLTU
	JC	ZTTN24		;NAPETI MIMO TOLERANCI ... JEDNOTKY VOLTU	
ZTTN28:	INX	H
	INX	D
	LDAX	D		;DATA
	MOV	B,M		;KONSTANTA
	CMP	B
	JC	ZTTN24		;NAPETI MIMO TOLERANCI ... DESETINY VOLTU

ZTTN25:	XRA	A
	STA	CHLOG		;NAPETI V TOLERANCI	
	JMP	ZTTN23

ZTTN24:	MVI	A,1
	STA	CHLOG		;NAPETI MIMO TOLERANCI
	STA	CHLOG1
ZTTN23:	POP	H
	POP	B
	POP	D
ZTTN20:	MOV	A,C
	ANI	00010000B	;CHCEME JEN ZNAMENKO
	ANA	A
	MVI	A,'+'
	JZ	ZTTN3
	MVI	A,'-'
ZTTN3:	CALL	COA		;TISKNI ZNAMENKO
	MOV	A,C		;OBNOV DATA
	CALL	LDEC		;PREVOD NA ASCII
	CALL	COA		;DISKNI CISLO
	MVI	A,'.'		;ULOZ DESETINOU TECKU
	CALL	COA		;DISKNI TECKU
	INX	H		;DALSI POZICE ... 2
	MOV	A,M
	MOV	C,A		;SCHOV
	CALL	HDEC		;DESITKY
	CALL	COA		;DISKNI CISLO
	MOV	A,C		;OBNOV
	CALL	LDEC		;ZAPIS SPONIHO NYBLU
	CALL	COA		;DISKNI CISLO
	MVI	A,'V'		;JESTE ZNAK NAPETI
	CALL	COA
	LDA	CHLOG		;PRINAK CHIBNE LOG UROVNE
	ANA	A
	MVI	A,' '		;MEZERU
	JM	ZTTN26		;VYPNUTA KONTROLOLA LOG UROVNI
	JZ	ZTTN26		;JE CHIBNA LOG UROVEN
	MVI	A,'!'		;VYKRICNIK
ZTTN26:	CALL	COA
	INX	H		;DALSI POZICE ... 3
	MOV	A,M		;A CISLO VYVODU
	CALL	COA
	INX	H		;DALSI POZICE ... 4
	MOV	A,M		;A CISLO VYVODU
	CALL	COA
	LDA	POUT1		;NACTI PRIZNAK OUT
	ANA	A
	RNZ			;JE OUT 1 TAK BEZ MEZERY
	MVI	A,' '		;MEZERU
	CALL	COA
	RET

;-------------------------------
;SETRIDENI POLE2
TTN:	LXI	H,POLE2
	MVI	B,4		;POCET POLI
TTN1:	PUSH	H
	PUSH	B

;V  ADRESA POLOZKY
;V  ADRESA POLOZKY+1
;V  POLOZKA V POLI
;V  POCET POLOZEK KE TRIDENI
;.......A BCDDDD00, ADRESA V POLE2
;A - IN/OUT
;B - 0/1
;C - STRAN
;D - KANAL

	LXI	B,31		;MAX. POCET POLOZEK POLE PRO TRIDENI  A POLOZKA V POLI 
TTN6:	PUSH	H		;ULOZ POCATEK BLOKU V POLE2
	MOV	A,C		;POJEDEME OD KONCE
	RLC
	RLC
	ORA	L
	MOV	L,A		;ADESA POLOZKY 	
	MOV	A,M
	POP	H		;OBNOV POCATEK POLE2
	CPI	-1
	JNZ	TTN4		;JSOU PRVNI DATA OD KONCE
	MOV	A,C
	CPI	2
	JZ	TTN4		;ZARIZNI TO NA TRETI POZICI
	DCR	C
	JMP	TTN6		;DALSI POLOZKA

TTN4:	PUSH	H		;ULOZ POCATEK BLOKU V POLE2
	MOV	D,H
	MOV	E,L		;ADRSU POCATKU POLE I DO 
	MOV	A,B
	RLC
	RLC
	ORA	L
	MOV	L,A		;ADESA POLOZKY 	
	MOV	A,B
	INR	A
	RLC
	RLC
	ORA	E
	MOV	E,A		;ADRESA POLOZKY +1 
	LDAX	D
	CMP	M
	JC	TTN3		;PROHOD
	JNZ	TTN5		;JEST-LI NEJSOU SHODNE TAK DALSI POLOZKA
	INR	L
	INR	E		;DRHA CAST NAPETI
	LDAX	D
	CMP	M
	JNC	TTN5		;PROHOD
TTN3:	PUSH	B
	MVI	B,4		;POCET PREHAZOVANYCH DAT
	MOV	A,L
	ANI	11111100B	;CHCEME PRVNI POZICI POLOZKY
	MOV	L,A
	MOV	A,E
	ANI	11111100B	;CHCEME PRVNI POZICI POLOZKY +1
	MOV	E,A
TTN2:	MOV	C,M
	LDAX	D
	MOV	M,A
	MOV	A,C
	STAX	D
	INR	L
	INR	E
	DCR	B
	JNZ	TTN2		;POKUT NENI VSE TAK DALSI
	POP	B
	STA	PR		;ULOZ NECO ANEB SE PREHAZOVALO
TTN5:	POP	H		;OBNOV POCATEK BLOKU V POLE2
	INR	B		;DALSI PAR POLOZEK
	MOV	A,C
	CMP	B
	JNZ	TTN4		;JESTE NENI PROJITO VSECHY POLOZEK
	MVI	B,0		;OD PRVNI POLOZKY
	LDA	PR		;NACTI ZNACKU SETRIDENI
	ANA	A
	JZ	TTN8		;JE SETRIDENO DALSI POLE
	XRA	A
	STA	PR		;VYNULUJ ZNACKU SETRIDENI
	DCR	C		;POCET POLOZEK -1
	JNZ	TTN4		;JESTE NENI VSE HOTOVO
TTN8:	POP	B
	POP	H
	LXI	D,128		;DELKA POLE
	DAD	D
	DCR	B
	JNZ	TTN1		;JESTE NEJSOU VSECHNY BLOKY
	RET	

;-------------------------------
;KONTROLA NA CHYBU, TISK CHYBY A NAVRAT
KCHYB:	POP	H		;OBNOV UKAZATEL V TESTOVACI TABULCE
	LDA	ERR		;PRIZNAK CHYBY
	ANA	A
	RZ			;NAVRAT POKUT NENI CHYBA
	LXI	D,CHPOT	
	CALL	PRINT		;TISK "CHYBA PORT"
	LHLD	DEERR		;OBNOV DATA PRO VYPIS CHYBY
	XCHG
	LHLD	HLERR
	INX	SP
	INX	SP		;SROVNEJ ZASOBNIK
	CALL	PRINT
	CALL	CRLF
	CALL	HADR		;TISK OBSAHU 
	CALL	CRLF
	LDA	PP		;OBNOV DATA Z PORTU
	CALL	DBYT		;TISK DAT Z PORTU
	LDA	PP		;OBNOV DATA Z PORTU
	CALL	DBIN		;TISK DAT ALE BINARNE
	LXI	D,PORTT		;DATA Z PORTU
	CALL	PRINT
	CALL	CRLF
	MOV	A,M
	CALL	DBYT		;TISK DAT Z TABULKY
	MOV	A,M
	CALL	DBIN		;TISK DAT Z TABULKY ALE BINARNE
	LXI	D,TABT		;TADA Z TABULKY
	CALL	PRINT
	JMP	VYSTV3		;VZPIS CHYBY A NOVY VYBER IO

;-------------------------------
;-------------------------------
;PREVOD CISLA Z PREVODNIKU A ULOZENI DO TABULKY
;ZNAMEHO A NEVISI NYBL
ZDILA:	PUSH	PSW		;SCHOV SI DATA
	ANI	00010000B	;CHCEME JEN ZNAMENKO
	ANA	A
	MVI	A,'+'
	JZ	ZDILA1
	MVI	A,'-'
ZDILA1:	MOV	M,A		;ULOZ ZNAMENKO
	INX	H
	POP	PSW		;OBNOV DATA
	CALL	LDEC		;PREVOD NA ASCII
	MOV	M,A
	INX	H
	MVI	M,'.'		;ULOZ DESETINOU TECKU
	INX	H
	RET

;PREVOD Z BIN/DEC NA TXT
ZDILB:	PUSH	PSW		;ZAPISE DO POLE CISLO Z <A>
	CALL	HDEC
	MOV	M,A
	POP	PSW
	CALL	DEC2		;ZAPIS SPONIHO NYBLU
	INX	H
	MVI	M,'V'		;JESTE ZNAK NAPETI
	RET

;-------------------------------
;PODPROGRAMI PRO DIL
;ZOBRAZI CISLA, SPOLECNA CAST
ZDIL4:	MVI	C,12		;POCET RADU
ZDIL4A:	MOV	A,B
	CALL	DEC		;PREVOD NA TXT CISLO
	MOV	A,B
	INR	A		;POCITADLO NOZICEK +1
	DAA			;DEKADICKA KOREKCE
	MOV	B,A
	DAD	D		;NOVA ADRESA V POLI
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL4A		;NENI-LI KONEC ZNOVU
	RET

;-------------------------------
;ZOBRAZI IN OUT, SPOLECNA CAST
ZDIL7:	RRC			;ROTACE V PRAVO
	JNC	ZDIL5
;ZOBRAZI IN
	MVI	M,'I'
	INX	H
	MVI	M,'N'
	INX	H
	MVI	M,' '
	JMP	ZDIL6	
;ZOBRAZI OUT
ZDIL5:	MVI	M,'O'
	INX	H
	MVI	M,'U'
	INX	H
	MVI	M,'T'
ZDIL6:	DAD	D		;NOVA ADRESA V POLI
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL7		;NENI-LI KONEC ZNOVU
	RET

;-------------------------------
;ZOBRAZI NZ, SPOLECNA CAST
ZDIL10:	RRC			;ROTACE V PRAVO
	JNC	ZDIL11
;ZOBRAZI NZ
	MVI	M,'N'
	INX	H
	MVI	M,'C'
	INX	H
	MVI	M,' '
	JMP	ZDIL12
ZDIL11:	INX	H
	INX	H
ZDIL12:	DAD	D		;NOVA ADRESA V POLI
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL10		;NENI-LI KONEC ZNOVU
	RET

;-------------------------------
;ZOBRAZI 0 1, SPOLECNA CAST
ZDIL8:	RRC			;ROTACE V PRAVO
	MVI	M,'0'
	JNC	ZDIL9	
	MVI	M,'1'
ZDIL9:	DAD	D		;NOVA ADRESA V POLI
	DCR	C		;POCET RADKU -1
	JNZ	ZDIL8		;NENI-LI KONEC ZNOVU
	RET

;-------------------------------
;PREVOD Z BIN/DEC NA TXT
DEC:	PUSH	PSW		;ZAPISE DO POLE CISLO Z <A>
	CALL	HDEC
	CPI	'0'
	JNZ	DEC1
	MVI	A,' '
DEC1:	MOV	M,A
	POP	PSW
DEC2:	CALL	LDEC		;ZAPISE DO POLE NIBBLE <A>
	INX	H
	MOV	M,A
	RET
;-------------------------------
HDEC:	RRC
	RRC
	RRC
	RRC
LDEC:	ANI	0FH
	ADI	30H		;PREVOD DEC-->ASCII
	RET

;-------------------------------
;DUMP:	LXI	H,POLE2		;POCATEK POLE K ZOBRAZENI
;	LXI	D,512		;DELKA
;DUMP1:	MOV	A,L
;	ANI	00001111B	;JEN SPODNI 4 MITY
;	PUSH	D	;
;	PUSH	PSW	;
;	CZ	CRLF
;	MOV	A,L
;	ANI	01111111B
;	CZ	CRLF
;	POP	PSW	;
;	CZ	HADR
;	MVI	A,' '		;MEZERU
;	CALL	COA
;	MOV	A,L
;	ANI	00000011B
;	MVI	A,' '		;MEZERU
;	CZ	COA
;	POP	D	;
;	MOV	A,M
;	CALL	DBYT
;	INX	H
;	DCX	D
;	MOV	A,E
;	ORA	D
;	JNZ	DUMP1		;NENI-LI KONEC TAK ZNOVU
;	JMP	CRLF2

;-------------------------------
;TABULKA POCATECNICH CISEL A ADRES GND VCC A ODKUD ZOBRAZOVAT
TABD1:	DB	97H,9H		;POCATECNI CISLA	DIL5_12
	DW	POLE+40*4	;ADRESA ODKUD ZOBRAZOVAT
	DW	POLE+23+40*8	;GND
	DW	POLE+12+40*8	;VCC
	DB	97H,9H		;DIL4_12
	DW	POLE+40*4
	DW	POLE+23+40*8
	DW	POLE+12+40*7
	DB	97H,9H		;DIL4_13
	DW	POLE+40*4
	DW	POLE+23+40*7
	DW	POLE+12+40*7
	DB	97H,9H		;DIL5_13
	DW	POLE+40*4
	DW	POLE+23+40*7
	DW	POLE+12+40*8
	DB	96H,8H		;DIL14
	DW	POLE+40*5
	DW	POLE+12+40*11
	DW	POLE+23+40*5
	DB	97H,9H		;DIL16
	DW	POLE+40*4
	DW	POLE+12+40*11
	DW	POLE+23+40*4
	DB	99H,11H		;DIL20
	DW	POLE+40*2
	DW	POLE+12+40*11
	DW	POLE+23+40*2
	DB	1H,13H		;DIL24
	DW	POLE
	DW	POLE+12+40*11
	DW	POLE+23

;-------------------------------
; TABULKA DELEK IO PRO MERENI NAPETI
DILDEL:	DB	8,8,8,8,7,8,10,12

;-------------------------------
;NAPETOVE KONSTANY PRO KONTROLU LOG. UROVNI TTL A CMOS
;TTL
NTTL:	DB	00H,80H		;UIL VSTUPNI LOG0 MAX 0.80V
	DB	02H,00H		;UIH VSTUPNI LOG1 MIN 2.00V
	DB	00H,40H		;UOL VYSTUPNI LOG0 MAX 0.40V
	DB	02H,40H		;UOH VYSTUPNI LOG1 MIN 2.40V
;CMOS 5V
NCMOS:	DB	01H,50H		;UIL VSTUPNI LOG0 MAX 1.50V
	DB	03H,50H		;UIH VSTUPNI LOG1 MIN 3.50V
	DB	00H,50H		;UOL VYSTUPNI LOG0 MAX 0.50V
	DB	04H,44H		;UOH VYSTUPNI LOG1 MIN 4.44V

;===============================
;TEXTY			  1	    2	      3		4	  5	    6
;		 1234567890123456789012345678901234567890123456789012345678901234
UVOD:	DB	CR,LF,'IO TEST - ZAKLADNI FUNKCNI TEST',CR,LF
	DB	'C 11.12.2023EC'
HELPT:	DB	CR,LF,CR,LF
	DB	'"<"   - PREDCHOZI POLOZKA',CR,LF
	DB	'">"   - NASLEDUJICI POLOZKA',CR,LF
	DB	'"CR"  - VYBER',CR,LF
	DB	'"?"   - NAPOVEDA',CR,LF
	DB	'"ESC" - O UROVEN VYS',CR,LF
	DB	'"K"   - ZAPNE / VYPNE KROKOVANI',CR,LF
	DB	'"Z"   - ZAPNE / VYPNE ZOBRAZENI DIL',CR,LF
	DB	'"M"   - ZAPNE / VYPNE ZOBRAZENI NAPETI',CR,LF
	DB	'"T"   - ZAPNE / VYPNE TRIDENI NAPETI',CR,LF
	DB	'"L"   - KONTROLA LOG. UROVNI TTL/CMOS',CR,LF
	DB	'"*"   - STAV PREPINACU',CR,LF
	DB	'"#"   - NASTAVENI PREVODNIKU ADP-1',CR,LF
	DB	'"^C"  - KONEC PROGRAMU$' 
KONECT:	DB	'KONEC PROGRAMU'
CRLFT:		CR,LF,'$'
VYB1T:	DB	'VYBER SADU IO$'
VYB2T:	DB	'VYBER IO$'
POKT:	DB	'"CR"  - SPUSTIT TEST',CR,LF
	DB	'"ESC" - NAVRAT NA VYBER IO$'
ZALOZT:	DB	'ZALOZ IO',CR,LF
	DB	'"CR" - PRO POKRACOVANI',CR,LF,'$'
ERR1T:	DB	' 1$'
ERR2T:	DB	' 2$'
ERR3T:	DB	' 3$'
TKT:	DB	'KONEC TESTU$'
NEZKO:	DB	CR,LF,'NEZNAMY KOD$'
TNICT:	DB	'NENI TESTOVACI TABULKA$'
ZAPT:	DB	' ZAPNUTO',CR,LF,CR,LF,'$'
VYPT:	DB	' VYPNUTO',CR,LF,CR,LF,'$'
KROKT:	DB	'KROKOVANI$'
ZOBRT:	DB	'ZOBRAZENI DIL$'
MNAPT:	DB	'ZOBRAZENI NAPETI U DIL$'
CHPOT:	DB	CR,LF,'CHYBA'
PORTT:	DB	' PORT$'
TABT:	DB	' DATA$'
TADPT:	DB	'NENI NEBO CHYBA$'
TADP1:	DB	'  ADP-1/0DH $'
TADP2:	DB	'  ADP-1/0EH $'
TADP2M:	DB	'  ../0EH $'
TTPOP:	DB	'NASTAVENI PREVODNIKU ADP-1',CR,LF
	DB	'"0"  - ZESILENI A= 1',CR,LF
	DB	'"1"  - ZESILENI A=10',CR,LF
	DB	'"CR" - KONEC$'
TZA1:	DB	'A=1   $'
TZA10:	DB	'A=10$'
ZTNT:	DB	'TRIDENI NAPETI$'
MEZ10T:	DB	'          $'
PZTTNT:	DB	CR,LF,' IN 0      IN 1      OUT 0     OUT 1',CR,LF,'$'
VELNT:	DB	'* - ROZDIL LOG. UROVNI VETSI NEZ 0.',VELN1,VELN2,'V',CR,LF,'$'
CHLOGT:	DB	'! - NAPETI LOG. UROVNE MIMO TOLERANCI',CR,LF,'$'
TTLT:	DB	'TTL',CR,LF,CR,LF,'$'
CMOST:	DB	'CMOS',CR,LF,CR,LF,'$'
LOGT:	DB	'KONTROLA LOG. UROVNI $'

	IF	POPIS

TXO12:	DB	'-O12 $'
TXO123:	DB	'-O123 $'
TXO1:	DB	'-O1 $'
TXO2:	DB	'-O2 $'
TXO3:	DB	'-O3 $'
TXO13:	DB	'-O13 $'
TXO23:	DB	'-O23 $'
TXI12:	DB	'-I12 $'
TXI123:	DB	'-I123 $'
TXI1:	DB	'-I1 $'
TXI2:	DB	'-I2 $'
TXI3:	DB	'-I3 $'
TXI13:	DB	'-I13 $'
TXI23:	DB	'-I23 $'
TXVV2:	DB	'-VV2 $'
TXVV3:	DB	'-VV3 $'
TXNAP:	DB	'-NAP $'
TXGOTO:	DB	'-GOTO $'
TXGOSUB:DB	'-GOSUB $'
TXRET:	DB	'-RET $'
TXPROG:	DB	'-PROG $'
TXNZ2:	DB	'-NZ2 $'
TXNZ3:	DB	'-NZ3 $'
TXZIF14:DB	'-ZIF14'
TXNDEF:	DB	' $'

;*****************************
;PROMNENE

OPR:	DS	2	;ADRESA TEXTU PROVADENE OPRACE Z TABULKY

	ENDIF

ZTAB:	DS	2	;ZACATEK AKTIVNI TABULKY
KTAB:	DS	2	;KONEC AKTIVNI TABULKY
PTAB:	DS	2	;POZICE V AKTIVNI TABULCE
TTAB:	DS	2	;ADRESA AKTIVNI TEST TABULKY
STAB:	DS	2	;ADRESA V TABULCE SKUPIN IO
ANAP:	DS	1	;AKTUALNI NAPAJANI
PP:	DS	1	;POCET PRUOCHODU TESTEM
VVP:	DS	1	;PRIZNAK V/V PARAMETRU
WZTAB:	DS	2	;V/V ZALOHA V TABULCE
AGOSUB:	DS	2	;USCHOVA ADRESY PRO NAVRAT PRI "GOSUB"
KROKO:	DS	1	;PRIZNAK KROKOVANI

;PRO ZOBRAZOVANI DIL
ZOBRO:	DS	1	;PRIZNAK ZOBRAZENI DIL
MNAP:	DS	1	;PRIZNAK MERENI NAPETI PRI ZOBRAZENI DIL
PAKNAP:	DS	1	;PRIZNAK ADRESY PRO ZAPIS DRUHE POLOVINY NAPETI
KTN:	DS	1	;PRIZNAK TRIDENI NAPETI
LOG:	DS	1	;PRIZNAK PRO TYP KONTROLOVANYCH LOG. UROVNI TTL/CMOS
POUT1:	DS	1	;PRIZNAK PRO OUT 1 PRI VYPISECH
DIL:	DS	1	;KDE NAPAJENI
CHLOG:	DS	1	;PRIZNAK CHYBI KONKRETNI ZOBRAZOVANE LOG UROVNE
CHLOG1:	DS	1	;CELKOVY PRIZNAK ZE JE CHYBA LOG UROVNE
VVZ:	DS	3	;CO JE VSTUP A VYSTUP
VDAT:	DS	3	;ZAPISOVANA DATA PRO ZOBRAZENI DIL
CDAT:	DS	3	;CTENA DATA PRO ZOBRAZENI DIL
HLERR:	DS	2	;ARESA V TABULCE DAT PRI CHYBE
DEERR:	DS	2	;ARESA CHIBOVE HLASKY PRI CHYBE
NCZ:	DS	3	;KDE NEZAPOJENE VYVODY
ZIF14:	DS	1	;JE DIL14 V ZIF16
ERR:	DS	1	;PRIZNAK CHYBY
AKNAP:	DS	2	;ARESA V TABULCE PRO ZPRACOVANI NAPETI
PR:	DS	1	;POCITALO PRO PRAZDNZ RADEK (TRIDENE NAPETI)
RNAP:	DS	4	;ROZDILOVE NAPETI PRO TISK
POLE:	DS	480	;DATOVE POLE PRO ZOBRAZENI DIL (38+CR+LF*12)
;********************************

	DS	64
STACK:
	DS	1
;
;********************************

;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;$$	DATOVE POLE	      $$
;$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

;===============================
;SEZNAM SKUPIN IO
;		 1234567890123456
SADYIO:
	DB	'7400 - 7499     $'	;SKIPINA IO (16 ZNAKU + $)
TEXTP	EQU	$-SADYIO		;DELKA TEXTU
	DW	I7400			;POCATEK SKUPINY IO
	DW	I7400K			;KONEC SKUPINY IO
BLOKP	EQU	$-SADYIO		;DELKA BLOKU

	DB	'74100 - 74199   $'
	DW	I74100
	DW	I74100K

	DB	'74200 - 74299   $'
	DW	I74200
	DW	I74200K

	DB	'74300 - 74399   $'
	DW	I74300
	DW	I74300K

	DB	'74400 - 74499   $'
	DW	I74400
	DW	I74400K

	DB	'74500 - 74599   $'
	DW	I74500
	DW	I74500K

	DB	'74600 - 74699   $'
	DW	I74600
	DW	I74600K

	DB	'74700 - 74...   $'
	DW	I74700
	DW	I74700K

	DB	'4000 - 4099     $'
	DW	I4000
	DW	I4000K

	DB	'4500 - 4599     $'
	DW	I4500
	DW	I4500K

	DB	'4XXX - 4XXXX    $'
	DW	I4XXX
	DW	I4XXXK

	DB	'32XX, 82XX, ... $'
	DW	I3200
	DW	I3200K

	DB	'DDR 7seg. dekod.$'
	DW	IDDR
	DW	IDDRK

	DB	'75XXX           $'
	DW	I75XXX
	DW	I75XXXK

	DB	'OSTATNI IO      $'
	DW	OIO
	DW	OIOK

	IF	RUS

	DB	'CCCP TTL        $'
	DW	IRUS
	DW	IRUSK

	ENDIF

	IF	TESLA

	DB	'TESLA MH74/MH74S$'
	DW	ITESLA
	DW	ITESLAK

	ENDIF

	DB	'TEST TESTERU IO $'
	DW	ITEST
	DW	ITESTK

SADYIOK:
;===============================
;SEZNAM SKUPINY 7400 - 7499
;		 1234567890123456
I7400:
	DB	'7400     LA3 LB3$'	;TYP TESTOVANEHO IO
	DW	I7400P			;ADRESA PODROBNEHO POPISU
	DW	I7400T			;TESTOVACI TABULKA
;7401
	DB	'7401     LA8 LB0$'
	DW	I7401P
	DW	I7401T
;7402
	DB	'7402         LE1$'
	DW	I7402P
	DW	I7402T
;7403
	DB	'7403         LA9$'
	DW	I7401P
	DW	I7400T
;7404
	DB	'7404         LN1$'
	DW	I7404P
	DW	I7404T
;7405
	DB	'7405         LN2$'
	DW	I7405P
	DW	I7404T
;7406
	DB	'7406         LN3$'
	DW	I7406P
	DW	I7404T
;7407
	DB	'7407     LN4 LP9$'
	DW	I7407P
	DW	I7407T
;7408
	DB	'7408         LI1$'
	DW	I7408P
	DW	I7408T
;7409
	DB	'7409         LI2$'
	DW	I7409P
	DW	I7408T
;7410
	DB	'7410     LA4 LB4$'
	DW	I7410P
	DW	I7410T
;7411
	DB	'7411         LI3$'
	DW	I7411P
	DW	I7411T
;7412
	DB	'7412        LA10$'
	DW	I7412P
	DW	I7410T
;7413
	DB	'7413         TL1$'
	DW	I7413P
	DW	I7413T
;7414
	DB	'7414         TL2$'
	DW	I7414P
	DW	I7404T
;7415
	DB	'7415         LI4$'
	DW	I7415P
	DW	I7411T
;7416
	DB	'7416         LN5$'
	DW	I7416P
	DW	I7404T
;7417
	DB	'7417         LP4$'
	DW	I7417P
	DW	I7407T
;7418
	DB	'7418           .$'
	DW	I7418P
	DW	I7413T
;7419
	DB	'7419           .$'
	DW	I7419P
	DW	I7404T
;7420
	DB	'7420     LA1 LB1$'
	DW	I7420P
	DW	I7413T
;7421
	DB	'7421         LI6$'
	DW	I7421P
	DW	I7421T
;7422
	DB	'7422     LA7 LB7$'
	DW	I7422P
	DW	I7413T
;7423
	DB	'7423        LE2R$'
	DW	I7423P
	DW	I7423T
;7423 + 7460
	DB	'7423 + 7460    R$'
	DW	I7423P
	DW	I7423R
;7424
	DB	'7424            $'
	DW	I7424P
	DW	I7400T
;7425
	DB	'7425         LE3$'
	DW	I7425P
	DW	I7425T
;7426
	DB	'7426        LA11$'
	DW	I7426P
	DW	I7400T
;7427
	DB	'7427         LE4$'
	DW	I7427P
	DW	I7427T
;7428
	DB	'7428         LE5$'
	DW	I7428P
	DW	I7402T
;7430
	DB	'7430     LA2 LB2$'
	DW	I7430P
	DW	I7430T
;7431
	DB	'7431            $'
	DW	I7431P
	DW	I7431T
;7432
	DB	'7432         LL1$'
	DW	I7432P
	DW	I7432T
;7433
	DB	'7433        LE11$'
	DW	I7433P
	DW	I7402T
;7434
	DB	'7434        LI9*$'
	DW	I7434P
	DW	I7407T
;7435
	DB	'7435           *$'
	DW	I7435P
	DW	I7407T
;7436
	DB	'7436          nt$'
	DW	I7436P
	DW	I7436T
;7437
	DB	'7437        LA12$'
	DW	I7437P
	DW	I7400T
;7438
	DB	'7438        LA13$'
	DW	I7438P
	DW	I7400T
;7439
	DB	'7439            $'
	DW	I7438P
	DW	I7401T
;7440
	DB	'7440     LA6 LB6$'
	DW	I7440P
	DW	I7413T
;7441
	DB	'7441            $'
	DW	I7441P
	DW	I7441T
;7442
	DB	'7442         ID6$'
	DW	I7442P
	DW	I7442T
;7443
	DB	'7443            $'
	DW	I7443P
	DW	I7443T
;7444
	DB	'7444            $'
	DW	I7444P
	DW	I7444T
;7445
	DB	'7445        ID24$'
	DW	I7445P
	DW	I7442T
;7446
	DB	'7446            $'
	DW	I7446P
	DW	I7446T
;7447
	DB	'7447            $'
	DW	I7447P
	DW	I7446T
;7448
	DB	'7448            $'
	DW	I7448P
	DW	I7448T
;7449
	DB	'7449         PP4$'
	DW	I7449P
	DW	I7449T
;7450
	DB	'7450       LR1 R$'
	DW	I7450P
	DW	I7450T
;7450 + 7460
	DB	'7450 + 7460    R$'
	DW	I7450P
	DW	I7450R
;7451
	DB	'7451        LR11$'
	DW	I7451P
	DW	I7451T
;74LS51
	DB	'74LS51      LR11$'
	DW	I74X51P
	DW	I74LS51
;7453
	DB	'7453       LR3 R$'
	DW	I7453P
	DW	I7453T
;7453 + 7460
	DB	'7453 + 7460    R$'
	DW	I7453P
	DW	I7453R
;7454
	DB	'7454        LR13$'
	DW	I7454P
	DW	I7454T
;74LS54
	DB	'74LS54      LR13$'
	DW	I74X54P
	DW	I74LS54
;7455
	DB	'7455       LR4 R$'
	DW	I7455P
	DW	I7455T
;7455 + 7460
	DB	'7455 + 7460    R$'
	DW	I7455P
	DW	I7455R
;74LS55
	DB	'74LS55      LR4 $'
	DW	I74X55P
	DW	I74LS55
;7458
	DB	'7458            $'
	DW	I7458P
	DW	I7458T
;7460 + 7423, 7450, 7453, 7455
	DB	'7460+X LP1 LD1 R$'
	DW	I7460P
	DW	I7460T
;7464
	DB	'7464         LR9$'
	DW	I7464P
	DW	I7464T
;7465
	DB	'7465        LR10$'
	DW	I7465P
	DW	I7464T
;7472
	DB	'7472     TV1 TK1$'
	DW	I7472P
	DW	I7472T
;7473
	DB	'7473            $'
	DW	I7473P
	DW	I7473T
;7474
	DB	'7474     TM2 TK2$'
	DW	I7474P
	DW	I7474T
;7475
	DB	'7475         TM7$'
	DW	I7475P
	DW	I7475T
;7476
	DB	'7476         TK3$'
	DW	I7476P
	DW	I7476T
;7477
	DB	'7477         TM5$'
	DW	I7477P
	DW	I7477T
;7481
	DB	'7481         RU1$'
	DW	I7481P
	DW	I7481T
;7483
	DB	'7483         IM3$'
	DW	I7483P
	DW	I7483T
;7485
	DB	'7485         SP1$'
	DW	I7485P
	DW	I7485T
;7486
	DB	'7486         LP5$'
	DW	I7486P
	DW	I7486T
;74L86
	DB	'74L86        LP5$'
	DW	I7486P
	DW	I74386T
;7489
	DB	'7489         RU2$'
	DW	I7489P
	DW	I7489T
;7490
	DB	'7490         IE2$'
	DW	I7490P
	DW	I7490T
;7491
	DB	'7491         IR2$'
	DW	I7491P
	DW	I7491T
;7492
	DB	'7492         IE4$'
	DW	I7492P
	DW	I7492T
;7493
	DB	'7493         IE5$'
	DW	I7493P
	DW	I7493T
;7495
	DB	'7495         IR1$'
	DW	I7495P
	DW	I7495T
;7496
	DB	'7496            $'
	DW	I7496P
	DW	I7496T
;7497
	DB	'7497         IE8$'
	DW	I7497P
	DW	I7497T
I7400K:
;===============================
;SEZNAM SKUPINY 74100 - 74199
;		 1234567890123456
I74100:
	DB	'74100      TK7 R$'
	DW	I74100P
	DW	I74100T
;74106
	DB	'74106           $'
	DW	I7476P
	DW	I7476T
;74107
	DB	'74107        TV6$'
	DW	I74107P
	DW	I74107T
;74109
	DB	'74109       TV15$'
	DW	I74109P
	DW	I74109T
;74110
	DB	'74110           $'
	DW	I7472P
	DW	I7472T
;74111
	DB	'74111           $'
	DW	I74109P
	DW	I74111T
;74112
	DB	'74112        TV9$'
	DW	I74109P
	DW	I74112T
;74113
	DB	'74113       TV10$'
	DW	I74113P
	DW	I74113T
;74114
	DB	'74114       TV11$'
	DW	I74114P
	DW	I74114T
;74119
	DB	'74119           $'
	DW	I74119P
	DW	I74119T
;74121
	DB	'74121      AG1 R$'
	DW	I74121P
	DW	I74121T
;74123
	DB	'74123      AG3 R$'
	DW	I74123P
	DW	I74123T
;74125
	DB	'74125        LP8$'
	DW	I74125P
	DW	I74125T
;74126
	DB	'74126       LP14$'
	DW	I74125P
	DW	I74126T
;74128
	DB	'74128        LE6$'
	DW	I74128P
	DW	I7402T
;74130
;	DB	'74130           $'
;	DW	I74130P
;	DW	I74130T
;74131
	DB	'74131           $'
	DW	I74131P
	DW	I74131T
;74132
	DB	'74132        TL3$'
	DW	I74132P
	DW	I7400T
;74133
	DB	'74133           $'
	DW	I74133P
	DW	I74133T
;74136
	DB	'74136   LL3 LP12$'
	DW	I74136P
	DW	I7486T
;74137
	DB	'74137           $'
	DW	I74137P
	DW	I74137T
;74138
	DB	'74138        ID7$'
	DW	I74138P
	DW	I74138T
;74139
	DB	'74139       ID14$'
	DW	I74139P
	DW	I74139T
;74140
	DB	'74140       LA16$'
	DW	I74140P
	DW	I7420T
;74141
	DB	'74141        ID1$'
	DW	I74141P
	DW	I7441T
;74143
	DB	'74143           $'
	DW	I74143P
	DW	I74143T
;74144
	DB	'74144           $'
	DW	I74144P
	DW	I74143T
;74145
	DB	'74145       ID10$'
	DW	I74145P
	DW	I7442T
;74147
	DB	'74147        IV3$'
	DW	I74147P
	DW	I74147T
;74148
	DB	'74148        IV1$'
	DW	I74148P
	DW	I74148T
;74150
	DB	'74150        KP1$'
	DW	I74150P
	DW	I74150T
;74151
	DB	'74151        KP7$'
	DW	I74151P
	DW	I74151T
;74152
	DB	'74152        KP5$'
	DW	I74152P
	DW	I74152T
;74153
	DB	'74153        KP2$'
	DW	I74153P
	DW	I74153T
;74154
	DB	'74154        ID3$'
	DW	I74154P
	DW	I74154T
;74155
	DB	'74155        ID4$'
	DW	I74155P
	DW	I74155T
;74156
	DB	'74156        ID5$'
	DW	I74156P
	DW	I74155T
;74157
	DB	'74157       KP16$'
	DW	I74157P
	DW	I74157T
;74158
	DB	'74158       KP18$'
	DW	I74158P
	DW	I74158T
;74159
	DB	'74159       ID19$'
	DW	I74159P
	DW	I74154T
;74160
	DB	'74160        IE9$'
	DW	I74160P
	DW	I74160T
;74161
	DB	'74161       IE10$'
	DW	I74161P
	DW	I74161T
;74162
	DB	'74162       IE11$'
	DW	I74162P
	DW	I74162T
;74163
	DB	'74163       IE18$'
	DW	I74163P
	DW	I74163T
;74164
	DB	'74164        IR8$'
	DW	I74164P
	DW	I74164T
;74165
	DB	'74165        IR9$'
	DW	I74165P
	DW	I74165T
;74166
	DB	'74166       IR10$'
	DW	I74166P
	DW	I74166T
;74168
	DB	'74168       IE16$'
	DW	I74168P
	DW	I74168T
;74169
	DB	'74169       IE17$'
	DW	I74169P
	DW	I74169T
;74170
	DB	'74170   IR32 RP1$'
	DW	I74170P
	DW	I74170T
;74173
	DB	'74173       IR15$'
	DW	I74173P
	DW	I74173T
;74174
	DB	'74174        TM9$'
	DW	I74174P
	DW	I74174T
;74175
	DB	'74175        TM8$'
	DW	I74175P
	DW	I74175T
;74176
	DB	'74176          .$'
	DW	I74176P
	DW	I74176T
;74177
	DB	'74177         nt$'
	DW	I74177P
	DW	I74177T
;74180
	DB	'74180        IP2$'
	DW	I74180P
	DW	I74180T
;74181
	DB	'74181        IP3$'
	DW	I74181P
	DW	I74181T
;74182
	DB	'74182        IP4$'
	DW	I74182P
	DW	I74182T
;74184
	DB	'74184        PR6$'
	DW	I74184P
	DW	I74184T
;74185
	DB	'74185        PR7$'
	DW	I74185P
	DW	I74185T
;74188
	DB	'74188           $'
	DW	I74188P
	DW	I74188T
;74189
	DB	'74189        RU8$'
	DW	I74189P
	DW	I74189T
;74190
	DB	'74190    IE12 nt$'
	DW	I74168P
	DW	I74190T
;74191
	DB	'74191       IE13$'
	DW	I74169P
	DW	I74191T
;74192
	DB	'74192        IE6$'
	DW	I74192P
	DW	I74192T
;74193
	DB	'74193        IE7$'
	DW	I74193P
	DW	I74193T
;74194
	DB	'74194       IR11$'
	DW	I74194P
	DW	I74194T
;74195
	DB	'74195       IR12$'
	DW	I74195P
	DW	I74195T
;74196
	DB	'74196       IE14$'
	DW	I74176P
	DW	I74176T
;74197
	DB	'74197    IE15 nt$'
	DW	I74177P
	DW	I74177T
;74198
	DB	'74198       IR13$'
	DW	I74198P
	DW	I74198T
I74100K:
;===============================
;SEZNAM SKUPINY 74200 - 74299
;		 1234567890123456
I74200:
;74225
;	DB	'74225      RU10#$'
;	DW	I74225P
;	DW	I74225T
;74238
	DB	'74238       ID19$'
	DW	I74138P
	DW	I74238T
;74240
	DB	'74240        AP3$'
	DW	I74240P
	DW	I74240T
;74241
	DB	'74241        AP4$'
	DW	I74241P
	DW	I74241T
;74242
	DB	'74242        IP6$'
	DW	I74242P
	DW	I74242T
;74243
	DB	'74243        IP7$'
	DW	I74243P
	DW	I74243T
;74244
	DB	'74244        AP5$'
	DW	I74244P
	DW	I74244T
;74245
	DB	'74245        AP6$'
	DW	I74245P
	DW	I74245T
;74246
	DB	'74246           $'
	DW	I7446P
	DW	ID146T
;74247
	DB	'74247       ID18$'
	DW	I74247P
	DW	ID146T
;74248
	DB	'74248           $'
	DW	I7448P
	DW	I74248T
;74249
	DB	'74249           $'
	DW	I74249P
	DW	I74248T
;74251
	DB	'74251       KP15$'
	DW	I74251P
	DW	I74251T
;74253
	DB	'74253       KP12$'
	DW	I74253P
	DW	I74253T
;74256
	DB	'74256           $'
	DW	I74256P
	DW	I74256T
;74257
	DB	'74257       KP11$'
	DW	I74257P
	DW	I74257T
;74258
	DB	'74258       KP14$'
	DW	I74258P
	DW	I74158T
;74259
	DB	'74259       IR30$'
	DW	I74259P
	DW	I74259T
;74260
	DB	'74260        LE7$'
	DW	I74260P
	DW	I74260T
;74265
	DB	'74265           $'
	DW	I74265P
	DW	I74265T
;74266
	DB	'74266       LP12$'
	DW	I74266P
	DW	I74266T
;74273
	DB	'74273       IR35$'
	DW	I74273P
	DW	I74273T
;74276
	DB	'74276           $'
	DW	I74276P
	DW	I74276T
;74279
	DB	'74279        TR2$'
	DW	I74279P
	DW	I74279T
;74280
	DB	'74280        IP5$'
	DW	I74180P
	DW	I74280T
;74283
	DB	'74283        IM6$'
	DW	I74283P
	DW	I74283T
;74287
	DB	'74287           $'
	DW	I74287P
	DW	I74287T
;74290
	DB	'74290           $'
	DW	I74290P
	DW	I74290T
;74292
;	DB	'74292       PC1?$'
;	DW	I74292P
;	DW	I74292T
;74293
	DB	'74293           $'
	DW	I74293P
	DW	I74293T
;74295
	DB	'74295       IR16$'
	DW	I74295P
	DW	I74295T
;74298
	DB	'74298       KP13$'
	DW	I74298P
	DW	I74298T
;74299
	DB	'74299       IR24$'
	DW	I74299P
	DW	I74299T
I74200K:
;===============================
;SEZNAM SKUPINY 74300 - 74399
;		 1234567890123456
I74300:
;74322
	DB	'74322       IR28$'
	DW	I74322P
	DW	I74322T
;74348
	DB	'74348        IV2$'
	DW	I74348P
	DW	I74148T
;74351
	DB	'74351           $'
	DW	I74351P
	DW	I74351T
;74352
	DB	'74352       KP19$'
	DW	I74352P
	DW	I74352T
;74353
	DB	'74353       KP17$'
	DW	I74353P
	DW	I74352T
;74363
	DB	'74363           $'
	DW	I74363P
	DW	I74363T
;74365
	DB	'74365       LP10$'
	DW	I74365P
	DW	I74365T
;74366
	DB	'74366        LN6$'
	DW	I74366P
	DW	I74366T
;74367
	DB	'74367  LL11 LP11$'
	DW	I74367P
	DW	I74367T
;74368
	DB	'74368        LN7$'
	DW	I74368P
	DW	I74368T
;74373
	DB	'74373       IR22$'
	DW	I74373P
	DW	I74363T
;74374
	DB	'74374       IR23$'
	DW	I74374P
	DW	I74374T
;74377
	DB	'74377       IR27$'
	DW	I74377P
	DW	I74377T
;74378
	DB	'74378           $'
	DW	I74378P
	DW	I74378T
;74379
	DB	'74379       TM10$'
	DW	I74379P
	DW	I74379T
;74386
	DB	'74386           $'
	DW	I7486P
	DW	I74386T
;74390
	DB	'74390       IE20$'
	DW	I74390P
	DW	I74390T
;74393
	DB	'74393       IE19$'
	DW	I74393P
	DW	I74393T
;74395
	DB	'74395       IR25$'
	DW	I74395P
	DW	I74395T
;74399
	DB	'74399       KP20$'
	DW	I74399P
	DW	I74399T
I74300K:
;===============================
;SEZNAM SKUPINY 74400 - 74499
;		 1234567890123456
I74400:
;74405
	DB	'74405           $'
	DW	I74138P
	DW	I74138T
;74412
	DB	'74412           $'
	DW	I74412P
	DW	I74412T
;74414
	DB	'74414           $'
	DW	I74414P
	DW	I74414T
;74416
	DB	'74416           $'
	DW	I74416P
	DW	I74416T
;74426
	DB	'74426           $'
	DW	I74426P
	DW	I74426T
;74440
	DB	'74440          .$'
	DW	I74440P
	DW	I74442T
;74441
	DB	'74441          .$'
	DW	I74441P
	DW	I74443T
;74442
	DB	'74442           $'
	DW	I74442P
	DW	I74442T
;74443
	DB	'74443           $'
	DW	I74443P
	DW	I74443T
;74444
	DB	'74444           $'
	DW	I74444P
	DW	I74444T
;74448
	DB	'74448          .$'
	DW	I74448P
	DW	I74444T
;74461
	DB	'74461           $'
	DW	I74461P
	DW	I74461T
;74482
	DB	'74482           $'
	DW	I74482P
	DW	I74482T
;74483
	DB	'74483           $'
	DW	I74483P
	DW	I74483T
;74486
	DB	'74486           $'
	DW	I74245P
	DW	I74486T
;74487
	DB	'74487           $'
	DW	I74487P
	DW	I74487T
I74400K:
;===============================
;SEZNAM SKUPINY 74500 - 74599
;		 1234567890123456
I74500:
;74518
	DB	'74518         nt$'
	DW	I74518P
	DW	I74518T
;74520
	DB	'74520          .$'
	DW	I74520P
	DW	I74521T
;74521
	DB	'74521           $'
	DW	I74520P
	DW	I74521T
;74533
;	DB	'74533       IR40$'
;	DW	I74533P
;	DW	I74533T
;74534
	DB	'74534       IR41$'
	DW	I74534P
	DW	I74534T
;74540
	DB	'74540       AP12$'
	DW	I74540P
	DW	I74540T
;74541
	DB	'74541       AP13$'
	DW	I74541P
	DW	I74541T
;74563
	DB	'74563           $'
	DW	I74563P
	DW	I74563T
;74564
	DB	'74564           $'
	DW	I74534P
	DW	I74564T
;74571
	DB	'74571           $'
	DW	I74571P
	DW	I74571T
;74573
	DB	'74573       IR33$'
	DW	I74373P
	DW	I74573T
;74574
	DB	'74574       IR37$'
	DW	I74374P
	DW	I74574T
;74576
	DB	'74576           $'
	DW	I74534P
	DW	I74564T
;74580
	DB	'74580           $'
	DW	I74563P
	DW	I74563T
;74595
	DB	'74595           $'
	DW	I74595P
	DW	I74595T
;74596
	DB	'74596          .$'
	DW	I74596P
	DW	I74595T
I74500K:
;===============================
;SEZNAM SKUPINY 74600 - 74699
;		 1234567890123456
I74600:
;74638
	DB	'74638          .$'
	DW	I74638P
	DW	I74640T
;74639
	DB	'74639           $'
	DW	I74639P
	DW	I74245T
;74640
	DB	'74640        AP9$'
	DW	I74640P
	DW	I74640T
;74641
	DB	'74641        AP7$'
	DW	I74641P
	DW	I74245T
;74642
	DB	'74642           $'
	DW	I74642P
	DW	I74640T
;74643
	DB	'74643       AP16$'
	DW	I74643P
	DW	I74643T
;74644
	DB	'74644           $'
	DW	I74644P
	DW	I74643T
;74645
	DB	'74645        AP8$'
	DW	I74245P
	DW	I74245T
;74646
	DB	'74646        VA1$'
	DW	I74646P
	DW	I74646T
;74647
	DB	'74647           $'
	DW	I74647P
	DW	I74646T
;74648
	DB	'74648     VA2 nt$'
	DW	I74648P
	DW	I74648T
;74649
	DB	'74649         nt$'
	DW	I74649P
	DW	I74648T
;74651
	DB	'74651       AP17$'
	DW	I74651P
	DW	I74653T
;74652
	DB	'74652       AP24$'
	DW	I74652P
	DW	I74652T
;74653
	DB	'74653           $'
	DW	I74653P
	DW	I74653T
;74654
	DB	'74654           $'
	DW	I74654P
	DW	I74652T
;74668
	DB	'74668           $'
	DW	I74168P
	DW	I74168T
;74669
	DB	'74669           $'
	DW	I74169P
	DW	I74169T
;74670
	DB	'74670       IR26$'
	DW	I74670P
	DW	I74170T
;74673
	DB	'74673          #$'
	DW	I74673P
	DW	I74673T
;74674
	DB	'74674          #$'
	DW	I74674P
	DW	I74674T
;74688
	DB	'74688           $'
	DW	I74520P
	DW	I74521T
;74690
	DB	'74690           $'
	DW	I74690P
	DW	I74690T
;74691
	DB	'74691           $'
	DW	I74691P
	DW	I74691T
;74692
	DB	'74692           $'
	DW	I74692P
	DW	I74692T
;74693
	DB	'74693           $'
	DW	I74693P
	DW	I74693T
;74696
	DB	'74696           $'
	DW	I74696P
	DW	I74696T
;74697
	DB	'74697           $'
	DW	I74697P
	DW	I74697T
;74698
	DB	'74698           $'
	DW	I74698P
	DW	I74698T
;74699
	DB	'74699           $'
	DW	I74699P
	DW	I74699T
I74600K:
;===============================
;SEZNAM SKUPINY 74700 - 74...
;		 1234567890123456
I74700:
;74794
	DB	'74794           $'
	DW	I74794P
	DW	I74794T
;74821
	DB	'74821           $'
	DW	I74821P
	DW	I74821T
;74827
	DB	'74827           $'
	DW	I74827P
	DW	I74827T
;74828
	DB	'74828         NT$'
	DW	I74828P
	DW	I74828T
;74841
	DB	'74841           $'
	DW	I74841P
	DW	I74841T
;74848
	DB	'74848           $'
	DW	I74348P
	DW	I74148T
;74873
	DB	'74873       IR34$'
	DW	I74873P
	DW	I74873T
;74874
	DB	'74874       IR38$'
	DW	I74874P
	DW	I74874T
;741004
	DB	'741004       LN8$'
	DW	I71004P
	DW	I7404T
;741005
	DB	'741005      LN10$'
	DW	I71005P
	DW	I7404T
;741245
	DB	'741245          $'
	DW	I74245P
	DW	I74245T
I74700K:
;===============================
;SEZNAM SKUPINY 32XX, 82XX, ....
;		 1234567890123456
I3200:
;3205
	DB	'3205, 8205      $'
	DW	I74138P
	DW	I74138T
;3212
	DB	'3212, 8212  IR12$'
	DW	I74412P
	DW	I74412T
;3214
	DB	'3214, 8214  IK14$'
	DW	I74414P
	DW	I74414T
;3216
	DB	'3216, 8216  AP16$'
	DW	I74416P
	DW	I74416T
;3226
	DB	'3226, 8226  AP26$'
	DW	I74426P
	DW	I74426T
;8243
	DB	'8243            $'
	DW	I8243P
	DW	I8243T
;8282
	DB	'8282            $'
	DW	I74482P
	DW	I74482T
;8283
	DB	'8283            $'
	DW	I74483P
	DW	I74483T
;8286
	DB	'8286            $'
	DW	I74245P
	DW	I74486T
;8287
	DB	'8287            $'
	DW	I74487P
	DW	I74487T
I3200K:
;===============================
;SEZNAM SKUPINY  DDR 7seg. dekod.
;		 1234567890123456
IDDR:
;D146
	DB	'D146D/E146D     $'
	DW	I7446P
	DW	ID146T
;D147
	DB	'D147D/E147D     $'
	DW	I7447P
	DW	ID146T
;D345
	DB	'D345D/E345D     $'
	DW	ID345P
	DW	ID345T
;D346
	DB	'D346D/E346D NT R$'
	DW	ID346P
	DW	ID345T
;D347
	DB	'D347D/E347D     $'
	DW	ID347P
	DW	ID347T
;D348
	DB	'D348D/E348D NT R$'
	DW	ID348P
	DW	ID347T
IDDRK:
;===============================
;SEZNAM SKUPINY 4000 - 4099
;		 1234567890123456
I4000:
;4000
	DB	'4000         LP4$'
	DW	I4000P
	DW	I4000T
;4001
	DB	'4001         LE5$'
	DW	I4001P
	DW	I4001T
;4002
	DB	'4002         LE6$'
	DW	I4002P
	DW	I4002T
;4011
	DB	'4011         LA7$'
	DW	I4011P
	DW	I4011T
;4012
	DB	'4012         LA8$'
	DW	I4012P
	DW	I4012T
;4013
	DB	'4013         TM2$'
	DW	I4013P
	DW	I4013T
;4015
	DB	'4015         IR2$'
	DW	I4015P
	DW	I4015T
;4017
	DB	'4017         IE8$'
	DW	I4017P
	DW	I4017T
;4020
	DB	'4020        IE16$'
	DW	I4020P
	DW	I4020T
;4021
	DB	'4021            $'
	DW	I4021P
	DW	I4021T
;4023
	DB	'4023         LA9$'
	DW	I4023P
	DW	I4023T
;4024
	DB	'4024         IE1$'
	DW	I4024P
	DW	I4024T
;4025
	DB	'4025        LE10$'
	DW	I4025P
	DW	I4025T
;4027
	DB	'4027         TV1$'
	DW	I4027P
	DW	I4027T
;4028
	DB	'4028         ID1$'
	DW	I4028P
	DW	I4028T
;4029
	DB	'4029        IE14$'
	DW	I4029P
	DW	I4029T
;4030
	DB	'4030         LP2$'
	DW	I4030P
	DW	I4030T
;4032
	DB	'4032         IM2$'
	DW	I4032P
	DW	I4032T
;4034
	DB	'4034         IR6$'
	DW	I4034P
	DW	I4034T
;4035
	DB	'4035         IR9$'
	DW	I4035P
	DW	I4035T
;4040
	DB	'4040        IE20$'
	DW	I4040P
	DW	I4040T
;4042
	DB	'4042         TM3$'
	DW	I4042P
	DW	I4042T
;4043
	DB	'4043         TR2$'
	DW	I4043P
	DW	I4043T
;4048
	DB	'4048            $'
	DW	I4048P
	DW	I4048T
;4063
	DB	'4063            $'
	DW	I4063P
	DW	I7485T
;4068 NAND-AND
	DB	'4068    NAND-AND$'
	DW	I4068P
	DW	I4068T
;4068 NAND
	DB	'4068        NAND$'
	DW	I4068PA
	DW	I4068TA
;4069
	DB	'4069         PU7$'
	DW	I4069P
	DW	I7404T
;4070
	DB	'4070    LP14 LP2$'
	DW	I4030P
	DW	I4030T
;4071
	DB	'4071            $'
	DW	I4071P
	DW	I4071T
;4072
	DB	'4072            $'
	DW	I4072P
	DW	I4072T
;4073
	DB	'4073            $'
	DW	I4073P
	DW	I4073T
;4075
	DB	'4075            $'
	DW	I4075P
	DW	I4075T
;4076
	DB	'4076        IR14$'
	DW	I4076P
	DW	I4076T
;4077
	DB	'4077            $'
	DW	I4077P
	DW	I4077T
;4078 NOR-OR
	DB	'4078      NOR-OR$'
	DW	I4078P
	DW	I4078T
;4078 NOR
	DB	'4078         NOR$'
	DW	I4078PA
	DW	I4078TA
;4081
	DB	'4081         LI2$'
	DW	I4081P
	DW	I4081T
;4082
	DB	'4082            $'
	DW	I4082P
	DW	I4082T
;4093
	DB	'4093         TL1$'
	DW	I4093P
	DW	I4011T
;4094
	DB	'4094         PR1$'
	DW	I4094P
	DW	I4094T
;4095
	DB	'4095          nt$'
	DW	I4095P
	DW	I4095T
;4096
	DB	'4096          nt$'
	DW	I4095P
	DW	I4096T
;4099
	DB	'4099            $'
	DW	I4099P
	DW	I4099T
I4000K:
;===============================
;SEZNAM SKUPINY 4500 - 4599
;		 1234567890123456
I4500:
;4502
	DB	'4502         LN1$'
	DW	I4502P
	DW	I4502T
;4503
	DB	'4503            $'
	DW	I74367P
	DW	I74367T
;4507
	DB	'4507            $'
	DW	I4030P
	DW	I4030T
;4511
	DB	'4511            $'
	DW	I4511P
	DW	I4511T
;4512
	DB	'4512         KP3$'
	DW	I4512P
	DW	I4512T
;4515
	DB	'4515            $'
	DW	I4515P
	DW	I4515T
;4516
	DB	'4516        IE11$'
	DW	I4516P
	DW	I4516T
;4518
	DB	'4518            $'
	DW	I4518P
	DW	I4518T
;4520
	DB	'4520        IE10$'
	DW	I4520P
	DW	I4520T
;4531
	DB	'4531         SA1$'
	DW	I4531P
	DW	I4531T
;4532
	DB	'4532            $'
	DW	I4532P
	DW	I4532T
;4543
	DB	'4543         ID2$'
	DW	I4543P
	DW	I4543T
;4555
	DB	'4555         ID6$'
	DW	I4555P
	DW	I4555T
;4556
	DB	'4556         ID7$'
	DW	I4556P
	DW	I4556T
;4560
	DB	'4560            $'
	DW	I4560P
	DW	I4560T
;4581
	DB	'4581         IP3$'
	DW	I4581P
	DW	I74181T
;4582
	DB	'4582         IP4$'
	DW	I4582P
	DW	I74182T
;4585
	DB	'4585         IP2$'
	DW	I4063P
	DW	I4585T
I4500K:
;===============================
;SEZNAM SKUPINY 4x00 - 4xxx
;		 1234567890123456
I4XXX:
;4311
	DB	'4311            $'
	DW	I4311P
	DW	I4311T
;40106
	DB	'40106        TL2$'
	DW	I40106P
	DW	I7404T
I4XXXK:
;===============================
;SEZNAM SKUPINY 75XXX
;		 1234567890123456
I75XXX:
;75123
	DB	'75123   559IP4 R$'
	DW	I8T23P
	DW	I8T23T
;75124
	DB	'75124   559IP5/7$'
	DW	I8T24P
	DW	I8T24T
;75160
	DB	'75160           $'
	DW	I75160P
	DW	I75160T
;75161
	DB	'75161           $'
	DW	I75161P
	DW	I75161T
;75162 DIL24
	DB	'75162      DIL24$'
	DW	I75162P
	DW	I75162T
;75162 DIL22
	DB	'75162    DIL22 R$'
	DW	I75162R
	DW	I75162T
;75163
	DB	'75163           $'
	DW	I75160P
	DW	I75160T
I75XXXK:
;===============================
;SEZNAM SKUPINY OSTATNI IO
;		 1234567890123456
OIO:
;MAB1502
	DB	'MAB1502 MAC1502 $'
	DW	I1502P
	DW	I1502T

;MAB1504
	DB	'MAB1504 MAC1504 $'
	DW	I1504P
	DW	I1504T
;MH8641
	DB	'MH/DS8641 559IP3$'
	DW	I8641P
	DW	I8641T
;AM25S05
	DB	'AM25S05      IK1$'
	DW	I25S05P
	DW	I25S05T
;DS8838
	DB	'MH8641 DS8838   $'
	DW	I8641P
	DW	I8641T
;8T23
	DB	'8T23    559IP4 R$'
	DW	I8T23P
	DW	I8T23T
;8T24
	DB	'8T24    559IP5/7$'
	DW	I8T24P
	DW	I8T24T
OIOK:
;===============================
;RAZENI DLE CCCP ZNACENI

	IF	RUS

IRUS:
;74121
	DB	'AG 1     74121 R$'
	DW	I74121P
	DW	I74121T
;74123
	DB	'AG 3     74123 R$'
	DW	I74123P
	DW	I74123T
;74240
	DB	'AP 3       74240$'
	DW	I74240P
	DW	I74240T
;74241
	DB	'AP 4       74241$'
	DW	I74241P
	DW	I74241T
;74245
	DB	'AP 6       74245$'
	DW	I74245P
	DW	I74245T
;74141
	DB	'ID 1       74141$'
	DW	I74141P
	DW	I7441T
;74154
	DB	'ID 3       74154$'
	DW	I74154P
	DW	I74154T
;74155
	DB	'ID 4       74155$'
	DW	I74155P
	DW	I74155T
;74138
	DB	'ID 7       74138$'
	DW	I74138P
	DW	I74138T
;74145
	DB	'ID10       74145$'
	DW	I74145P
	DW	I7442T
;74139
	DB	'ID14       74139$'
	DW	I74139P
	DW	I74139T
;74247
	DB	'ID18       74247$'
	DW	I74247P
	DW	ID146T
;7490
	DB	'IE 2        7490$'
	DW	I7490P
	DW	I7490T
;7493
	DB	'IE 5        7493$'
	DW	I7493P
	DW	I7493T
;74192
	DB	'IE 6       74192$'
	DW	I74192P
	DW	I74192T
;74193
	DB	'IE 7       74193$'
	DW	I74193P
	DW	I74193T
;7497
	DB	'IE 8        7497$'
	DW	I7497P
	DW	I7497T
;74160
	DB	'IE 9       74160$'
	DW	I74160P
	DW	I74160T
;74161
	DB	'IE10       74161$'
	DW	I74161P
	DW	I74161T
;74196
	DB	'IE14       74196$'
	DW	I74176P
	DW	I74176T
;74168
	DB	'IE16       74168$'
	DW	I74168P
	DW	I74168T
;AM25S05
	DB	'IK 1     AM25S05$'
	DW	I25S05P
	DW	I25S05T
;7483
	DB	'IM 3        7483$'
	DW	I7483P
	DW	I7483T
;74180
	DB	'IP 2       74180$'
	DW	I74180P
	DW	I74180T
;74181
	DB	'IP 3       74181$'
	DW	I74181P
	DW	I74181T
;74182
	DB	'IP 4       74182$'
	DW	I74182P
	DW	I74182T
;74280
	DB	'IP 5       74280$'
	DW	I74180P
	DW	I74280T
;7495
	DB	'IR 1        7495$'
	DW	I7495P
	DW	I7495T
;74164
	DB	'IR 8       74164$'
	DW	I74164P
	DW	I74164T
;74194
	DB	'IR11       74194$'
	DW	I74194P
	DW	I74194T
;74198
	DB	'IR13       74198$'
	DW	I74198P
	DW	I74198T
;74173
	DB	'IR15       74173$'
	DW	I74173P
	DW	I74173T
;74295
	DB	'IR16       74295$'
	DW	I74295P
	DW	I74295T
;74373
	DB	'IR22       74373$'
	DW	I74373P
	DW	I74363T
;74374
	DB	'IR23       74374$'
	DW	I74374P
	DW	I74374T
;74170
	DB	'IR32 RP1   74170$'
	DW	I74170P
	DW	I74170T
;74148
	DB	'IV 1       74148$'
	DW	I74148P
	DW	I74148T
;74153
	DB	'KP 2       74153$'
	DW	I74153P
	DW	I74153T
;74151
	DB	'KP 7       74151$'
	DW	I74151P
	DW	I74151T
;74257
	DB	'KP11       74257$'
	DW	I74257P
	DW	I74257T
;74253
	DB	'KP12       74253$'
	DW	I74253P
	DW	I74253T
;74298
	DB	'KP13       74298$'
	DW	I74298P
	DW	I74298T
;74258
	DB	'KP14       74258$'
	DW	I74258P
	DW	I74158T
;74251
	DB	'KP15       74251$'
	DW	I74251P
	DW	I74251T
;7420
	DB	'LA 1 LB1    7420$'
	DW	I7420P
	DW	I7413T
;7430
	DB	'LA 2 LB2    7430$'
	DW	I7430P
	DW	I7430T
;7400:
	DB	'LA 3 LB3    7400$'
	DW	I7400P
	DW	I7400T
;7410
	DB	'LA 4 LB4    7410$'
	DW	I7410P
	DW	I7410T
;7440
	DB	'LA 6 LB6    7440$'
	DW	I7440P
	DW	I7413T
;7422
	DB	'LA 7 LB7    7422$'
	DW	I7422P
	DW	I7413T
;7401
	DB	'LA 8 LB0    7401$'
	DW	I7401P
	DW	I7401T
;7403
	DB	'LA 9        7403$'
	DW	I7401P
	DW	I7400T
;7412
	DB	'LA10        7412$'
	DW	I7412P
	DW	I7410T
;7437
	DB	'LA12        7437$'
	DW	I7437P
	DW	I7400T
;7438
	DB	'LA13        7438$'
	DW	I7438P
	DW	I7400T
;74140
	DB	'LA16       74140$'
	DW	I74140P
	DW	I7420T
;7402
	DB	'LE 1        7402$'
	DW	I7402P
	DW	I7402T
;7423
	DB	'LE 2      7423 R$'
	DW	I7423P
	DW	I7423T
;7423 + 7460
	DB	'LE 2 + LD 1 23+R$'
	DW	I7423P
	DW	I7423R
;7425
	DB	'LE 3        7425$'
	DW	I7425P
	DW	I7425T
;7427
	DB	'LE 4        7427$'
	DW	I7427P
	DW	I7427T
;7408
	DB	'LI 1        7408$'
	DW	I7408P
	DW	I7408T
;7409
	DB	'LI 2        7409$'
	DW	I7409P
	DW	I7408T
;7411
	DB	'LI 3        7411$'
	DW	I7411P
	DW	I7411T
;7415
	DB	'LI 4        7415$'
	DW	I7415P
	DW	I7411T
;7421
	DB	'LI 6        7421$'
	DW	I7421P
	DW	I7421T
;7432
	DB	'LL 1        7432$'
	DW	I7432P
	DW	I7432T
;7404
	DB	'LN 1        7404$'
	DW	I7404P
	DW	I7404T
;7405
	DB	'LN 2        7405$'
	DW	I7405P
	DW	I7404T
;7406
	DB	'LN 3        7406$'
	DW	I7406P
	DW	I7404T
;7407
	DB	'LN 4 LP9    7407$'
	DW	I7407P
	DW	I7407T
;7460 + 7423, 7450, 7453, 7455
	DB	'LP 1+X LD1 7460R$'
	DW	I7460P
	DW	I7460T
;74366
	DB	'LN 6       74366$'
	DW	I74366P
	DW	I74366T
;7486
	DB	'LP 5        7486$'
	DW	I7486P
	DW	I7486T
;74125
	DB	'LP 8       74125$'
	DW	I74125P
	DW	I74125T
;74365
	DB	'LP10       74365$'
	DW	I74365P
	DW	I74365T
;7450
	DB	'LR 1      7450 R$'
	DW	I7450P
	DW	I7450T
;7450 + 7460
	DB	'LR 1 + LD 1 50+R$'
	DW	I7450P
	DW	I7450R
;7453
	DB	'LR 3      7453 R$'
	DW	I7453P
	DW	I7453T
;7453 + 7460
	DB	'LR 3 + LD 1 53+R$'
	DW	I7453P
	DW	I7453R
;7455
	DB	'LR 4      7455 R$'
	DW	I7455P
	DW	I7455T
;7455 + 7460
	DB	'LR 4 + LD 1 55+R$'
	DW	I7455P
	DW	I7455R
;74LS55
	DB	'LR 4      74LS55$'
	DW	I74X55P
	DW	I74LS55
;7464
	DB	'LR 9        7464$'
	DW	I7464P
	DW	I7464T
;7451
	DB	'LR11        7451$'
	DW	I7451P
	DW	I7451T
;74LS51
	DB	'LR11      74LS51$'
	DW	I74X51P
	DW	I74LS51
;74184
	DB	'PR 6       74184$'
	DW	I74184P
	DW	I74184T
;74185
	DB	'PR 7       74185$'
	DW	I74185P
	DW	I74185T
;7489
	DB	'RU 2        7489$'
	DW	I7489P
	DW	I7489T
;7485
	DB	'SP 1        7485$'
	DW	I7485P
	DW	I7485T
;7413
	DB	'TL 1        7413$'
	DW	I7413P
	DW	I7413T
;7414
	DB	'TL 2        7414$'
	DW	I7414P
	DW	I7404T
;74132
	DB	'TL 3       74132$'
	DW	I74132P
	DW	I7400T
;7474
	DB	'TM 2 TK2    7474$'
	DW	I7474P
	DW	I7474T
;7477
	DB	'TM 5        7477$'
	DW	I7477P
	DW	I7477T
;7475
	DB	'TM 7        7475$'
	DW	I7475P
	DW	I7475T
;74175
	DB	'TM 8       74175$'
	DW	I74175P
	DW	I74175T
;74174
	DB	'TM 9       74174$'
	DW	I74174P
	DW	I74174T
;74279
	DB	'TR 2       74279$'
	DW	I74279P
	DW	I74279T
;7472
	DB	'TV 1 TK1    7472$'
	DW	I7472P
	DW	I7472T
;74107
	DB	'TV 6       74107$'
	DW	I74107P
	DW	I74107T
;74112
	DB	'TV 9       74112$'
	DW	I74109P
	DW	I74112T
;74114
	DB	'TV11       74114$'
	DW	I74114P
	DW	I74114T
IRUSK:

	ENDIF

;===============================
;VYBER TTL Z PRODUKCE TESLA BEZ RADY ALS

	IF	TESLA

ITESLA:
	DB	'7400     LA3 LB3$'
	DW	I7400P
	DW	I7400T
;7403
	DB	'7403         LA9$'
	DW	I7401P
	DW	I7400T
;7404
	DB	'7404         LN1$'
	DW	I7404P
	DW	I7404T
;7405
	DB	'7405         LN2$'
	DW	I7405P
	DW	I7404T
;7410
	DB	'7410     LA4 LB4$'
	DW	I7410P
	DW	I7410T
;7420
	DB	'7420     LA1 LB1$'
	DW	I7420P
	DW	I7413T
;7430
	DB	'7430     LA2 LB2$'
	DW	I7430P
	DW	I7430T
;7437
	DB	'7437        LA12$'
	DW	I7437P
	DW	I7400T
;7438
	DB	'7438        LA13$'
	DW	I7438P
	DW	I7400T
;7440
	DB	'7440     LA6 LB6$'
	DW	I7440P
	DW	I7413T
;7442
	DB	'7442         ID6$'
	DW	I7442P
	DW	I7442T
;7450
	DB	'7450       LR1 R$'
	DW	I7450P
	DW	I7450T
;7450 + 7460
	DB	'7450 + 7460    R$'
	DW	I7450P
	DW	I7450R
;7451
	DB	'7451        LR11$'
	DW	I7451P
	DW	I7451T
;7453
	DB	'7453       LR3 R$'
	DW	I7453P
	DW	I7453T
;7453 + 7460
	DB	'7453 + 7460    R$'
	DW	I7453P
	DW	I7453R
;7454
	DB	'7454        LR13$'
	DW	I7454P
	DW	I7454T
;7460 + 7423, 7450, 7453, 7455
	DB	'7460+X LD1 LP1 R$'
	DW	I7460P
	DW	I7460T
;7472
	DB	'7472     TV1 TK1$'
	DW	I7472P
	DW	I7472T
;7474
	DB	'7474     TM2 TK2$'
	DW	I7474P
	DW	I7474T
;7475
	DB	'7475         TM7$'
	DW	I7475P
	DW	I7475T
;7489
	DB	'7489         RU2$'
	DW	I7489P
	DW	I7489T
;7490
	DB	'7490         IE2$'
	DW	I7490P
	DW	I7490T
;7493
	DB	'7493         IE5$'
	DW	I7493P
	DW	I7493T
;7496
	DB	'7496            $'
	DW	I7496P
	DW	I7496T
;74112
	DB	'74112        TV9$'
	DW	I74109P
	DW	I74112T
;74141
	DB	'74141        ID1$'
	DW	I74141P
	DW	I7441T
;74150
	DB	'74150        KP1$'
	DW	I74150P
	DW	I74150T
;74151
	DB	'74151        KP7$'
	DW	I74151P
	DW	I74151T
;74164
	DB	'74164        IR8$'
	DW	I74164P
	DW	I74164T
;74188
	DB	'74188           $'
	DW	I74188P
	DW	I74188T
;74192
	DB	'74192        IE6$'
	DW	I74192P
	DW	I74192T
;74193
	DB	'74193        IE7$'
	DW	I74193P
	DW	I74193T
;74287
	DB	'74287           $'
	DW	I74287P
	DW	I74287T
;74571
	DB	'74571           $'
	DW	I74571P
	DW	I74571T
ITESLAK:

	ENDIF

;===============================
;SEZNAM TESTU TESTRU IO - DTO-1
;		 1234567890123456
ITEST:
;TEST 1
	DB	'TEST 1   (BWP-1)$'
	DW	ITEST1P
	DW	ITEST1T
;TEST 2
	DB	'TEST 2   ZIF28 R$'
	DW	ITEST2P
	DW	ITEST2T
;TEST 3
	DB	'TEST 3   ZIF16 R$'
	DW	ITEST3P
	DW	ITEST3T
ITESTK:
;===============================
;POPISY IO TTL
;===============================
I7400P:	DW	PP1
	DB	'4x 2NAND TP$'
I7401P:	DW	PP1
	DB	'4x 2NAND OC$'
I7402P:	DW	PP1
	DB	'4x 2NOR TP$'
I7404P:	DW	PP1
	DB	'6x invertor TP$'
I7405P:	DW	PP1
	DB	'6x invertor OC$'
I7406P:	DW	PP1
	DB	'6x invert. budici stupen 30V OC$'
I7407P:	DW	PP1
	DB	'6x budici stupen 30V OC$'
I7408P:	DW	PP1
	DB	'4x 2AND TP$'
I7409P:	DW	PP1
	DB	'4x 2AND OC$'
I7410P:	DW	PP1
	DB	'3x 3NAND TP$'
I7411P:	DW	PP1
	DB	'3x 3AND TP$'
I7412P:	DW	PP1
	DB	'3x 3NAND OC$'
I7413P:	DW	PP1
	DB	'2x 4NAND Schmitt. TP$'
I7414P:	DW	PP1
	DB	'6x Schmitt. invertor TP$'
I7415P:	DW	PP1
	DB	'3x 3AND OC$'
I7416P:	DW	PP1
	DB	'6x invert. budici stupen 15V OC$'
I7417P:	DW	PP1
	DB	'6x budici stupen 15V OC$'
I7418P:	DW	PP1
	DB	'2x 4vstup. Schmitt. NAND TP$'
I7419P:	DW	PP1
	DB	'6x Schmitt. invertor TP$'
I7420P:	DW	PP1
	DB	'2x 4NAND TP$'
I7421P:	DW	PP1
	DB	'2x 4AND TP$'
I7422P:	DW	PP1
	DB	'2x 4NAND OC$'
I7423P:	DW	PP2
	DB	'2x rozsirit. 4NOR TP (LE2) s R7460A$'
I7424P:	DW	PP1
	DB	'4x 2NAND Schmitt. TP$'
I7425P:	DW	PP1
	DB	'2x 4NOR s uvolnenim TP$'
I7426P:	DW	PP1
	DB	'4x 2NAND 15V OC$'
I7427P:	DW	PP1
	DB	'3x 3NOR TP$'
I7428P:	DW	PP1
	DB	'4x 2NOR vykon. TP$'
I7430P:	DW	PP1
	DB	'8NAND TP$'
I7431P:	DW	PP2
	DB	'6x zpozdovaci obvOd TP$'
I7432P:	DW	PP1
	DB	'4x 2OR TP$'
I7433P:	DW	PP1
	DB	'4x 2NOR vykon. OC$'
I7434P:	DW	PP1
	DB	'6x budici stupen TP$'
I7435P:	DW	PP1
	DB	'6x budici stupen OC$'
I7436P:	DW	PP1
	DB	'4x 2NOR TP$'
I7437P:	DW	PP1
	DB	'4x 2NAND vykon. TP$'
I7438P:	DW	PP1
	DB	'4x 2NAND vykon. OC$'
I7440P:	DW	PP1
	DB	'2x 4NAND vykon. TP$'
I7441P:	DW	PP5	;DIL16 GND=12 VCC=5
	DB	'dek. BCD na 1 z 10 OC$'
I7442P:	DW	PP2
	DB	'dek. BCD na 1 z 10, TP$'
I7443P:	DW	PP2
	DB	'dek. BCD+3 na 1 z 10 TP$'
I7444P:	DW	PP2
	DB	'dek. Gray+3 na 1 z 10 TP$'
I7445P:	DW	PP2
	DB	'dek. BCD na 1 z 10 OC$'
I7446P:	DW	PP2
	DB	'dek. BCD/7 seg. SA 30V OC$'
I7447P:	DW	PP2
	DB	'dek. BCD/7 seg. SA 15V OC$'
I7448P:	DW	PP2
	DB	'dek. BCD/7 seg. SK TP$'
I7449P:	DW	PP1
	DB	'dek. BCD/7 seg. SK 5.5V OC$'
I7450P:	DW	PP1
	DB	'2x 2-2AND-OR-INVERT rozsirit. TP (LR1) s R7460$'
I7451P:	DW	PP1
	DB	'2x 2-2AND-OR-INVERT TP$'
I74X51P:DW	PP1
	DB	'2-2, 3-3AND-OR-INVERT TP$'
I7453P:	DW	PP1
	DB	'rozsirit. 2-2-2-2AND-OR-INVERT TP (LR3) s R7460$'
I7454P:	DW	PP1
	DB	'2-2-2-2AND-OR-INVERT TP$'
I74X54P:DW	PP1
	DB	'2-3-3-2AND-OR-INVERT TP$'
I7455P:	DW	PP1
	DB	'rozsirit. 4-4AND-OR-INVERT TP (LR4) s R7460$'
I74X55P:DW	PP1
	DB	'4-4AND-OR-INVERT TP$'
I7458P:	DW	PP1
	DB	'2-2, 3-3AND-OR TP$'
I7460P:	DW	PP1
	DB	'2x 4AND expander (LP1 LD1), testonano s 7423, 7450, 7453, 7455$'
I7464P:	DW	PP1
	DB	'4-2-3-2AND-OR-INVERT, TP$'
I7465P:	DW	PP1
	DB	'4-2-3-2AND-OR-INVERT, OC$'
I7472P:	DW	PP1
	DB	'K.O. J-K s SR TP$'
I7473P:	DW	PP6	;DIL14	GND=11,	VCC=4
	DB	'2X K.O. J-K s R TP$'
I7474P:	DW	PP1	;
	DB	'2X K.O. D s SR TP$'
I7475P:	DW	PP5	;DIL16	GND=12,	VCC=5
	DB	'2X 2bit. stradac T$'
I7476P:	DW	PP7	;DIL16	GND=13,	VCC=5
	DB	'2X K.O. J-K s SR TP$'
I7477P:	DW	PP8	;DIL14	GND=11,	VCC=4
	DB	'2X 2bit. stradac TP$'
I7481P:	DW	PP9	;DIL14	GND=10,	VCC=4
	DB	'RAM 16x1bit OC$'
I7483P:	DW	PP5	;DIL16	GND=12,	VCC=5
	DB	'4bit. uplna scitacka TP$'
I7485P:	DW	PP2
	DB	'4bit. komparator TP$'
I7486P:	DW	PP1
	DB	'4x 2EX-OR TP$'
I7489P:	DW	PP2
	DB	'RAM 16x4bity OC$'
I7490P:	DW	PP10
	DB	'BCD citac TP$'
I7491P:	DW	PP10
	DB	'8bit. posuv. reg. TP$'
I7492P:	DW	PP10
	DB	'4bit. citac do 12 TP$'
I7493P:	DW	PP10
	DB	'4bit. BIN citac TP$'
I7495P:	DW	PP1
	DB	'4bit. posuv. reg. s par. a ser. vstupem, par. vystup, TP$'
I7496P:	DW	PP5
	DB	'5bit. posuv. reg. s par. a ser. vstupem, par. vystup, R, TP$'
I7497P:	DW	PP2
	DB	'synchr. program. delic TP$'
I74100P:DW	PP11
	DB	'2x 4bit. stradac TP (TK7) s R74100$'
I74107P:DW	PP1
	DB	'2x K.O. J-K s R TP$'
I74109P:DW	PP2
	DB	'2x K.O. J-K s SR TP$'
I74113P:DW	PP1
	DB	'2x K.O. J-K s S TP$'
I74114P:DW	PP1
	DB	'2x K.O. J-K s S, spol. R, CLK TP$'
I74119P:DW	PP4
	DB	'6x K.O. R-S/stradac s spol. R TP$'
I74121P:DW	PP1
	DB	'MKO TP s R_MKO$'
I74123P:DW	PP2
	DB	'2x MKO s nas. spous. TP s R_MKO$'
I74125P:DW	PP1
	DB	'4x budic sbernice TS$'
I74128P:DW	PP1
	DB	'4x 2NOR - 50/75ohm. budic TP$'
;I74130P:DW	PP
;	DB	'DIL14  4x 2vstup. AND budici stupen (30 V), OC  130p  DIL16  2x monostabilni multivibra. s nasle. spousten, TP$'
I74131P:DW	PP2
	DB	'dekoder 1 z 8 se stradacem, OC$'
I74132P:DW	PP1
	DB	'4x 2NAND Schmitt. TP$'
I74133P:DW	PP2
	DB	'13vstup NAND TP$'
I74136P:DW	PP1
	DB	'4x 2XOR OC$'
I74137P:DW	PP2
	DB	'3bit. dekoder 1 z 8 s registrem TP$'
I74138P:DW	PP2
	DB	'3bit. dekoder 1 z 8 TP$'
I74139P:DW	PP2
	DB	'2x 2bit. dekoder 2 ze 4$'
I74140P:DW	PP1
	DB	'2x 4NAND - 50 ohm. budic TS$'
I74141P:DW	PP2
	DB	'dekoder 1 z 10 (60V) OC$'
I74143P:DW	PP4
	DB	'BCD citac se 7seg. dek. OC$'
I74144P:DW	PP4
	DB	'BCD citac se 7seg. dek. (15v) OC$'
I74145P:DW	PP2
	DB	'dekoder BCD 1 z 10 (15V) OC$'
I74147P:DW	PP2
	DB	'BIN/BCD prior. koder TP$'
I74148P:DW	PP2
	DB	'8vstup. prior. koder TP$'
I74150P:DW	PP4
	DB	'16vstup. multiplex TP$'
I74151P:DW	PP2
	DB	'8vstup. multiplex TP$'
I74152P:DW	PP1
	DB	'8vstup. multiplex TP$'
I74153P:DW	PP2
	DB	'2x 4vstup. multiplex TP$'
I74154P:DW	PP4
	DB	'dekoder 1 z 16 TP$'
I74155P:DW	PP2
	DB	'2x dekoder 1 ze 4 TP$'
I74156P:DW	PP2
	DB	'2x dekoder 1 ze 4 OC$'
I74157P:DW	PP2
	DB	'4x 2vstup. multiplex TP$'
I74158P:DW	PP2
	DB	'4x 2vstup. multiplex invert. TP$'
I74159P:DW	PP4
	DB	'dekoder 1 z 16 OC$'
I74160P:DW	PP2
	DB	'sync. prog. BCD citac s R TP$'
I74161P:DW	PP2
	DB	'sync. prog. BIN citac s R TP$'
I74162P:DW	PP2
	DB	'sync. prog. BCD citac se sync. R TP$'
I74163P:DW	PP2
	DB	'sync. prog. BIN citac se sync. R TP$'
I74164P:DW	PP2
	DB	'sync. 8bit. posuv. reg. s R ser. vstup, par. vystup TP$'
I74165P:DW	PP2
	DB	'8bit. posuv. reg. s R ser. a par. vstup, ser. vystup TP$'
I74166P:DW	PP2
	DB	'sync. 8bit. posuv. registr s R ser. a par. vstup, ser. vystup TP$'
I74168P:DW	PP2
	DB	'sync. obousmer. BCD. prog. citac TP$'
I74169P:DW	PP2
	DB	'sync. obousmer. BIN. prog. citac TP$'
I74170P:DW	PP2
	DB	'reg. 4x4bit. OC$'
I74173P:DW	PP2
	DB	'4bit. reg. D TS$'
I74174P:DW	PP2
	DB	'6x K.O. D TP$'
I74175P:DW	PP2
	DB	'4x K.O. D TP$'
I74176P:DW	PP1
	DB	'program. BCD citac TP$'
I74177P:DW	PP1
	DB	'program. BCD citac TP$'
I74180P:DW	PP1
	DB	'9bit. renerator parity/paritni skousec TP$'
I74181P:DW	PP4
	DB	'4bit. ALU TP$'
I74182P:DW	PP2
	DB	'4bit. obvod pro urychleni prenosu TP$'
I74184P:DW	PP2
	DB	'prevodnik BCD/BIN OC$'
I74185P:DW	PP2
	DB	'prevodnik BIN/BCD OC$'
I74188P:DW	PP2
	DB	'PROM 32x8bitu OC$'
I74189P:DW	PP2
	DB	'RAM 16x4bity TS$'
I74192P:DW	PP2
	DB	'sync.(ne v kaskade) obousmer. prog. BCD citac TP$'
I74193P:DW	PP2
	DB	'sync.(ne v kaskade) obousmer. prog. BIN citac TP$'
I74194P:DW	PP2
	DB	'4bit. obousmer. posuv. registr se ser. a par. vstup, par. vystup TP$'
I74195P:DW	PP2
	DB	'4bit. posuv. registr se ser. a par. vstup, par. vystup TP$'
I74198P:DW	PP4
	DB	'8bit. posuv. obousmer. registr se ser. a par. vstup, par. vystup TP$'
;I74225P:DW	PP3
;	DB	'FIFO registr 16x 5bit TS$'
I74240P:DW	PP3
	DB	'2x 4bit. invert. budic sbernice TS$'
I74241P:DW	PP3
	DB	'2x 4bit. budic sbernice TS$'
I74242P:DW	PP2
	DB	'4bit. prijimac/vysilac sbernice invert. TS$'
I74243P:DW	PP2
	DB	'4bit. prijimac/vysilac sbernice TS$'
I74244P:DW	PP3
	DB	'8x budic sbernice TS$'
I74245P:DW	PP3
	DB	'8x vysilac/prijimac sbernice TS$'
I74247P:DW	PP2
	DB	'dek. BCD/7 seg. SA 15V OC$'
I74249P:DW	PP2
	DB	'dek. BCD/7 seg. SA 5.5V OC$'
I74251P:DW	PP2
	DB	'8kanal. multiplexer TS$'
I74253P:DW	PP2
	DB	'2x 4vstup. multiplexer TS$'
I74256P:DW	PP2
	DB	'2x 4bit adresovatelny stradac$'
I74257P:DW	PP2
	DB	'4x 2vstup. multiplex TS$'
I74258P:DW	PP2
	DB	'4x 2vstup. multiplex invert. TS$'
I74259P:DW	PP2
	DB	'8bit. adres. registr typu Latch TP$'
I74260P:DW	PP1
	DB	'2x 5NOR TP$'
I74265P:DW	PP2
	DB	'2X 2NAND + 2x invert. TP$'
I74266P:DW	PP1
	DB	'4x 2EX-NOR OC$'
I74273P:DW	PP3
	DB	'8bit. registr D s R TP$'
I74276P:DW	PP3
	DB	'4x K.O. J-K se spolecnim SR TP$'
I74279P:DW	PP2
	DB	'4x K.O. R-S TP$'
I74283P:DW	PP2
	DB	'4bit. uplna scitacka TP$'
I74287P:DW	PP2
	DB	'PROM 256x4bity TS$'
I74290P:DW	PP1
	DB	'async. BCD citac TP$'
;I74292P:DW	PP2
;	DB	'prog. 32bit. BIN citac/delic TP$'
I74293P:DW	PP1
	DB	'4bit. async. BIN citac TP$'
I74295P:DW	PP1
	DB	'4bit. posuv. reg. s par. vstup, vystup TS$'
I74298P:DW	PP2
	DB	'4x 2vstup. multiplex s pameti TP$'
I74299P:DW	PP3
	DB	'8bit. univers. posuv. reg. s R TS$'
I74322P:DW	PP3
	DB	'kaskadovatelny 8bit. uni. posuv. registr se sinc. R a par. vstup. vystup. ser. vystup TS$'
I74348P:DW	PP2
	DB	'8vstup. prior. koder kaskada TS$'
I74351P:DW	PP3
	DB	'2x 8vstup. multiplex invert. TS$'
I74352P:DW	PP2
	DB	'2x 4vstup. multiplex invert. TP$'
I74353P:DW	PP2
	DB	'2x 4vstup. multiplex invert. TS$'
I74363P:DW	PP3
	DB	'8bit stradac (MOS uP interface) TP$'
I74365P:DW	PP2
	DB	'6x budic sbernice TS$'
I74366P:DW	PP2
	DB	'6x invert. budic sbernice TS$'
I74367P:DW	PP2
	DB	'4 + 2bit. budic sbernice TS$'
I74368P:DW	PP2
	DB	'4 + 2bit. invert. budic sbernice TS$'
I74373P:DW	PP3
	DB	'8bit. transparent. reg. D TS$'
I74374P:DW	PP3
	DB	'8bit. reg. D s hradlovanim TS$'
I74377P:DW	PP3
	DB	'8bit. reg. D s hradlovanim TP$'
I74378P:DW	PP2
	DB	'6bit. reg. D s hradlovanim TP$'
I74379P:DW	PP2
	DB	'4bit. reg. D s hradlovanim a komplement. vystupy TP$'
I74390P:DW	PP2
	DB	'2x BCD citac TP$'
I74393P:DW	PP2
	DB	'2x BIN citac TP$'
I74395P:DW	PP2
	DB	'4bit. posuvny reg. s par. a ser. vstup, vystup a R TS$'
I74399P:DW	PP2
	DB	'4x 2vstup. multiplex s reg. TP$'
I74412P:DW	PP4
	DB	'8bit. multyfunkcni stradac TS$'
I74414P:DW	PP4
	DB	'ridici obvod prior. prerus. OC$'
I74416P:DW	PP2
	DB	'4bit. vysilac primac sbernice TS$'
I74426P:DW	PP2
	DB	'4bit. invert. vysilac primac sbernice TS$'
I74440P:DW	PP3
	DB	'4x prepinac sbernice OC$'
I74441P:DW	PP3
	DB	'4x invert. prepinac sbernice OC$'
I74442P:DW	PP3
	DB	'4x prepinac sbernice TS$'
I74443P:DW	PP3
	DB	'4x invert. prepinac sbernice TS$'
I74444P:DW	PP3
	DB	'4x invert./neinvert. prepinac sbernice TS$'
I74448P:DW	PP3
	DB	'4x invert./neinvert. prepinac sbernice OC$'
I74461P:DW	PP4
	DB	'8bit. synchroni BIN citac$'
I74482P:DW	PP3
	DB	'8X stradac budic sbernice TS$'
I74483P:DW	PP3
	DB	'8X stradac invert. budic sbernice TS$'
I74487P:DW	PP3
	DB	'8x invert. vysilac/prijimac sbernice TS$'
I74518P:DW	PP3
	DB	'8bit. komparator s uvolnenim OC$'
I74520P:DW	PP3
	DB	'8bit. invert. komparator s uvolnenim TP$'
I74534P:DW	PP3
	DB	'8bit. invert. reg. D s hradlovanim TS$'
I74540P:DW	PP3
	DB	'8bit. invert. budic sbernice TS$'
I74541P:DW	PP3
	DB	'8bit. budic sbernice TS$'
;I74533P:
I74563P:DW	PP3
	DB	'8bit. invert. transparent. reg. D TS$'
I74571P:DW	PP2
	DB	'PROM 512x4bity TS$'
I74595P:DW	PP2
	DB	'8bit. posuv. reg. s vystup. stradacem ser. vstup a para. vystup TS$'
I74596P:DW	PP2
	DB	'8bit. posuv. reg. s vystup. stradacem ser. vstup a para. vystup OC$'
I74638P:DW	PP3
	DB	'8bit. invert. vysilac/primac sbrnice TC,OC$'
I74639P:DW	PP3
	DB	'8bit. vysilac/primac sbrnice TC,OC$'
I74640P:DW	PP3
	DB	'8bit. invert. vysilac/primac sbrnice TS$'
I74641P:DW	PP3
	DB	'8bit. vysilac/primac sbrnice OC$'
I74642P:DW	PP3
	DB	'8bit. invert. vysilac/primac sbrnice OC$'
I74643P:DW	PP3
	DB	'8bit. invert./neinvert. vysilac/primac sbrnice, TS$'
I74644P:DW	PP3
	DB	'8bit. invert./neinvert. vysilac/primac sbrnice OC$'
I74646P:DW	PP4
	DB	'8bit. vysilac/primac s obousmer. reg. TS$'
I74647P:DW	PP4
	DB	'8bit. vysilac/primac s obousmer. reg. OC$'
I74648P:DW	PP4
	DB	'8bit. invert. vysilac/primac s obousmer. reg. TS$'
I74649P:DW	PP4
	DB	'8bit. invert. vysilac/primac s obousmer. reg. OC$'
I74651P:DW	PP4
	DB	'8bit. invert. vysilac/primac sbrnice s reg. TS$'
I74652P:DW	PP4
	DB	'8bit. vysilac/primac sbrnice s reg. TS$'
I74653P:DW	PP4
	DB	'8bit. invert. vysilac/primac sbrnice s reg. TS,OC$'
I74654P:DW	PP4
	DB	'8bit. vysilac/primac sbrnice s reg. TS,OC$'
I74670P:DW	PP2
	DB	'RAM 4x 4bit., reg. TS$'
I74673P:DW	PP4
	DB	'16bit posuvny registr s par vstupem a reg. TS$'
I74674P:DW	PP4
	DB	'16bit posuvny registr s par. vstupem TS$'
I74690P:DW	PP3
	DB	'sync. program. BCD citac s R a mux. vystup. reg. TS$'
I74691P:DW	PP3
	DB	'sync. program. BIN citac s R a mux. vystup. reg. TS$'
I74692P:DW	PP3
	DB	'sync. program. BCD citac se sinc. R a mux. vystup. reg. TS$'
I74693P:DW	PP3
	DB	'sync. program. BIN citac se sinc, R a mux. vystup. reg. TS$'
I74696P:DW	PP3
	DB	'sync. obousmer. BCD citac program. a mux. vystup. reg. TS$'
I74697P:DW	PP3
	DB	'sync. obousmer. BIN citac program. a mux. vystup. reg. TS$'
I74698P:DW	PP3
	DB	'sync. obousmer. BCD citac program. se sinc, R a mux. vystup. reg. TS$'
I74699P:DW	PP3
	DB	'sync. obousmer. BIN citac program. se sinc, R a mux. vystup. reg. TS$'
I74794P:DW	PP3
	DB	'8bit. reg TP, zpetny budic TS$'
I74821P:DW	PP4
	DB	'10bit. reg. D budic sbernice TS$'
I74827P:DW	PP4
	DB	'10bit. budic sbernice TS$'
I74828P:DW	PP4
	DB	'10bit. invert. budic sbernice TS$'
I74841P:DW	PP4
	DB	'10bit. transparent. stradac D TS$'
I74873P:DW	PP4
	DB	'2x 4bit. stradac D transparent. a R TS$'
I74874P:DW	PP4
	DB	'2x 4bit. reg. D a reset TS$'
I71004P:DW	PP1
	DB	'6x invert. budic TP$'
I71005P:DW	PP1
	DB	'6x invert. oddelonac OC$'
ID345P:	DW	PP2
	DB	'dek. HEX/7 seg. SA 15V OC$'
ID346P:	DW	PP2
	DB	'dek. HEX/7 seg. SA 15V rizeni jasu OC s R_D34XD$'
ID347P:	DW	PP2
	DB	'dek. BCD, EUdcA/7 seg. SA 15V OC$'
ID348P:	DW	PP2
	DB	'dek. BCD, EUdcA/7 seg. SA 15V  rizeni jasu OC s R_D34XD$'
I8243P:	DW	PP4
	DB	'expander pro rozsireni vstup./vystup.$'
;===============================
;POPISY IO CMOS
;===============================
I4000P:	DW	PP1
	DB	'2x 3NOR + invert.$'
I4001P:	DW	PP1
	DB	'4x 2NOR$'
I4002P:	DW	PP1
	DB	'2x 4NOR$'
I4011P:	DW	PP1
	DB	'4x 2NAND$'
I4012P:	DW	PP1
	DB	'2x 4NAND$'
I4013P:	DW	PP1
	DB	'2X K.O. D s SR$'
I4015P:	DW	PP2
	DB	'2x 4bit. posuv. reg. s ser. vstupem, par. vystup, R$'
I4017P:	DW	PP2
	DB	'10stupnovy johonson. citac$'
I4020P:	DW	PP2
	DB	'14bit. BIN citac (Q0,Q3-Q13)$'
I4021P:	DW	PP2
	DB	'8bit. posuv. reg. s par.  a ser. vstupem, ser. vystup(Q5-7)$'
I4023P:	DW	PP1
	DB	'3x 3NAND$'
I4024P:	DW	PP1
	DB	'7bit. BIN citac$'
I4025P:	DW	PP1
	DB	'3x 3NOR$'
I4027P:	DW	PP2
	DB	'2x K.O. J-K s SR$'
I4028P:	DW	PP2
	DB	'4bit dekoder 1 z 10$'
I4029P:	DW	PP2
	DB	'4bit BIN/BCD sync. vrat. citac$'
I4030P:	DW	PP1
	DB	'4x 2EX-OR$'
I4032P:	DW	PP2
	DB	'3x ser. scitacka$'
I4034P:	DW	PP4
	DB	'8bit obosmerny posuv. R se ser. a par. VV$'
I4035P:	DW	PP2
	DB	'4bit posuvny R s par. VV$'
I4040P:	DW	PP2
	DB	'12bit. BIN citac$'
I4042P:	DW	PP2
	DB	'4bit. stradc$'
I4043P:	DW	PP2
	DB	'4bit. stradac RS TS$'
I4048P:	DW	PP2
	DB	'8vstup. hradlo s program. funkci$'
I4063P:	DW	PP2
	DB 	'4bit. komparator$'
I4068P:	DW	PP1
	DB	'8NAND-AND$'
I4068PA:DW	PP1
	DB	'8NAND$'
I4069P:	DW	PP1
	DB	'6x inver.$'
I4071P:	DW	PP1
	DB	'4x 2OR$'
I4072P:	DW	PP1
	DB	'2x 4OR$'
I4073P:	DW	PP1
	DB	'3x 3AND$'
I4075P:	DW	PP1
	DB	'3x 3OR$'
I4076P:	DW	PP2
	DB	'4x K.O. D TS$'
I4077P:	DW	PP1
	DB	'4x 2EX-NOR$'
I4078P:	DW	PP1
	DB	'8NOR-OR$'
I4078PA:DW	PP1
	DB	'8NOR$'
I4081P:	DW	PP1
	DB	'4x 2AND$'
I4082P:	DW	PP1
	DB	'2x 4AND$'
I4093P:	DW	PP1
	DB	'4x 2NAND Schmitt. NAND$'
I4094P:	DW	PP2
	DB	'8bit. posuv. reg. se stradcem par. vystupem TS$'
I4095P:	DW	PP1
	DB	'K.O. J-K s SR$'
I4099P:	DW	PP2
	DB	'8bit. stradac (adresonatelna pamet)$'
I4311P:	DW	PP2
	DB	'dek. BIN/7seg. se stradac. ITRON SK$'
I4502P:	DW	PP2
	DB	'6x strob. invert. odelovac TS$'
I4511P:	DW	PP2
	DB	'dek. BCD/7 seg. se stradac. ITRON sK$'
I4512P:	DW	PP2
	DB	'8vstup. multiplex TS$'
I4515P:	DW	PP4
	DB	'dekoder 1 z 16 se stradacem$'
I4516P:	DW	PP2
	DB	'sync. vratny prog. BIN citac$'
I4518P:	DW	PP2
	DB	'2x BCD citac$'
I4520P:	DW	PP2
	DB	'2x BIN citac$'
I4531P:	DW	PP2
	DB	'12bit. rener. parity$'
I4532P:	DW	PP2
	DB	'8vstup. prioritni koder$'
I4543P:	DW	PP2
	DB	'dek. BCD/7 seg. se stradac. LCD LED SK/A$'
I4555P:	DW	PP2
	DB	'2x dekoder 1 ze 4 H$'
I4556P:	DW	PP2
	DB	'2x dekoder 1 ze 4 L$'
I4560P:	DW	PP2
	DB	'paralerni BCD scitacka$'
I4581P:	DW	PP4
	DB	'4bit. ALU$'
I4582P:	DW	PP2
	DB	'4bit. obvod pro urychleni prenosu$'
I40106P:DW	PP1
	DB	'6x schmitt invert.$'
;===============================
;POPISY OSTATNI IO A 75XXX
;===============================
I8641P:	DW	PP2
	DB	'4x vysilac/primac sbrnice (GPIB)$'
I1502P:	DW	PP2
	DB	'aproximacni registr 8bit.$'
I1504P:	DW	PP4
	DB	'aproximacni registr 12bit.$'
I8T23P:	DW	PP2
	DB	'2X linkovy vysilac (IBM 360/370) s R75123$'
I8T24P:	DW	PP2
	DB	'3x linkovy primac (IBM 360/370)$'
I75160P:DW	PP3
	DB	'8x vysilac/primac dat. sbrnice (GPIB)$'
I75161P:DW	PP3
	DB	'8x vysilac/primac ridici sbernice (pristroj GPIB)$'
I75162P:DW	PP4
	DB	'8x vysilac/primac ridici sbernice (radic GPIB)$'
I75162R:DW	PP12
	DB	'8x vysilac/primac ridici sbernice (radic GPIB) s R75162$'
I25S05P:DW	PP4
	DB	'nasobicka 4x2 bitu$'
;===============================
;POPISI TESTU TESTERU IO
;===============================
ITEST1P:DW	PP4
	DB	'Test prevazne BWP-1$'
ITEST2P:DW	PPX
	DB	'Test prevazne DTO-1 ZIF28 s R_TEST1$'
ITEST3P:DW	PPX
	DB	'Test prevazne DTO-1 ZIF16 s R_TEST2$'
;===============================
;POPISY POUZDRO, NAPAJENI
PP1:	DB	'DIL14  GND=7, VCC=14$'
PP2:	DB	'DIL16  GND=8, VCC=16$'
PP3:	DB	'DIL20  GND=10, VCC=20$'
PP4:	DB	'DIL24  GND=12, VCC=24$'
PP5:	DB	'DIL16  GND=12, VCC=5$'
PP6:	DB	'DIL14  GND=11, VCC=4$'
PP7:	DB	'DIL16  GND=13, VCC=5$'
PP8:	DB	'DIL14  GND=11, VCC=4$'
PP9:	DB	'DIL14  GND=10, VCC=4$'
PP10:	DB	'DIL14  GND=10, VCC=5$'
PP11:	DB	'DIL24  GND=7, VCC=24$'
PP12:	DB	'DIL22  GND=11, VCC=22$'
PPX:	DB	'Bude se cvakat s RELE$'
;===============================
;ZAPOJENI PATIC

;ZIF28

;        D   D   D   D           D   D   D   D
;        I   I   I   I           I   I   I   I
;        L   L   L   L           L   L   L   L
;        2   2   1   1           1   1   2   2 
;        4   0   6   4  ZIF 28   4   6   0   4
;        .   .   .   . +--\/--+  .   .   .   .
;(       .   .   .   . = 1  28=  .   .   .   .  P1-7)
;(PR-4   .   .   .   . = 2  27=  .   .   .   .  P3-7)
; P2-0   1   .   .   . = 3  26=  .   .   .  24  VCC
; P2-1   2   .   .   . = 4  25=  .   .   .  23  P2-6
; P2-2   3   1   .   . = 5  24=  .   .  20  22  P2-5/VCC
; P2-3   4   2   .   . = 6  23=  .   .  19  21  P2-4
; P0-O   5   3   1   . = 7  22=  .  16  18  20  P1-7/VCC
; P0-1   6   4   2   1 = 8  21= 14  15  17  19  P1-6/VCC
; P0-2   7   5   3   2 = 9  20= 13  14  16  18  P1-5
; P0-3   8   6   4   3 =10  19= 12  13  15  17  P1-4
; P0-4   9   7   5   4 =11  18= 11  12  14  16  P1-3
; P0-5  10   8   6   5 =12  17= 10  11  13  15  P1-2
; P0-6  11   9   7   6 =13  16=  9  10  12  14  P1-1
;  GND  12  10   8   7 =14  15=  8   9  11  13  P1-0
;                      +------+

;ZIF16

;            D   D           D   D
;            I   I           I   I
;            L   L           L   L
;            1   1           1   1
;            6   4  ZIF 16   4   6
;            .   . +--\/--+  .   .
; P0-O       1   1 = 1  16= 14  16  P1-7
; P0-1       2   2 = 2  15= 13  15  P1-6
; P0-2       3   3 = 3  14= 12  14  P1-5
; P0-3/VCC   4   4 = 4  13= 11  13  P1-4/GND
; P0-4/VCC   5   5 = 5  12= 10  12  P1-3/GND
; P0-5       8   6 = 6  11=  9  11  P1-2
; P0-6       7   7 = 7  10=  8  10  P1-1
; P0-7       8     = 8   9=      9  P1-0
;                  +------+

;===============================
;TESTOVACI TABULKY

;4x 2vstup. NAND
;7400, 7403, 7424, 7426, 7437, 7438, 74132
I7400T:		;	ZYABYABX   XNABYABY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10111101B, 11011001B
	DB	T_W12,	11000111B, 11101011B
	DB	T_W12,	11011001B, 11110101B
	DB	T_W12,	11101011B, 11001110B
	DB	T_KONEC

;4x 2vstup. NAND jinak vyvody
;7401, 7439
I7401T:		;	ZBAYBAYX   XNYBAYBA
	DB	T_VV2,	01101100B, 00011011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10010111B, 11110011B
	DB	T_W12,	10111011B, 11011100B
	DB	T_W12,	11011101B, 11100101B
	DB	T_W12,	11100011B, 11101110B
	DB	T_KONEC

;4x 2vstup. NOR
;7402, 7428, 7433, 74128
I7402T:		;	ZBAYBAYX   XNYBAYBA
	DB	T_VV2,	01101100B, 00011011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10010101B, 11010011B
	DB	T_W12,	10101001B, 11011100B
	DB	T_W12,	11001101B, 11100001B
	DB	T_W12,	11100011B, 11001010B
	DB	T_KONEC

;6x invertor
;7404, 7405, 7406, 7414, 7416, 7419, 4069, 40106
I7404T:		;	ZYAYAYAX   XNAYAYAY
	DB	T_VV2,	00101010B, 00101010B
	DB	T_NAP,	DIL14
	DB	T_W12,	10110011B, 11100110B
	DB	T_W12,	11001101B, 11011001B
	DB	T_KONEC

;6x budici stupen
;7407, 7417, 7434, 7435
I7407T:		;	ZYAYAYAX   XNAYAYAY
	DB	T_VV2,	00101010B, 00101010B
	DB	T_NAP,	DIL14
	DB	T_W12,	10011001B, 11110011B
	DB	T_W12,	11100111B, 11001100B
	DB	T_KONEC

;4x 2vstup. AND
;7408, 7409
I7408T:		;	ZYABYABX   XNABYABY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11110101B, 11010000B
	DB	T_W12,	10001111B, 11100010B
	DB	T_W12,	10010001B, 11111100B
	DB	T_W12,	10100011B, 11000111B
	DB	T_KONEC

;3x 3vstup. NAND
;7410, 7412		 222211      113333
I7410T:		;	ZYCBABAX   XNCYCBAY
	DB	T_VV2,	00111110B, 00101110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000011B, 11010101B
	DB	T_W12,	11001101B, 11010111B
	DB	T_W12,	11010111B, 11011001B
	DB	T_W12,	11011001B, 11111011B
	DB	T_W12,	11100011B, 11111101B
	DB	T_W12,	11101101B, 11111110B
	DB	T_W12,	11110111B, 11100001B
	DB	T_W12,	10111001B, 11010011B
	DB	T_KONEC

;3x 3vstup. AND
;7411, 7415		 222211      113333
I7411T:		;	ZYCBABAX   XNCYCBAY
	DB	T_VV2,	00111110B, 00101110B
	DB	T_NAP,	DIL14	
	DB	T_W12,	10000011B, 11000100B
	DB	T_W12,	10001101B, 11000110B
	DB	T_W12,	10010111B, 11001000B
	DB	T_W12,	10011001B, 11101010B
	DB	T_W12,	10100011B, 11101100B
	DB	T_W12,	10101101B, 11101111B
	DB	T_W12,	10110111B, 11110000B
	DB	T_W12,	11111001B, 11000010B
	DB	T_KONEC

;2x 4vstup. NAND
;7413, 7418, 7420, 7422, 7440, 74140
I7413T:		;	ZYDCXBAX   XNDCXBAY
I7420T:	DB	T_NZ2,	00001001B, 10001000B
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10111111B, 11001001B
	DB	T_W12,	11001001B, 11111110B
	DB	T_W12,	11111101B, 11101001B
	DB	T_W12,	11111011B, 11011001B
	DB	T_W12,	11101111B, 11001101B
	DB	T_W12,	11011111B, 11001011B
	DB	T_W12,	11101001B, 11111101B
	DB	T_W12,	11011001B, 11111011B
	DB	T_W12,	11001101B, 11101111B
	DB	T_W12,	11001011B, 11011111B
	DB	T_KONEC

;2x 4vstup. AND
;7421
I7421T:		;	ZYDCXBAX   XNDCXBAY
	DB	T_NZ2,	00001001B, 10001000B
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111111B, 11001000B
	DB	T_W12,	10001001B, 11111111B
	DB	T_W12,	10111101B, 11101000B
	DB	T_W12,	10111011B, 11011000B
	DB	T_W12,	10101111B, 11001100B
	DB	T_W12,	10011111B, 11001010B
	DB	T_W12,	10101001B, 11111100B
	DB	T_W12,	10011001B, 11111010B
	DB	T_W12,	10001101B, 11101110B
	DB	T_W12,	10001011B, 11011110B
	DB	T_KONEC

;2x rozsirit. 4vstup. NOR
;			 EEEEEE      E    E
;7423		;	 BBBAAA1   22A21  B    2221111
I7423T:		;	ZCBACBAB   GCDDAXXD   NBAYGYDC
	DB	T_NZ2,	00000000B, 00000110B
	DB	T_VV3,	01111111B, 11111001B, 01101011B
	DB	T_NAP,	DIL24
G7423T: DB      T_W123, 10000000B, 11010110B, 11000100B
	DB	T_W23,		   11010110B, 10101100B
	DB	T_W23,		   10011110B, 11101000B
	DB	T_W123,	10000001B, 11000110B, 11101000B
	DB	T_W123,	10000000B, 10000110B, 10101001B
	DB	T_W3,			      11001010B
	DB	T_W123,	10000001B, 11000110B, 10001011B
	DB	T_W123,	10000000B, 11011110B, 10001011B
	DB	T_W123,	10000001B, 10001110B, 10011010B
	DB	T_W23,		   00001110B, 10011001B
	DB	T_KONEC

;2x rozsirit. 4vstup. NOR
;			 EEEEEE      E    E
;7423 + 7460	;	 BBBAAA1   22A21  B    2221111
I7423R:		;	ZCBACBAB   GCDDAXXD   NBAYGYDC
	DB	T_NZ2,	00000000B, 00000110B
	DB	T_VV3,	01111111B, 11111001B, 01101011B
	DB	T_NAP,	DIL24
	DB	T_W123,	11111111B, 10100111B, 10011010B	;X=1
	DB	T_W123,	10011100B, 11101110B, 10001000B	;X=0
	DB	T_W123,	10101011B, 10110110B, 10001000B	;X=0
	DB	T_W123,	11000110B, 10100110B, 11001001B	;X=0
	DB	T_W123,	10001110B, 10000111B, 10101010B	;X=0
	DB	T_W123,	10011100B, 10110110B, 11101100B	;X=0
	DB	T_W123,	10101010B, 11100110B, 11101100B	;X=0
	DB	T_W123,	11000110B, 11110110B, 10101100B	;X=0
	DB	T_W123,	10001110B, 11010111B, 11001100B	;X=0
	DB	T_W123,	10001110B, 10100110B, 10010010B	;X=1
	DB	T_W123,	11110001B, 00000111B, 10011001B	;X=1
	DB	T_W123,	10101110B, 10100111B, 10010010B	;X=1
	DB	T_W123,	11110001B, 00000111B, 10011001B	;X=1
	DB	T_W123,	11011110B, 10100110B, 10010010B	;X=1
	DB	T_W123,	11110101B, 00100111B, 10011001B	;X=1
	DB	T_W123,	10001110B, 10100110B, 10010010B	;X=1
	DB	T_W123,	11111011B, 00000111B, 10011001B	;X=1
	DB	T_W123,	11100011B, 11000111B, 10001011B	;X=0
	DB	T_W123,	11010100B, 10011111B, 11101011B	;X=0
	DB	T_W123,	10111001B, 10001111B, 11001010B	;X=0
	DB	T_W123,	11110001B, 10101110B, 10101001B	;X=0
	DB	T_W123,	11100010B, 10000111B, 10011100B	;X=0
	DB	T_W123,	11010100B, 10000111B, 10011100B	;X=0
	DB	T_W123,	10111000B, 10000111B, 10011100B	;X=0
	DB	T_W123,	11110000B, 10100110B, 10011100B	;X=0
        DB      T_GOTO
        DW      G7423T

;2x 4vstup. NOR s uvolnenim
;7425
I7425T:		;	ZYDCGBAX   XNDCGBAY
	DB	T_VV2,	00111110B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10111111B, 11000001B
	DB	T_W12,	11001001B, 11110111B
	DB	T_W12,	10111101B, 11100001B
	DB	T_W12,	10111011B, 11010001B
	DB	T_W12,	10101111B, 11000101B
	DB	T_W12,	10011111B, 11000011B
	DB	T_W12,	10101001B, 11110101B
	DB	T_W12,	10011001B, 11110011B
	DB	T_W12,	10001101B, 11100111B
	DB	T_W12,	10001011B, 11010111B
	DB	T_W12,	11110111B, 11001001B
	DB	T_W12,	11000001B, 11111110B
	DB	T_W12,	11110101B, 11101000B
	DB	T_W12,	11110011B, 11011000B
	DB	T_W12,	11100111B, 11001100B
	DB	T_W12,	11010111B, 11001010B
	DB	T_W12,	11100001B, 11111100B
	DB	T_W12,	11010001B, 11111010B
	DB	T_W12,	11000101B, 11101110B
	DB	T_W12,	11000011B, 11011110B
	DB	T_KONEC

;3x 3vstup. NOR
;7427			 222211      113333
I7427T:		;	ZYCBABAX   XNCYCBAY
	DB	T_VV2,	00111110B, 00101110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000011B, 11000100B
	DB	T_W12,	10001101B, 11000110B
	DB	T_W12,	10010111B, 11001000B
	DB	T_W12,	10011001B, 11101010B
	DB	T_W12,	10100011B, 11101100B
	DB	T_W12,	10101101B, 11101110B
	DB	T_W12,	10110111B, 11100001B
	DB	T_W12,	10111001B, 11010010B
	DB	T_KONEC

;8vstup. NAND
;7430
I7430T:		;	ZFEDCBAX   XNXHGXXY
	DB	T_NZ2,	00000000B, 00100110B
	DB	T_VV2,	01111110B, 00011000B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000001B, 11100111B
	DB	T_W12,	11111111B, 11111110B
	DB	T_W12,	10111111B, 11111111B
	DB	T_W12,	11011111B, 11111111B
	DB	T_W12,	11101111B, 11111111B
	DB	T_W12,	11110111B, 11111111B
	DB	T_W12,	11111011B, 11111111B
	DB	T_W12,	11111101B, 11111111B
	DB	T_W12,	11111111B, 11101111B
	DB	T_W12,	11111111B, 11110111B
	DB	T_W12,	10000001B, 11101111B
	DB	T_W12,	10000001B, 11110111B
	DB	T_W12,	10000011B, 11100111B
	DB	T_W12,	10000101B, 11100111B
	DB	T_W12,	10001001B, 11100111B
	DB	T_W12,	10010001B, 11100111B
	DB	T_W12,	10100001B, 11100111B
	DB	T_W12,	11000001B, 11100111B
	DB	T_KONEC

;6x zpozdovaci obvod
;7431			 3332211    6655444
I7431T:		;	ZYBAYAYA   NAYAYBAY
	DB	T_VV2,	00110101B, 01010110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10111110B, 11000001B
	DB	T_W12,	11000001B, 10111011B
	DB	T_W12,	11010010B, 11011101B
	DB	T_W12,	11101101B, 10100110B
	DB	T_KONEC

;4x 2vstup. OR
;7432
I7432T:		;	ZYBAYBAX   XNBAYBAY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111101B, 11011000B
	DB	T_W12,	10001111B, 11101011B
	DB	T_W12,	11010001B, 11111101B
	DB	T_W12,	11101011B, 11000111B
	DB	T_KONEC

;4x 2vstup. NOR, JINAK VIVODY NEZ 7402
;7436
I7436T:		;	ZYBAYBAX   XNBAYBAY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10110101B, 11010001B
	DB	T_W12,	11000111B, 11100010B
	DB	T_W12,	10011001B, 11110100B
	DB	T_W12,	10100011B, 11001110B
	DB	T_KONEC

;dek. BCD na 1 z 10, JINAK VYNODY 7442, 7445
;7441			221 3098   0154 673
I7441T:		;	YAANAAYY   YYYYZYYY
	DB	T_VV2,	01101100B, 00000000B
	DB	T_NAP,	DIL5_12
	DB	T_W12,	10010011B, 01111111B
	DB	T_W12,	10010111B, 10111111B
	DB	T_W12,	00110011B, 11111111B
	DB	T_W12,	10110111B, 11111110B
	DB	T_W12,	11010011B, 11101111B
	DB	T_W12,	11010111B, 11011111B
	DB	T_W12,	11110011B, 11111011B
	DB	T_W12,	11110111B, 11111101B
	DB	T_W12,	10011010B, 11111111B
	DB	T_W12,	10011101B, 11111111B
	DB	T_W12,	10111011B, 11111111B
	DB	T_W12,	10111111B, 11111111B
	DB	T_W12,	11011011B, 11111111B
	DB	T_W12,	11011111B, 11111111B
	DB	T_W12,	11111011B, 11111111B
	DB	T_W12,	11111111B, 11111111B
	DB	T_KONEC

;dek. BCD na 1 z 10, TP
;7442, 7445, 74145
I7442T:		;	Z6543210   NABCD987
	DB	T_VV2,	00000000B, 01111000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111110B, 10000111B
	DB	T_W12,	11111101B, 11000111B
	DB	T_W12,	11111011B, 10100111B
	DB	T_W12,	11110111B, 11100111B
	DB	T_W12,	11101111B, 10010111B
	DB	T_W12,	11011111B, 11010111B
	DB	T_W12,	10111111B, 10110111B
	DB	T_W12,	11111111B, 11110110B
	DB	T_W12,	11111111B, 10001101B
	DB	T_W12,	11111111B, 11001011B
	DB	T_W12,	11111111B, 10101111B
	DB	T_W12,	11111111B, 11101111B
	DB	T_W12,	11111111B, 10011111B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	11111111B, 10111111B
	DB	T_W12,	11111111B, 11111111B
	DB	T_KONEC

;dek. BCD+3 na 1 z 10
;7443
I7443T:		;	Z6543210   NABCD987
	DB	T_VV2,	00000000B, 01111000B
	DB	T_NAP,	DIL16	
	DB	T_W12,	11111111B, 10000111B
	DB	T_W12,	11111111B, 11000111B
	DB	T_W12,	11111111B, 10100111B
	DB	T_W12,	11111110B, 11100111B
	DB	T_W12,	11111101B, 10010111B
	DB	T_W12,	11111011B, 11010111B
	DB	T_W12,	11110111B, 10110111B
	DB	T_W12,	11101111B, 11110111B
	DB	T_W12,	11011111B, 10001111B
	DB	T_W12,	10111111B, 11001111B
	DB	T_W12,	11111111B, 10101110B
	DB	T_W12,	11111111B, 11101101B
	DB	T_W12,	11111111B, 10011011B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	11111111B, 10111111B
	DB	T_W12,	11111111B, 11111111B
	DB	T_KONEC

;dek. Gray+3 na 1 z 10
;7444
I7444T:		;	Z6543210   NABCD987
	DB	T_VV2,	00000000B, 01111000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111111B, 10000111B
	DB	T_W12,	11111111B, 11000111B
	DB	T_W12,	11111110B, 10100111B
	DB	T_W12,	11111111B, 11100111B
	DB	T_W12,	11101111B, 10010111B
	DB	T_W12,	11110111B, 11010111B
	DB	T_W12,	11111101B, 10110111B
	DB	T_W12,	11111011B, 11110111B
	DB	T_W12,	11111111B, 10001111B
	DB	T_W12,	11111111B, 11001111B
	DB	T_W12,	11111111B, 10101011B
	DB	T_W12,	11111111B, 11101111B
	DB	T_W12,	11011111B, 10011111B
	DB	T_W12,	10111111B, 11011111B
	DB	T_W12,	11111111B, 10111101B
	DB	T_W12,	11111111B, 11111110B
	DB	T_KONEC

;dek. BCD / 7 seg. SA	   RR
;7446; 7447		 03BBL21
I7446T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10011111B, 10011000B	;6
	DB	T_W12,	11101100B, 10000011B	;9
	DB	T_GOTO
	DW	G7446T

;D146D, D147D, 74246, 74247
;dek. BCD / 7 seg. SA	    RR
;			 03BBL21
ID146T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10011111B, 10001000B	;6
	DB	T_W12,	11101100B, 10000001B	;9

;SPOLECNE PRO 7446, 7447, D146D, D147D
;dek. BCD / 7 seg. SA	   RR
;			 03BBL21
G7446T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_W12,	10101010B, 10000000B	;TEST
	DB	T_W12,	10000100B, 11111111B	;POTLA. NULA
	DB	T_VV2,	01111111B, 00000000B	;/RBO VSTUP
	DB	T_W12,	11010101B, 11111111B	;ZHASNUTI DISPLEJE
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_W12,	10011100B, 10100000B	;0
	DB	T_W12,	11011100B, 11110011B	;1
	DB	T_W12,	10011101B, 11000100B	;2
	DB	T_W12,	11011101B, 11000001B	;3
	DB	T_W12,	10011110B, 10010011B	;4
	DB	T_W12,	11011110B, 10001001B	;5
	DB	T_W12,	11011111B, 11100011B	;7
	DB	T_W12,	10111100B, 10000000B	;8
	DB	T_W12,	10111101B, 11011100B	;10
	DB	T_W12,	11111101B, 11011001B	;11
	DB	T_W12,	10111110B, 10010111B	;12
	DB	T_W12,	11111110B, 10001101B	;13
	DB	T_W12,	10111111B, 10011100B	;14
	DB	T_W12,	11111111B, 11111111B	;15
	DB	T_KONEC

;dek. BCD / 7 seg. SK	   RR
;7448			 03BBL21
I7448T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10011111B, 11100111B	;6
	DB	T_W12,	11101100B, 11111100B	;9
	DB	T_GOTO
	DW	G7448T

;74248, 74249
;dek. BCD / 7 seg. SK	    RR
;			 03BBL21
I74248T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10011111B, 11110111B	;6
	DB	T_W12,	11101100B, 11111110B	;9

;SPOLECNE PRO 7448, 74248,
;dek. BCD / 7 seg. SK	   RR
;			 03BBL21
G7448T: 	;	ZAAIOTAA   Nfgabcde
	DB	T_W12,	10101010B, 11111111B	;TEST
	DB	T_W12,	10000100B, 10000000B	;POTLA. NULA
	DB	T_VV2,	01111111B, 00000000B	;/RBO VSTUP
	DB	T_W12,	11010101B, 10000000B	;ZHASNUTI DISPLEJE
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_W12,	10011100B, 11011111B	;0
	DB	T_W12,	11011100B, 10001100B	;1
	DB	T_W12,	10011101B, 10111011B	;2
	DB	T_W12,	11011101B, 10111110B	;3
	DB	T_W12,	10011110B, 11101100B	;4
	DB	T_W12,	11011110B, 11110110B	;5
	DB	T_W12,	11011111B, 10011100B	;7
	DB	T_W12,	10111100B, 11111111B	;8
	DB	T_W12,	10111101B, 10100011B	;10
	DB	T_W12,	11111101B, 10100110B	;11
	DB	T_W12,	10111110B, 11101000B	;12
	DB	T_W12,	11111110B, 11110010B	;13
	DB	T_W12,	10111111B, 11100011B	;14
	DB	T_W12,	11111111B, 10000000B	;15
	DB	T_KONEC

;dek. BCD / 7 seg. SK	  03I21
I7449T:		;	ZeAABAAX   xNfgabcd
	DB	T_VV2,	00111110B, 00000000B
	DB	T_NAP,	DIL14
	DB	T_W12,	11001001B, 11101111B	;0
	DB	T_W12,	10101001B, 11000110B	;1
	DB	T_W12,	11001011B, 11011101B	;2
	DB	T_W12,	10101011B, 11011111B	;3
	DB	T_W12,	10001101B, 11110110B	;4
	DB	T_W12,	10101101B, 11111011B	;5
	DB	T_W12,	11001111B, 11110011B	;6
	DB	T_W12,	10101111B, 11001110B	;7
	DB	T_W12,	11011001B, 11111111B	;8
	DB	T_W12,	10111001B, 11111110B	;9
	DB	T_W12,	11011011B, 11010001B	;10
	DB	T_W12,	10111011B, 11010011B	;11
	DB	T_W12,	10011101B, 11110100B	;12
	DB	T_W12,	10111101B, 11111001B	;13
	DB	T_W12,	11011111B, 11110001B	;14
	DB	T_W12,	10111111B, 11000000B	;15
	DB	T_W12,	10100011B, 11000000B	;ZHASNUTI DISPLEJE
	DB	T_W12,	10010101B, 11000000B	;ZHASNUTI DISPLEJE
	DB	T_KONEC

;D345, D346 S REDUKCI R_D34XD
;dek. HEX / 7 seg. SA	   RR
;			 03BBX21
ID345T: 	;	ZAAIOXAA   Nfgabcde
	DB	T_NZ2,	00000100B, 00000000B
	DB	T_VV2,	01110011B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10111101B, 10000010B	;10 - A
	DB	T_W12,	11111101B, 10011000B	;11 - b
	DB	T_W12,	10111110B, 10101100B	;12 - c
	DB	T_W12,	11111110B, 11010000B	;13 - d
	DB	T_W12,	10111111B, 10001100B	;14 - E
	DB	T_W12,	11111111B, 10001110B	;15 - F
	DB	T_GOTO
	DW	GD347T

;D347, D348 S REDUKCI R_D34XD
;dek. HEX / 7 seg. SA	   RR
ID347T: 	;	ZAAIOXAA   Nfgabcde
	DB	T_NZ2,	00000100B, 00000000B
	DB	T_VV2,	01110011B, 00000000B	;/RBO VYSTUP
	DB	T_NAP,	DIL16
	DB	T_W12,	10111101B, 11011111B	;10 - -
	DB	T_W12,	11111101B, 10001100B	;11 - E
	DB	T_W12,	10111110B, 10110000B	;12 - U
	DB	T_W12,	11111110B, 11010000B	;13 - d
	DB	T_W12,	10111111B, 11011100B	;14 - c
	DB	T_W12,	11111111B, 10000010B	;15 - A

;SPOLECNE PRO D345, D346, D347, D348
;dek. HEX/BCD/7 seg. SA	   RR
;			 03BB 21
GD347T: 	;	ZAAIOXAA   Nfgabcde
	DB	T_W12,	10000100B, 11111111B	;POTLA. NULA
	DB	T_VV2,	01111011B, 00000000B	;/RBO VSTUP
	DB	T_W12,	11010101B, 11111111B	;ZHASNUTI DISPLEJE
	DB	T_VV2,	01110111B, 00000000B	;/RBO VYSTUP
	DB	T_W12,	10011100B, 10100000B	;0
	DB	T_W12,	11011100B, 11110011B	;1
	DB	T_W12,	10011101B, 11000100B	;2
	DB	T_W12,	11011101B, 11000001B	;3
	DB	T_W12,	10011110B, 10010011B	;4
	DB	T_W12,	11011110B, 10001001B	;5
	DB	T_W12,	10011111B, 10001000B	;6
	DB	T_W12,	11011111B, 10100011B	;7
	DB	T_W12,	10111100B, 10000000B	;8
	DB	T_W12,	11101100B, 10000001B	;9
	DB	T_KONEC

;2x 2-2vstup. rozsirit. AND-OR-INVERT S R7460
;			 EEEEEE      E    E
;7450		;	 BBBAAA2   11A2   B    1 12221
I7450T:		;	ZCBACBAD   CYDYXXXD   NBXDCBAA
	DB	T_NZ3,	00000000B, 00001110B, 00100000B
	DB	T_VV3,	01111111B, 10100001B, 01011111B
	DB	T_NAP,	DIL24
G7450T:	DB	T_W123,	10000001B, 01001110B, 10111110B
	DB	T_W123,	10000000B, 11011110B, 10100000B
	DB	T_W123,	10000001B, 01001110B, 11101100B
	DB	T_W23,		   01001110B, 10101011B
	DB	T_W23,		   10001110B, 11110110B
	DB	T_W123,	10000000B, 10001110B, 10111111B
	DB	T_W123,	10000001B, 00011110B, 11110001B
	DB	T_W123,	10000000B, 10011110B, 11101001B
	DB	T_W23,		   01011110B, 10100100B
	DB	T_W23,		   10011110B, 11110011B
	DB	T_KONEC

;2x 2-2vstup. rozsirit. AND-OR-INVERT S R7460 A 7460
;			 EEEEEE      E    E
;7450 + 7460	;	 BBBAAA2   11A2   B    1 12221
I7450R:		;	ZCBACBAD   CYDYXXXD   NBXDCBAA
	DB	T_NZ3,	00000000B, 00001110B, 00100000B
	DB	T_VV3,	01111111B, 10100001B, 01011111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10001110B, 00101110B, 10101110B
	DB	T_W123,	11110001B, 00001111B, 10100110B
	DB	T_W123,	11110001B, 01101110B, 10101010B
	DB	T_W123,	10111001B, 01001111B, 10101100B
	DB	T_W123,	11010101B, 01001111B, 10101000B
	DB	T_W123,	11100010B, 01011111B, 10101010B
	DB	T_W123,	10011101B, 01111110B, 10100100B
	DB	T_W123,	10101010B, 01101110B, 10100110B
	DB	T_W123,	11000111B, 01111110B, 10100010B
	DB	T_W123,	10001110B, 01011111B, 10101100B
	DB	T_GOTO
	DW	G7450T

;2x 2-2vstup. AND-OR-INVERT
;7451			 222221      1  111
I7451T:		;	ZYDCBAAX   XNBXXDCY
	DB	T_NZ2,	00000001B, 10011000B
	DB	T_VV2,	00111110B, 00100110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10110011B, 11111000B
	DB	T_W12,	10001101B, 11011110B
	DB	T_W12,	10111101B, 11011001B
	DB	T_W12,	11000011B, 11111110B
	DB	T_W12,	11101011B, 11011101B
	DB	T_W12,	11010101B, 11111011B
	DB	T_W12,	10110111B, 11111100B
	DB	T_W12,	10111011B, 11111010B
	DB	T_W12,	10101111B, 11011110B
	DB	T_W12,	10011101B, 11111110B
	DB	T_KONEC

;3-3vstup. 2-2vstup. AND-OR-INVERT
;74LS51			 222221      111111
I74LS51:	;	ZYDCBAAX   XNCBFEDY
	DB	T_VV2,	00111110B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10110011B, 11110000B
	DB	T_W12,	10001101B, 11001110B
	DB	T_W12,	10111101B, 11000001B
	DB	T_W12,	11000011B, 11111110B
	DB	T_W12,	11101011B, 11101101B
	DB	T_W12,	11010111B, 11011011B
	DB	T_W12,	10110101B, 11110111B
	DB	T_W12,	10111011B, 11001001B
	DB	T_W12,	10101101B, 11100101B
	DB	T_W12,	10011101B, 11010011B
	DB	T_W12,	10110011B, 11110100B
	DB	T_W12,	10001111B, 11111010B
	DB	T_W12,	10111111B, 11011110B
	DB	T_W12,	11000001B, 11101110B
	DB	T_KONEC

;2-2-2-2vstup. rozsirit. AND-OR-INVERT S R_7460
;			 EEEEEE      E    E
;7453		;	 BBBAAA      A    B
I7453T:		;	ZCBACBAF   GYDXXXXD   NBXHEDCA
	DB	T_NZ3,	00000000B, 00011110B, 00100000B
	DB	T_VV3,	01111111B, 10100001B, 01011111B
	DB	T_NAP,	DIL24
G7453T:	DB	T_W123,	10000000B, 01011110B, 10100000B
	DB	T_W123,	10000001B, 10011110B, 11111111B
	DB	T_W23,		   10011110B, 11111110B
	DB	T_W23,		   10011110B, 10111111B
	DB	T_W23,		   10011110B, 11111101B
	DB	T_W23,		   10011110B, 11111011B
	DB	T_W23,		   10011110B, 11110111B
	DB	T_W123,	10000000B, 10011110B, 11111111B
	DB	T_W123,	10000001B, 00011110B, 11111111B
	DB	T_W23,		   10011110B, 11101111B
	DB	T_W123,	10000000B, 01011110B, 10100001B
	DB	T_W23,		   01011110B, 11100000B
	DB	T_W23,		   01011110B, 10100010B
	DB	T_W23,		   01011110B, 10100100B
	DB	T_W23,		   01011110B, 10101000B
	DB	T_W123,	10000001B, 01011110B, 10100000B
	DB	T_W123,	10000000B, 11011110B, 10100000B
	DB	T_W23,		   01011110B, 10110000B
	DB	T_KONEC

;2-2-2-2vstup. rozsirit. AND-OR-INVERT S R_7460 A 7460
;			 EEEEEE      E    E
;7453 + 7460	;	 BBBAAA      A    B
I7453R:		;	ZCBACBAF   GYDXXXXD   NBXHEDCA
	DB	T_NZ3,	00000000B, 00011110B, 00100000B
	DB	T_VV3,	01111111B, 10100001B, 01011111B
	DB	T_NAP,	DIL24
	DB	T_W123,	11111110B, 00111111B, 10100000B
	DB	T_W12,	10000000B, 01011110B
	DB	T_W12,	11110000B, 00011111B
	DB	T_W12,	10001110B, 00111110B
	DB	T_W12,	10011100B, 01111110B
	DB	T_W12,	10101010B, 01111110B
	DB	T_W12,	11000110B, 01111110B
	DB	T_W12,	10001110B, 01011111B
	DB	T_W12,	11100010B, 01011111B
	DB	T_W12,	11010100B, 01011111B
	DB	T_W12,	10111000B, 01011111B
	DB	T_W12,	11110000B, 01111110B
	DB	T_GOTO
	DW	G7453T

;2x 2-2vstup. AND-OR-INVERT
;7454			  33221      1  44
I7454T:		;	ZXFECDAX   XNBXXHGY
	DB	T_NZ2,	00000001B, 10011000B
	DB	T_VV2,	00111110B, 00100110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111111B, 11111110B
	DB	T_W12,	11000001B, 11011001B
	DB	T_W12,	11110001B, 11011000B
	DB	T_W12,	11001101B, 11011000B
	DB	T_W12,	11000011B, 11111000B
	DB	T_W12,	11000001B, 11011110B
	DB	T_W12,	11111111B, 11111000B
	DB	T_W12,	11111101B, 11011110B
	DB	T_W12,	11110011B, 11111110B
	DB	T_W12,	11001111B, 11111110B
	DB	T_W12,	11101011B, 11011101B
	DB	T_W12,	11010101B, 11111011B
	DB	T_W12,	11110011B, 11111000B
	DB	T_W12,	11001101B, 11011110B
	DB	T_W12,	11100001B, 11011001B
	DB	T_W12,	11010001B, 11011001B
	DB	T_W12,	11001001B, 11011001B
	DB	T_W12,	11000101B, 11011001B
	DB	T_W12,	11000011B, 11011001B
	DB	T_W12,	11000001B, 11111001B
	DB	T_W12,	11000001B, 11011101B
	DB	T_W12,	11000001B, 11011011B
	DB	T_KONEC

;3-3vstup. 2-2vstup. AND-OR-INVERT
;74LS54			  22211      44333
I74LS54:	;	ZYEDCBAX   XNJIHGFX
	DB	T_VV2,	00111110B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10111001B, 11000001B
	DB	T_W12,	10000111B, 11000001B
	DB	T_W12,	10000001B, 11110001B
	DB	T_W12,	10000001B, 11001111B
	DB	T_W12,	10111111B, 11110001B
	DB	T_W12,	10111111B, 11001111B
	DB	T_W12,	10111001B, 11111111B
	DB	T_W12,	10000111B, 11111111B
	DB	T_W12,	11101011B, 11010101B
	DB	T_W12,	11010101B, 11101011B
	DB	T_W12,	10111001B, 11110001B
	DB	T_W12,	10000111B, 11001111B
	DB	T_W12,	11001011B, 11010011B
	DB	T_W12,	11010101B, 11100101B
	DB	T_W12,	11100011B, 11011001B
	DB	T_KONEC

;4-4vstup. rozsirit. AND-OR-INVERT S R_7460
;			 EEEEEE      E    E
;7455		;	 BBBAAA      A    B
I7455T:		;	ZCBACBAX   EYDXXXXD   NHGFDCBA
	DB	T_NZ2,	00000000B, 00011110B
	DB	T_VV3,	01111110B, 10100001B, 01111111B
	DB	T_NAP,	DIL24
G7455T:	DB	T_W123,	10000001B, 10011110B, 11111111B
	DB	T_W23,		   01011110B, 10000000B
	DB	T_W23,		   00011110B, 10001111B
	DB	T_W23,		   10011110B, 11110000B
	DB	T_W23,		   01011110B, 11110001B
	DB	T_W23,		   11011110B, 11100010B
	DB	T_W23,		   11011110B, 11010100B
	DB	T_W23,		   11011110B, 10111000B
	DB	T_W23,		   01011110B, 11000111B
	DB	T_W23,		   01011110B, 10101011B
	DB	T_W23,		   01011110B, 10011101B
	DB	T_W23,		   11011110B, 10001110B
	DB	T_KONEC

;4-4vstup. rozsirit. AND-OR-INVERT S R_7460 A 7460
;			 EEEEEE      E    E
;7455 + 7460	;	 BBBAAA      A    B
I7455R:		;	ZCBACBAX   EYDXXXXD   NHGFDCBA
	DB	T_NZ2,	00000000B, 00011110B
	DB	T_VV3,	01111110B, 10100001B, 01111111B
	DB	T_NAP,	DIL24
	DB	T_W123,	11110001B, 00011111B, 10000000B
	DB	T_W12,	10001111B, 00111110B
	DB	T_W12,	11111111B, 00111111B
	DB	T_W12,	10000001B, 01011110B
	DB	T_W12,	10011111B, 01011110B
	DB	T_W12,	10101101B, 01111110B
	DB	T_W12,	11001011B, 01111110B
	DB	T_W12,	10000111B, 01111111B
	DB	T_W12,	11100011B, 01011111B
	DB	T_W12,	11010101B, 01011111B
	DB	T_W12,	10111001B, 01011111B
	DB	T_W12,	11110001B, 01111110B
	DB	T_GOTO
	DW	G7455T

;4-4vstup. AND-OR-INVERT
;74LS55			  
I74LS55:	;	ZXXDCBAX   XNHGFEXY
	DB	T_NZ2,	01100001B, 10000010B
	DB	T_VV2,	00011110B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	11100001B, 11000011B
	DB	T_W12,	11111111B, 11111110B
	DB	T_W12,	11100011B, 11011111B
	DB	T_W12,	11100101B, 11101111B
	DB	T_W12,	11101001B, 11110111B
	DB	T_W12,	11110001B, 11111011B
	DB	T_W12,	11101111B, 11000111B
	DB	T_W12,	11110111B, 11001011B
	DB	T_W12,	11111011B, 11010011B
	DB	T_W12,	11111101B, 11100011B
	DB	T_W12,	11101011B, 11111110B
	DB	T_W12,	11110101B, 11111110B
	DB	T_W12,	11111111B, 11101010B
	DB	T_W12,	11111111B, 11010110B
	DB	T_KONEC

;3-3vstup. 2-2vstup. AND-OR
;7458			 222221      111111
I7458T:		;	ZYDCBAAX   XNCBFEDY
	DB	T_VV2,	00111110B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11110011B, 11110001B
	DB	T_W12,	11001101B, 11001111B
	DB	T_W12,	11111101B, 11000000B
	DB	T_W12,	10000011B, 11111111B
	DB	T_W12,	10101011B, 11101100B
	DB	T_W12,	10010111B, 11011010B
	DB	T_W12,	11110101B, 11110110B
	DB	T_W12,	11111011B, 11001000B
	DB	T_W12,	11101101B, 11100100B
	DB	T_W12,	11011101B, 11010010B
	DB	T_W12,	11110011B, 11110101B
	DB	T_W12,	11001111B, 11111011B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	10000001B, 11101111B
	DB	T_KONEC

;2x 4AND expander (LD1 LP1), testonano s 7423, 7450, 7453, 7455
;7460
I7460T:
	DB	T_NIC

;4-2-3-2 vstup. AND-OR-INVERT
;7464, 7465		 333112      22244
I7464T:		;	ZIHGFEAX   XNDCBKJY
	DB	T_VV2,	01111110B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000001B, 11000001B
	DB	T_W12,	11111111B, 11111110B
	DB	T_W12,	11110101B, 11101010B
	DB	T_W12,	10101111B, 11010100B
	DB	T_W12,	11010111B, 11111010B
	DB	T_W12,	10101011B, 11010110B
	DB	T_W12,	11100111B, 11000101B
	DB	T_W12,	11011001B, 11100011B
	DB	T_W12,	10110101B, 11010101B
	DB	T_W12,	11001001B, 11001011B
	DB	T_W12,	10100111B, 11110101B
	DB	T_W12,	10011011B, 11101011B
	DB	T_W12,	10001111B, 11011000B
	DB	T_W12,	11100101B, 11111110B
	DB	T_W12,	10110001B, 11110001B
	DB	T_KONEC

;K.O. J-K s SR
;7472, 74110		 /321/       /C213
I7472T:		;	ZQJJJRXX   XNSPKKKQ
	DB	T_NZ2,	00000011B, 10000000B
	DB	T_VV2,	00111100B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000011B, 11100000B	;A-RESET
	DB	T_W12,	10100111B, 11000001B	;A-SET
	DB	T_W12,	10111111B, 11100001B
	DB	T_W2,		   11110001B
	DB	T_W12,	10111111B, 11100001B	;S-SET
	DB	T_W12,	10000111B, 11101111B
	DB	T_W2,		   11111111B
	DB	T_W12,	11000111B, 11101110B	;S-RESET
	DB	T_W12,	11111111B, 11101110B
	DB	T_W2,		   11111110B
	DB	T_W12,	10111111B, 11101111B	;T
	DB	T_W2,		   11111111B
	DB	T_W12,	11111111B, 11101110B	;T
	DB	T_W12,	11101111B, 11100100B
	DB	T_W2,		   11110100B
	DB	T_W12,	11101111B, 11100100B	;NIC
	DB	T_W12,	11010111B, 11101010B
	DB	T_W2,		   11111010B
	DB	T_W12,	11010111B, 11101010B	;NIC
	DB	T_KONEC

;2X K.O. J-K s R	 222 111   111 222
;7473			  /C  /C    /    /
I7473T:		;	XJRPNKRP   JQQZKQQX
	DB	T_VV2,	01110111B, 10001000B
	DB	T_NAP,	DIL4_13
	DB	T_ZIF14
	DB	T_W12,	11001100B, 01010011B	;A-RESET
	DB	T_W1,	11111111B
	DB	T_W12,	11101110B, 01010101B	;S-1RESET, 2SET
	DB	T_W12,	10101010B, 11011101B
	DB	T_W1,	10111011B
	DB	T_W12,	10101010B, 10111011B	;S-2RESET, 1SET
	DB	T_W12,	11101110B, 10111011B
	DB	T_W1,	11111111B
	DB	T_W12,	11101110B, 11011101B	;T
	DB	T_W1,	11111111B
	DB	T_W12,	11101110B, 10111011B	;T
	DB	T_KONEC

;2X K.O. D. s SR
;7474			 / /C /      / C/ /
I7474T:		;	ZQQSPDRX   XNRDPSQQ
	DB	T_VV2,	00011110B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	10100011B, 11010101B	;A-SET, RESET
	DB	T_W12,	11010101B, 11100010B	;A-RESET, SET
	DB	T_W12,	11010111B, 11100110B
	DB	T_W12,	10111111B, 11101101B	;S-SET, RESET
	DB	T_W12,	10110011B, 11110101B
	DB	T_W12,	11011011B, 11111110B	;S-RESET, SET
	DB	T_KONEC

;2X 2BIT STRADAC	_      _     _  _
;7475			332 2100   0111 223
I7475T:		;	QDDNEDDQ   QQQEZQQQ
	DB	T_VV2,	01101110B, 00010000B
	DB	T_NAP,	DIL5_12
	DB	T_W12,	10111010B, 10111010B	;TRANPARENTNI
	DB	T_W12,	10110010B, 10101010B
	DB	T_W12,	11010100B, 10101010B	;ZACHYT
	DB	T_W12,	01011101B, 01011101B	;TRANPARENTNI
	DB	T_W12,	01010101B, 01001101B
	DB	T_W12,	00110011B, 01001101B	;ZACHYT
	DB	T_KONEC

;2X K.O. J-K s SR	222 1111   111 2222
;7476, 74106		__C  __C     _   _
I7476T:		;	RSPNJRSP   KQQZKQQJ
	DB	T_VV2,	11101111B, 10001001B
	DB	T_NAP,	DIL5_13
	DB	T_W12,	01010100B, 11010011B	;A-RESET, SET
	DB	T_W12,	10011010B, 00111100B	;A-SET, RESET
	DB	T_W12,	11011110B, 00111100B
	DB	T_W1,	11111111B
	DB	T_W12,	11011110B, 01011010B	;S-RESET, SET
	DB	T_W12,	11010110B, 11010011B
	DB	T_W1,	11110111B
	DB	T_W12,	11010110B, 10110101B	;S-SET, RESET
	DB	T_W12,	11011110B, 10111101B
	DB	T_W1,	11111111B
	DB	T_W12,	11011110B, 11011011B	;T
	DB	T_W1,	11111111B
	DB	T_W12,	11011110B, 10111101B	;T
	DB	T_KONEC

;2X 2bit. stradac
;7477			 N23 210   011  32
I7477T:		;	XCDDNEDD   QQEZXQQX
	DB	T_NZ2,	11000000B, 00001001B
	DB	T_VV2,	00110111B, 00100000B
	DB	T_NAP,	DIL4_13
	DB	T_ZIF14
	DB	T_W12,	11011101B, 10111101B	;TRANPARENTNI
	DB	T_W12,	11011001B, 10011101B	;ZACHYT
	DB	T_W12,	11101010B, 10011101B
	DB	T_W12,	11101110B, 01111011B	;TRANPARENTNI
	DB	T_W12,	11101010B, 01011011B	;ZACHYT
	DB	T_W12,	11011001B, 01011011B
	DB	T_KONEC

;SRAM 16x1bit			     __
;7481			 321 123   4HHL L4
I7481T:		;	xYYYNXXX   XWQQZWYx
	DB	T_VV2,	01110111B, 11000110B
	DB	T_NAP,	DIL4_12
	DB	T_ZIF14
	DB	T_W12,	10011100B, 00101001B
	DB	T_W2,		   01101001B
	DB	T_W2,		   00101001B	;A=0, D=0, ZAPIS
	DB	T_W1,	10011010B
	DB	T_W2,		   00101101B
	DB	T_W2,		   00101001B	;A=1, D=1
	DB	T_W1,	10011001B
	DB	T_W2,		   01101001B
	DB	T_W2,		   00101001B	;A=2, D=0
	DB	T_W12,	10011000B, 10101001B
	DB	T_W2,		   10101101B
	DB	T_W2,		   10101001B	;A=3, D=1
	DB	T_W12,	10101100B, 00101001B
	DB	T_W2,		   00101101B
	DB	T_W2,		   00101001B	;A=4, D=1
	DB	T_W1,	10101010B
	DB	T_W2,		   01101001B
	DB	T_W2,		   00101001B	;A=5, D=0
	DB	T_W1,	10101001B
	DB	T_W2,		   00101101B
	DB	T_W2,		   00101001B	;A=6, D=1
	DB	T_W12,	10101000B, 10101001B
	DB	T_W2,		   11101001B
	DB	T_W2,		   10101001B	;A=7, D=0
	DB	T_W12,	11001100B, 00101001B
	DB	T_W2,		   01101001B
	DB	T_W2,		   00101001B	;A=8, D=0
	DB	T_W1,	11001010B 
	DB	T_W2,		   00101101B
	DB	T_W2,		   00101001B	;A=9, D=1
	DB	T_W1,	11001001B 
	DB	T_W2,		   01101001B
	DB	T_W2,		   00101001B	;A=A, D=0
	DB	T_W12,	11001000B, 10101001B
	DB	T_W2,		   10101101B
	DB	T_W2,		   10101001B	;A=B, D=1
	DB	T_W12,	10001100B, 00101011B
	DB	T_W2,		   00101111B
	DB	T_W2,		   00101011B	;A=C, D=1
	DB	T_W1,	10001010B 
	DB	T_W2,		   01101011B
	DB	T_W2,		   00101011B	;A=D, D=0
	DB	T_W1,	10001001B
	DB	T_W2,		   00101111B
	DB	T_W2,		   00101011B	;A=E, D=1
	DB	T_W12,	10001000B, 10101011B
	DB	T_W2,		   11101011B
	DB	T_W2,		   10101011B	;A=F, D=0
	DB	T_W12,	10011100B, 00011001B	;A=0, D=0, CTENI
 	DB	T_W12,	10011010B, 00101001B	;A=1, D=1
	DB	T_W12,	10011001B, 00011001B	;A=2, D=0
	DB	T_W12,	10011000B, 10101001B	;A=3, D=1
	DB	T_W12,	10101100B, 00101001B	;A=4, D=1
 	DB	T_W12,	10101010B, 00011001B	;A=5, D=0
 	DB	T_W12,	10101001B, 00101001B	;A=6, D=1
	DB	T_W12,	10101000B, 10011001B	;A=7, D=0
	DB	T_W12,	11001100B, 00011001B	;A=8, D=0
	DB	T_W12,	11001010B, 00101001B	;A=9, D=1
	DB	T_W12,	11001001B, 00011001B	;A=A, D=0
	DB	T_W12,	11001000B, 10101001B	;A=B, D=1
	DB	T_W12,	10001100B, 00101011B	;A=C, D=1
 	DB	T_W12,	10001010B, 00011011B	;A=B, D=0
	DB	T_W12,	10001101B, 00101011B	;A=C, D=1
	DB	T_W12,	10001000B, 10011011B	;A=D, D=0
	DB	T_KONEC

;4bit. uplna scitacka
;7483			222 3334   44OI 111
I7483T:		;	ABSNBASA   BSCCZBAS
	DB	T_VV2,	11001101B, 10010110B
	DB	T_NAP,	DIL5_12
	DB	T_W12,	00010000B, 00001000B	;0000+0000+0=0 0000
	DB	T_W12,	11111111B, 11111111B	;1111+1111+1=1 1111
	DB	T_W12,	00010000B, 00011001B	;0000+0000+1=0 0001
	DB	T_W12,	11111111B, 11101110B	;1111+1111+0=1 1110
	DB	T_W12,	00111100B, 01001110B	;0101+0101+0=0 1010
	DB	T_W12,	11010011B, 10101000B	;1010+1010+0=1 0100
	DB	T_W12,	00111100B, 01011111B	;0101+0101+1=0 1011
	DB	T_W12,	11010011B, 10111001B	;1010+1010+1=1 0101
	DB	T_W12,	01110110B, 11001011B	;0101+1010+0=0 1111
	DB	T_W12,	01010100B, 10111010B	;0101+1010+1=1 0000
	DB	T_KONEC

;4bit. komparator	 A - B
;7485, 4063		 <=>>=<3    3221100
I7485T:		;	ZQQQIIIB   NABAABAB
	DB	T_VV2,	00001111B, 01111111B	;	     3210 3210 ><= ><=
	DB	T_NAP,	DIL16			;	     AAAA BBBB III QQQ
	DB	T_W12,	10010100B, 11010101B	;A>B	     1100 0011 001 100
	DB	T_W12,	11000101B, 10101010B	;Ab - A=B   1010 1010 100 100
	DB	T_W12,	10100100B, 10110011B	;a=b - A=B   0101 0101 001 001
	DB	T_W12,	11000010B, 10111100B	;ab - A=B 1100 1100 111 001
	DB	T_W12,	10001011B, 11111100B	;a<>b - A=B  1110 1110 110 000
	DB	T_W12,	11010000B, 10001111B	;a..b - A=B  0011 0011 000 110
	DB	T_KONEC

;4x 2EX-OR
;7486, 74136
I7486T:		;	ZYBAYBAX   XNBAYBAY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10001101B, 11101110B
	DB	T_W12,	11101011B, 11110000B
	DB	T_W12,	11010111B, 11000011B
	DB	T_W12,	10110001B, 11011101B
	DB	T_KONEC

;SRAM 16x4bity		 _ _ __         _ _
;7489			 1100WC0    1233322
I7489T:		;	ZQDQDREA   NAAADQDQ
	DB	T_VV2,	00101111B, 01111010B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10101010B	;TRANSPARENTNI
G7489T:
	DB	T_W12,	11111111B, 10101111B	;/CE=/WR=1
	DB	T_O12,	11010110B, 10000101B	;A0=D0, ZAPIS
	DB	T_O1,	11010000B
	DB	T_O1,	11010110B
	DB	T_O12,	11011111B, 10000101B	;A1=D1
	DB	T_O1,	11001001B
	DB	T_O1,	11011111B
	DB	T_O12,	11110110B, 11000101B	;A2=D2
	DB	T_O1,	10110000B
	DB	T_O1,	10110110B
	DB	T_O12,	10101111B, 11000101B	;A3=D3
	DB	T_O1,	10101001B
	DB	T_O1,	10101111B
	DB	T_O12,	11010110B, 10100110B	;A4=D4
	DB	T_O1,	11010000B
	DB	T_O1,	11010110B
	DB	T_O12,	11001111B, 10100110B	;A5=D5
	DB	T_O1,	11001001B
	DB	T_O1,	11001111B
	DB	T_O12,	10110110B, 11100110B	;A6=D6
	DB	T_O1,	10110000B
	DB	T_O1,	10110110B
	DB	T_O12,	10101111B, 11100110B	;A7=D7
	DB	T_O1,	10101001B
	DB	T_O1,	10101111B
	DB	T_O12,	11010110B, 10011001B	;A8=D8
	DB	T_O1,	11010000B
	DB	T_O1,	11010110B
	DB	T_O12,	11001111B, 10011001B	;A9=D9
	DB	T_O1,	11001001B
	DB	T_O1,	11001111B
	DB	T_O12,	10110110B, 11011001B	;A10=D10
	DB	T_O1,	10110000B
	DB	T_O1,	10110110B
	DB	T_O12,	10101111B, 11011001B	;A11=D11
	DB	T_O1,	10101001B
	DB	T_O1,	10101111B
	DB	T_O12,	11010110B, 10111010B	;A12=D12
	DB	T_O1,	11010000B
	DB	T_O1,	11010110B
	DB	T_O12,	11001111B, 10111010B	;A13=D13
	DB	T_O1,	11001001B
	DB	T_O1,	11001111B
	DB	T_O12,	10110110B, 11111010B	;A14=D14
	DB	T_O1,	10110000B
	DB	T_O1,	10110110B
	DB	T_O12,	10101111B, 11111010B	;A15=D15
	DB	T_O1,	10101001B
	DB	T_O1,	10101111B
	DB	T_W12,	11111100B, 10001111B	;A0=D0, CTENI
	DB	T_W12,	11100101B, 10001111B	;A1=D1
	DB	T_W12,	10011100B, 11001111B	;A2=D2
	DB	T_W12,	10000101B, 11001111B	;A3=D3
	DB	T_W12,	11111100B, 10101100B	;A4=D4
	DB	T_W12,	11100101B, 10101100B	;A5=D5
	DB	T_W12,	10011100B, 11101100B	;A6=D6
	DB	T_W12,	10000101B, 11101100B	;A7=D7
	DB	T_W12,	11111100B, 10010011B	;A8=D8
	DB	T_W12,	11100101B, 10010011B	;A9=D9
	DB	T_W12,	10011100B, 11010011B	;A10=D10
	DB	T_W12,	10000101B, 11010011B	;A11=D11
	DB	T_W12,	11111100B, 10110000B	;A12=D12
	DB	T_W12,	11100101B, 10110000B	;A13=D13
	DB	T_W12,	10011100B, 11110000B	;A14=D14
	DB	T_W12,	10000101B, 11110000B	;A15=D15
	DB	T_KONEC

;BCD citac		 21  212   1
;7490			 MM  MMC   C 03 12
I7490T:		;	XSSNXRRP   PXQQZQQX
	DB	T_NZ2,	10001000B, 01000001B
	DB	T_VV2,	01100111B, 10000000B
	DB	T_NAP,	DIL5_12
	DB	T_ZIF14
	DB	T_W12,	11111001B, 11111001B	;RESET 9
	DB	T_W12,	10011111B, 11001001B	;RESET 0
	DB	T_W12,	10011011B, 11001001B
	DB	T_W12,	10011010B, 01101101B	;1,1
	DB	T_W12,	10011101B, 11101101B
	DB	T_W12,	10011100B, 01001011B	;0,2
	DB	T_W12,	11011001B, 11001011B
	DB	T_W12,	11011000B, 01101111B	;1,3
	DB	T_W12,	10111001B, 11101111B
	DB	T_W12,	10111000B, 01011001B	;0,4
	DB	T_W12,	10011001B, 11011001B
	DB	T_W12,	10011000B, 01101001B	;1,0
	DB	T_KONEC

;8bit. posuv. reg.		   _
;7491				   77AB C
I7491T:		;	XXXNXXXX   QQDDZPXX
	DB	T_NZ2,	11101111B, 00000011B
	DB	T_VV2,	00000000B, 00110100B
	DB	T_NAP,	DIL5_12
	DB	T_ZIF14
	DB	T_O2,		   00001011B
	DB	T_O2,		   00001111B	;1:ULOZ 0
	DB	T_O2,		   00011011B
	DB	T_O2,		   00011111B	;2:ULOZ 0
	DB	T_O2,		   00101011B
	DB	T_O2,		   00101111B	;2:ULOZ 0
	DB	T_O2,		   00111011B
	DB	T_O2,		   00111111B	;4:ULOZ 1
	DB	T_O2,		   00001011B
	DB	T_O2,		   00001111B	;5:ULOZ 0
	DB	T_O2,		   00011011B
	DB	T_O2,		   00011111B	;6:ULOZ 0
	DB	T_O2,		   00101011B
	DB	T_O2,		   00101111B	;7:ULOZ 0
	DB	T_O2,		   10111011B
	DB	T_W2,		   10111111B	;8:ULOZ 1
	DB	T_W2,		   10001011B
	DB	T_W2,		   10001111B	;1:ULOZ 0
	DB	T_W2,		   10011011B
	DB	T_W2,		   10011111B	;2:ULOZ 0
	DB	T_W2,		   10101011B
	DB	T_W2,		   01101111B	;3:ULOZ 0
	DB	T_W2,		   01111011B
	DB	T_W2,		   10111111B	;4:ULOZ 1
	DB	T_W2,		   10001011B
	DB	T_W2,		   10001111B	;5:ULOZ 0
	DB	T_W2,		   10011011B
	DB	T_W2,		   10011111B	;6:ULOZ 0
	DB	T_W2,		   10101011B
	DB	T_W2,		   01101111B	;7:ULOZ 0
	DB	T_W2,		   01111011B
	DB	T_W2,		   10111111B	;8:ULOZ 1
	DB	T_KONEC

;4bit. citac do 12	 21    2   1
;7492			 MM    C   C 01 23
I7492T:		;	XRRNXXXP   PXQQZQQX
	DB	T_NZ2,	10001110B, 01000001B
	DB	T_VV2,	01100001B, 10000000B
	DB	T_NAP,	DIL5_12
	DB	T_ZIF14
	DB	T_W12,	11111111B, 11001001B	;RESET
	DB	T_W12,	10011111B, 11001001B
	DB	T_W12,	10011110B, 01111001B	;1,1
	DB	T_W12,	10011111B, 11111001B
	DB	T_W12,	10011110B, 01001101B	;0,2
	DB	T_W12,	10111111B, 11001101B
	DB	T_W12,	10111110B, 01101011B	;1,3
	DB	T_W12,	11011111B, 11101011B
	DB	T_W12,	11011110B, 01011011B	;0,4
	DB	T_W12,	10011111B, 11011011B
	DB	T_W12,	10011110B, 01101111B	;1,5
	DB	T_W12,	10011111B, 11101111B
	DB	T_W12,	10011110B, 01001001B	;0,0
	DB	T_W12,	10011111B, 11001001B
	DB	T_W12,	10011110B, 01111001B	;1,1
	DB	T_KONEC

;4bit. BIN citac	     212   1
;7493			     MMC   C 03 12
I7493T:		;	XXXNXRRP   PXQQZQQX
	DB	T_NZ2,	11101000B, 01000001B
	DB	T_VV2,	00000111B, 10000000B
	DB	T_NAP,	DIL5_12
	DB	T_ZIF14
	DB	T_W12,	11111111B, 11001001B	;RESET
	DB	T_W12,	11111011B, 11001001B
	DB	T_W12,	11111010B, 01101101B	;1,1
	DB	T_W12,	11111001B, 11101101B
	DB	T_W12,	11111000B, 01001011B	;0,2
	DB	T_W12,	11111101B, 11001011B
	DB	T_W12,	11111100B, 01101111B	;1,3
	DB	T_W12,	11111001B, 11101111B
	DB	T_W12,	11111000B, 01011001B	;0,4
	DB	T_W12,	11111001B, 11011001B
	DB	T_W12,	11111000B, 01111101B	;1,5
	DB	T_W12,	11111001B, 11111101B
	DB	T_W12,	11111000B, 01011011B	;0,6
	DB	T_W12,	11111001B, 11011011B
	DB	T_W12,	11111000B, 01111111B	;1,7
	DB	T_W12,	11111001B, 11111111B
	DB	T_W12,	11111000B, 01001001B	;0,0
	DB	T_W12,	11111001B, 11001001B
	DB	T_W12,	11111000B, 01101101B	;1,1
	DB	T_KONEC

;4bit. posuv. reg. s par. a ser. vstupem, par. vystup
;7495			  3210S      012312
I7495T:		;	ZSDDDDDX   XNQQQQCC
	DB	T_VV2,	01111110B, 00000011B
	DB	T_NAP,	DIL14
	DB	T_O12,	11010101B, 11101001B	;11101000B
	DB	T_W2,		   11101000B 	;PARARELNI VSTUP DAT
	DB	T_W12,	10000011B, 11101010B	;SERIOVY VSTUP DAT
	DB	T_W2,		   11110100B
	DB	T_W12,	10111101B, 11110110B	;SERIOVY VSTUP DAT
	DB	T_W2,		   11011000B
	DB	T_W12,	10000011B, 11011010B	;SERIOVY VSTUP DAT
	DB	T_W2,		   11101100B
	DB	T_W12,	10000001B, 11101110B	;SERIOVY VSTUP DAT
	DB	T_W2,		   11010100B
	DB	T_KONEC

;5bit. posuv. reg. s par. a ser. vstupem, par. vystup, R
;7496			P43 210C   M012 34S
I7496T:		;	EDDNDDDP   RQQQZQQD
	DB	T_VV2,	11101111B, 10000001B
	DB	T_NAP,	DIL5_12	
	DB	T_W12,	01010100B, 00001001B
	DB	T_W12,	11010100B, 10101011B
	DB	T_W1,	01010100B
	DB	T_W12,	00111111B, 11011001B
	DB	T_W12,	01011110B, 11011000B
	DB	T_W12,	01110111B, 10101100B
	DB	T_W12,	01111010B, 10101101B
	DB	T_W12,	01111101B, 11011011B
	DB	T_W12,	01111010B, 11011011B
	DB	T_W12,	01110111B, 11101101B
	DB	T_W12,	01011110B, 11101100B
	DB	T_W12,	00111111B, 10111010B
	DB	T_W12,	01011110B, 10111011B
	DB	T_W12,	01110111B, 11011101B
	DB	T_W12,	01111010B, 11011100B
	DB	T_KONEC


;synchr. program. delic		       C
;7497			 E  0541    32MAESC
I7497T:		;	ZOYZAAAA   NAARSITP
	DB	T_VV2,	10001111B, 11111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11011111B, 11111101B
	DB	T_W12,	11111111B, 11110101B
	DB	T_W12,	11101111B, 11110100B
	DB	T_W12,	11101111B, 11111100B
	DB	T_W12,	11011111B, 11111110B
	DB	T_W12,	11011111B, 11111111B
	DB	T_W12,	11111111B, 11110111B
	DB	T_W12,	11111111B, 11110110B
	DB	T_W12,	11111111B, 11100001B
	DB	T_W12,	11101111B, 11100000B
	DB	T_W12,	11011111B, 11101001B
	DB	T_W12,	11101111B, 11101000B
	DB	T_W12,	11011111B, 11111011B	;RESET
	DB	T_W12,	11011111B, 11101001B
	DB	T_PROG
	DW	P7497A				;64 PULZU
	DB	T_W12,	10011000B, 10001001B
	DB	T_PROG
	DW	P7497B				;1 PULZU
	DB	T_W12,	10010101B, 10101001B
	DB	T_PROG
	DW	P7497C				;38 PULZU
	DB	T_W12,	10011010B, 11001001B
	DB	T_PROG
	DW	P7497D				;25 PULZU
	DB	T_KONEC

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
;POCET PULZU 
;POCET KROKU 
;POCITADLO KROKU 
;POCITADLO PULZU 
P7497A:	MVI	B,63		;POCET PULZU
	MVI	C,63		;POCET KROKU
	JMP	P7497E
P7497B:	MVI	C,64		;POCET KROKU
	MVI	B,1		;POCET PULZU
	JMP	P7497J
P7497C:	MVI	B,38		;POCET PULZU
	MVI	C,64		;POCET KROKU
	JMP	P7497J
P7497D:	MVI	B,25		;POCET PULZU
P7497J:	MVI	C,64		;POCET KROKU
P7497E:	LXI	D,0		;NUNULJ POCITADLA
	LXI	H,0
P7497I:	IN	PORT2
	DCR	A
	OUT	PORT2		;CP NA 0
	IN	PORT1		;NACTI STAV
	ANI	01110000B	;JEN BITI CO POTREBUJEM
	CPI	01010000B	;TAST NA STAV BEZ PULZU
	JZ	P7497F		;NENI-LI PUZ TAK DALE
	CPI	00010000B	;TAST NA STAV BEZ PULZU PRI PRVNIM KROKU
	JZ	P7497G
	CPI	01100000B	;TAST NA STAV S PULZU
	JNZ	P74121C		;JE-LI CHYBA TAK NAVRAT S HLASENIM
	INR	E		;PRICTI PULZ
	JMP	P7497F
P7497G:	MOV	A,D
	ANA	A
	JNZ	P74121C		;JE-LI CHYBA TAK NAVRAT S HLASENIM
P7497F:	INR	D		;PRICTI KROK
	IN	PORT2
	INR	A
	OUT	PORT2		;CP NA 1
	IN	PORT1		;NACTI STAV
	ANI	01110000B	;JEN BITY CO POTREBUJEM
	CPI	00010000B
	JZ	P7497H		;POSLEDNI KROK
	CPI	01010000B
	JZ	P7497I		;JESTE NENI KONEC
	JMP	P74121C		;VSE OSTATNI JE CHYBA

P7497H:	MOV	A,D
	CMP	C
	JNZ	P74121C		;SPADNY POCET KROKU
	MVI	A,'*'
	CALL	COA		;"*" ZA SPAVNY POCET TROKU
	MOV	A,E
	CMP	B
	JNZ	P74121C		;SPADNY POCET PULZU
	MVI	A,'#'
	CALL	COA		;"#" ZA SPAVNY POCET KROKU
	RET			;NAVRAT ZE STROJOVEHO KODU

;2x 4bit. stradac TP	  0110 0   322332	23110
;74100			 BBBBB A   AABBBB      AAAAAA
I74100T:	;	ZEDDQQXQ   QQQQDDXX   NEDDQDDX
	DB	T_NZ3,	00000010B, 00000011B, 00000001B
	DB	T_VV3,	01110000B, 00001100B, 01110110B
	DB	T_NAP,	DIL24
	DB	T_W123, 11100111B, 01100111B, 11100011B ;TRANSPARENTNI
	DB	T_w13,	10100111B,	      10100011B
	DB	T_W123, 10010111B, 01101011B, 10010101B ;ZACHYT
	DB	T_W123, 11011010B, 10011011B, 11011101B ;TRANSPARENTNI
	DB	T_w13,	10011010B,	      10011101B
	DB	T_W123, 10101010B, 10010111B, 10101011B ;ZACHYT
	DB	T_KONEC

;2x K.O. J-K s R	 _   _       __ __
;74107			 221111      112222
I74107T:	;	ZQQKQQJX   XNRCKRCJ
	DB	T_VV2,	00010010B, 00111111B
	DB	T_NAP,	DIL14
	DB	T_W12,	11010101B, 11000001B	;A-RESET
	DB	T_W2,		   11110111B
	DB	T_W12,	10110101B, 11100101B	;S-1RESET, 2SET
	DB	T_W12,	10100111B, 11101100B
	DB	T_W2,		   11111110B
	DB	T_W12,	11001011B, 11101100B	;S-2RESET, 1SET
	DB	T_W12,	11011011B, 11101101B
	DB	T_W2,		   11111111B
	DB	T_W12,	10110111B, 11101101B	;T
	DB	T_W2,		   11111111B
	DB	T_W12,	11011011B, 11101101B	;T
	DB	T_KONEC

;2x K.O. J-K s SR	 _ _ _ _    _ _ _ _
;74109			 1111111    2222222
I74109T:	;	ZQQSCKJR   NRJKCSQQ
	DB	T_VV2,	00011111B, 01111100B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010100B, 11010010B	;A-1RESET, 2SET
	DB	T_W12,	10100001B, 10110101B	;A-2RESET, 1SET
	DB	T_W12,	10110001B, 11110101B
	DB	T_W12,	11011001B, 11111110B
	DB	T_W12,	11010001B, 11110110B	;S-1RESET, 2SET
	DB	T_W12,	11010111B, 11000110B
	DB	T_W12,	10111111B, 11001101B
	DB	T_W12,	10110111B, 11000101B	;S-1RESET, 2SET
	DB	T_W12,	10100011B, 11100101B
	DB	T_W12,	10111011B, 11101110B
	DB	T_W12,	10110011B, 11100110B	;T
	DB	T_W12,	11011011B, 11101101B
	DB	T_W12,	11010011B, 11100101B	;T
	DB	T_W12,	11010101B, 11010101B
	DB	T_W12,	11011101B, 11011101B
	DB	T_W12,	11010101B, 11010101B	;NIC
	DB	T_KONEC

;2x K.O. J-K s SR         _  __      __  _
;74111			 1111111    2222222
I74111T:	;	ZQQCJRSK   NKSRJCQQ
	DB	T_VV2,	00011111B, 01111100B
	DB	T_NAP,	DIL16
	DB	T_W12,	10100011B, 10011001B	;A-1RESET, 2SET
	DB	T_W12,	11001100B, 11100010B	;A-2RESET, 1SET
	DB	T_W12,	11000111B, 10111010B
	DB	T_W12,	11010111B, 10111110B
	DB	T_W12,	10100111B, 10111001B	;S-1RESET, 2SET
	DB	T_W12,	10101110B, 11110001B
	DB	T_W12,	10111110B, 11110101B
	DB	T_W12,	11001110B, 11110010B	;S-2RESET, 1SET
	DB	T_W12,	11001111B, 11111010B
	DB	T_W12,	11011111B, 11111110B
	DB	T_W12,	10101111B, 11111001B	;T
	DB	T_W12,	10111111B, 11111101B
	DB	T_W12,	11001111B, 11111010B	;T
	DB	T_KONEC

;2x K.O. J-K s SR	 __ _  _    ___  _
;74112			 2111111    1222222
I74112T:	;	ZQQQSJKC   NRRCKJSQ	
	DB	T_VV2,	00001111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10100101B	;A-1RESET, 2SET
	DB	T_W12,	11010100B, 11001010B	;A-2RESET, 1SET
	DB	T_W12,	11011010B, 11100110B
	DB	T_W12,	11011011B, 11110110B
	DB	T_W12,	10101010B, 11100111B	;S-1RESET, 2SET
	DB	T_W12,	10101100B, 11101011B
	DB	T_W12,	10101101B, 11111011B
	DB	T_W12,	11011100B, 11101010B	;S-2RESET, 1SET
	DB	T_W12,	11011110B, 11101110B
	DB	T_W12,	11011111B, 11111110B
	DB	T_W12,	10101110B, 11101111B	;T
	DB	T_W12,	10101111B, 11111111B
	DB	T_W12,	11011110B, 11101110B	;T
	DB	T_KONEC

;2x K.O. J-K s SR	 _ _  _      _  _ _
;74113			 111111      111111
I74113T:	;	ZQQSJKCX   XNCKJSQQ
	DB	T_VV2,	00011110B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	10100111B, 11100010B	;A-SET
	DB	T_W12,	10110111B, 11110110B
	DB	T_W12,	11010101B, 11010101B	;S-RESET
	DB	T_W12,	11011011B, 11101101B
	DB	T_W12,	10111001B, 11001110B	;S-SET
	DB	T_W12,	10111111B, 11111110B
	DB	T_W12,	11011101B, 11011101B	;T
	DB	T_W12,	11011111B, 11111101B
	DB	T_W12,	10111101B, 11011110B	;T
	DB	T_KONEC

;2x K.O. J-K s SR, spol. CLK
;			 _ _            _ _
;74114			 11111_      _22222
I74114T:	;	ZQQSJKRX   XNCKJSQQ
	DB	T_VV2,	00011110B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	11010101B, 11101101B	;A-RESET
	DB	T_W12,	10101011B, 11110010B	;A-SET
	DB	T_W12,	10110111B, 11110110B
	DB	T_W12,	11010111B, 11010101B	;S-RESET
	DB	T_W12,	11011011B, 11101101B
	DB	T_W12,	10111011B, 11001110B	;S-SET
	DB	T_W12,	10111111B, 11111110B
	DB	T_W12,	11011111B, 11011101B	;T
	DB	T_W12,	11011111B, 11111101B
	DB	T_W12,	10111111B, 11011110B	;T
	DB	T_KONEC

;6x K.O. R-S/stradac s spol. R
;			 ___ __      __ ___    ___ ___
;74119			 3333222   6555444R    6661111
I74119T:	;	ZSSRQSRQ   QQRSQRSM   NSSRQRSS
	DB	T_VV3,	01110110B, 00110111B, 01110111B
	DB	T_NAP,	DIL24
	DB	T_W123,	11110110B, 00110110B, 11110111B
	DB	T_W123,	10111011B, 11101101B, 10111101B
	DB	T_W123,	11100100B, 00010011B, 11100011B
	DB	T_W123,	11011011B, 11101101B, 11011110B
	DB	T_W123,	11100100B, 00010011B, 11100011B
	DB	T_W123,	11011011B, 11101101B, 11011110B
	DB	T_KONEC

;MKO			   __
;74121			   21 _
I74121T:	;	ZQBAAXQX   XNXXXXXX
	DB	T_NZ2,	00000101B, 10111111B
	DB	T_VV2,	00111000B, 00000000B
	DB	T_NAP,	DIL14
	DB	T_PROG
	DW	P74121
	DB	T_KONEC

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
P74121:	MVI	A,10000111B	;VYHOZI STAV
	CALL	P74121A		;PROVED TEST
	MVI	A,10101111B	;PULZ NA "B"
	CALL	P74121A		;PROVED TEST
	MVI	A,10111111B	;VYHOZI STAV
	CALL	P74121A		;PROVED TEST
	MVI	A,10101111B	;PULZ NA "A1"
	CALL	P74121A		;PROVED TEST
	MVI	A,10111111B	;VYHOZI STAV
	CALL	P74121A		;PROVED TEST
	MVI	A,10101111B	;PULZ NA "A2"
	CALL	P74121A		;PROVED TEST
	MVI	A,10000111B	;VYHOZI STAV
	CALL	P74121A		;PROVED TEST
	MVI	A,10101111B	;PULZ NA "B"
	CALL	P74121A		;PROVED TEST
	CALL	CRLF		;PRO PREHLEDNOST ODRADKUJ
	RET			;NAVRAT ZE STROJOVEHO KODU

;PODPROGRAMY
;POROVNANI
;SMICKA MA 29 STROJOVYCH CIKLU PRO 8080A TJ. 14.5US
;PRI 65535 PRUCHODECH JE DOBA CMYCKY 950257.5US TJ. 0.95S 
P74121A:LXI	H,0		;VYNULUJ POCITADLO
	MOV	C,A		;SCHOV PRO DALSI POUZITI
	OUT	PORT1		;POSLI DATA NA PORT
P74121B:IN	PORT1		;NACTI PORT			;10
	MOV	B,A		;SHOV DATA Z PORTU		;5
	INX	H		;POCITADLO +1			;5
	MOV	A,H						;5
	ORA	L		;TEST NA PRETECENI 		;4
	JZ	P74121C		;POKUT JE 0 TAK NAVRAT S CHYBOU	;10
	MOV	A,B		;OBNOV DATA
	CMP	C		;POROVNEJ
	JNZ	P74121B		;NENI-LI SHODA TAK DALSI POKUS
	CALL	HADR		;TISK OBSAHU 
	MVI	A,' '
	CALL	COA		;TISK ODELOVACE TJ. MEZEREA
	RET			;NAVRAT

P74121C:INX	SP
	INX	SP		;SROVNEJ ZASOBNIK
	LXI	D,ERR1T
	JMP	TIXP		;CHYBOVE HLASENI S NAVRATEM

;2x MKO s nas. spous.	    __ _       __ _
;74123			   21111      12222
I74123T:	;	ZXXQQRBA   NXXQQRBA
	DB	T_NZ2,	01100000B, 01100000B
	DB	T_VV2,	00000111B, 00000111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11101010B, 11101010B
	DB	T_w12,	11101001B, 11101001B
	DB	T_w12,	11101011B, 11101000B
	DB	T_w12,	11101111B, 11101100B
	DB	T_w12,	11110110B, 11110110B
	DB	T_w12,	11101000B, 11101011B
	DB	T_O2,		   11101111B
	DB	T_PROG
	DW	P74123H
	DB	T_W12,	11101100B, 11101111B
	DB	T_w12,	11110110B, 11110110B
	DB	T_W12,	11101010B, 11101010B
	DB	T_W12,	11100110B, 11111010B
	DB	T_W12,	11101010B, 11101010B
	DB	T_W12,	11111010B, 11100110B
	DB	T_W12,	11101011B, 11101011B
	DB	T_O2,		   11101111B
	DB	T_PROG
	DW	P74123I
	DB	T_PROG
	DW	P74123J
	DB	T_W12,	11101111B, 11101111B
	DB	T_PROG
	DW	P74123A
	DB	T_W12,	11101111B, 11101111B
	DB	T_PROG
	DW	P74123B
	DB	T_W12,	11101111B, 11101111B
	DB	T_PROG
	DW	P74123C
	DB	T_W12,	11101111B, 11101111B
	DB	T_PROG
	DW	P74123D
	DB	T_KONEC

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
P74123A:
P74123L:MVI	A,11101110B
	CALL	P74121A
	RET			;NAVRAT ZE STROJOVEHO KODU

P74123B:MVI	A,11101110B
	CALL	P74123E
	RET			;NAVRAT ZE STROJOVEHO KODU

P74123C:MVI	A,11101110B
	OUT	PORT1
	LXI	H,500H
P74123Q:DCX	H		;POCITADLO -1			;5
	MOV	A,H						;5
	ORA	L		;TEST NA PRETECENI 		;4
	JNZ	P74123Q		;POKUT JE 0 TAK NAVRAT S CHYBOU	;10
	MVI	A,11101111B
	OUT	PORT1
	JMP	P74123L

P74123D:MVI	A,11101110B
	OUT	PORT2
	LXI	H,500H
P74123M:DCX	H		;POCITADLO -1			;5
	MOV	A,H						;5
	ORA	L		;TEST NA PRETECENI 		;4
	JNZ	P74123M		;POKUT JE 0 TAK NAVRAT S CHYBOU	;10
	MVI	A,11101111B
	OUT	PORT2
	MVI	A,11101110B
	CALL	P74123E
	CALL	CRLF		;PRO PREHLEDNOST ODRADKUJ
	RET			;NAVRAT ZE STROJOVEHO KODU

P74123H:MVI	A,11101000B
	CALL	P74121A
	RET			;NAVRAT ZE STROJOVEHO KODU

P74123I:MVI	A,11101011B
	CALL	P74121A
	RET			;NAVRAT ZE STROJOVEHO KODU

P74123J:CALL	P74123K
	RET			;NAVRAT ZE STROJOVEHO KODU

;PODPROGRAMY
P74123E:LXI	H,0		;VYNULUJ POCITADLO
	MOV	C,A		;SCHOV PRO DALSI POUZITI
	OUT	PORT2		;POSLI DATA NA PORT
P74123F:IN	PORT2		;NACTI PORT			;10
	MOV	B,A		;SHOV DATA Z PORTU		;5
	INX	H		;POCITADLO +1			;5
	MOV	A,H						;5
	ORA	L		;TEST NA PRETECENI 		;4
	JZ	P74123G		;POKUT JE 0 TAK NAVRAT S CHYBOU	;10
	MOV	A,B		;OBNOV DATA
	CMP	C		;POROVNEJ
	JNZ	P74123F		;NENI-LI SHODA TAK DALSI POKUS
	CALL	HADR		;TISK OBSAHU 
P74123K:MVI	A,' '
	CALL	COA		;TISK ODELOVACE TJ. MEZEREA
	RET			;NAVRAT

P74123G:INX	SP
	INX	SP		;SROVNEJ ZASOBNIK
	LXI	D,ERR2T
	JMP	TIXP		;CHYBOVE HLASENI S NAVRATEM

;4x budic sbernice	   _  _      _  _
;74125			 222111      444333
I74125T:	;	ZYAEYAEX   XNEAYEAY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10001101B, 11101111B
	DB	T_W12,	11100001B, 11111101B
	DB	T_W12,	11011111B, 11000011B
	DB	T_W12,	11111011B, 11011000B
	DB	T_KONEC

;4x budic sbernice
;74126			 222111      444333
I74126T:	;	ZYAEYAEX   XNEAYEAY
	DB	T_VV2,	00110110B, 00110110B
	DB	T_NAP,	DIL14
	DB	T_W12,	10011111B, 11001011B
	DB	T_W12,	11110011B, 11011001B
	DB	T_W12,	11001101B, 11100111B
	DB	T_W12,	11101001B, 11111100B
	DB	T_KONEC

;DIL14  4x 2vstup. AND budici stupen (30 V), OC  130p  DIL16  2x monostabilni multivibra. s nasle. spousten, TP
;74130
;I74130T:
;	DB	T_NIC

;dekoder 1 z 8 se stradacem
;74131			   _
I74131T:	;	Z7EECAAA   N0123456
	DB	T_VV2,	00111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_O1,	11100000B
	DB	T_W12,	11101000B, 10111111B
	DB	T_W12,	11100001B, 10111111B
	DB	T_W12,	11101001B, 11011111B
	DB	T_W12,	11100010B, 11011111B
	DB	T_W12,	11101010B, 11101111B
	DB	T_W12,	11100011B, 11101111B
	DB	T_W12,	11101011B, 11110111B
	DB	T_W12,	11100100B, 11110111B
	DB	T_W12,	11101100B, 11111011B
	DB	T_W12,	11100101B, 11111011B
	DB	T_W12,	11101101B, 11111101B
	DB	T_W12,	11100110B, 11111101B
	DB	T_W12,	11101110B, 11111110B
	DB	T_W12,	11100111B, 11111110B
	DB	T_W12,	10101111B, 11111111B
	DB	T_W12,	10101010B, 11111111B
	DB	T_W12,	10101101B, 11111111B
	DB	T_GOTO
	DW	G74138T

;13vstup NAND
;74133
I74133T:	;	ZGFEDCBA   NMLKJIHY
	DB	T_VV2,	01111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111111B, 11111110B
	DB	T_W12,	10000000B, 10000001B
	DB	T_W12,	10111111B, 11111111B
	DB	T_W12,	11011111B, 11111111B
	DB	T_W12,	11101111B, 11111111B
	DB	T_W12,	11110111B, 11111111B
	DB	T_W12,	11111011B, 11111111B
	DB	T_W12,	11111101B, 11111111B
	DB	T_W12,	11111110B, 11111111B
	DB	T_W12,	11111111B, 10111111B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	11111111B, 11101111B
	DB	T_W12,	11111111B, 11110111B
	DB	T_W12,	11111111B, 11111011B
	DB	T_W12,	11111111B, 11111101B
	DB	T_KONEC

;3bit. dekoder 3 z 8 s registrem
;74137			   _E
I74137T:	;	Z7EELCBA   N0123456
	DB	T_VV2,	00111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11100000B, 10111111B
	DB	T_W12,	11100001B, 11011111B
	DB	T_W12,	11100010B, 11101111B
	DB	T_W1,	11101010B
	DB	T_W12,	11101101B, 11101111B	;ZACHYT
	DB	T_W12,	11100011B, 11110111B
	DB	T_W12,	11100100B, 11111011B
	DB	T_W12,	11100101B, 11111101B
	DB	T_W1,	11101101B
	DB	T_W12,	11101010B, 11111101B	;ZACHYT
	DB	T_W12,	11100110B, 11111110B
	DB	T_W12,	10100111B, 11111111B
	DB	T_W12,	10101111B, 11111111B
	DB	T_W12,	10101101B, 11111111B
	DB	T_W12,	10101010B, 11111111B
	DB	T_GOTO
	DW	G74138T

;3bit. dekoder 1 z 8
;74138, 74405, 3205, 8205 321
I74138T:	;	Z7EEECBA   N0123456
	DB	T_VV2,	00111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11100000B, 10111111B
	DB	T_W12,	11100001B, 11011111B
	DB	T_W12,	11100010B, 11101111B
	DB	T_W12,	11100011B, 11110111B
	DB	T_W12,	11100100B, 11111011B
	DB	T_W12,	11100101B, 11111101B
	DB	T_W12,	11100110B, 11111110B
	DB	T_W12,	10100111B, 11111111B
	DB	T_W12,	11101101B, 11111111B
G74138T:
	DB	T_W12,	11000101B, 11111111B
	DB	T_W12,	11001010B, 11111111B
	DB	T_W12,	11010101B, 11111111B
	DB	T_W12,	11011010B, 11111111B
	DB	T_W12,	11110010B, 11111111B
	DB	T_W12,	11111101B, 11111111B
	DB	T_KONEC

;2x 2bit. dekoder 2 ze 4
;74139			 321010      010123
I74139T:	;	ZYYYYAAE   NEAAYYYY
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110000B, 11111111B
	DB	T_W12,	11101010B, 11101111B
	DB	T_W12,	11011100B, 11011111B
	DB	T_W12,	10111110B, 11001111B
	DB	T_W12,	11111001B, 10111110B
	DB	T_W12,	11111101B, 10011101B
	DB	T_W12,	11111011B, 10101011B
	DB	T_W12,	11111111B, 10000111B
	DB	T_KONEC

;			      _                   _  _
;BCD citac se 7seg. dek	      R                _ _R  S
;74143, 74144               dDBB   3210        CCLB_CC
I74143T:	;	ZefdpPOI   QQQQbacg   NEOEIRPE
	DB	T_VV3,	00000101b, 00000000b, 01011111b	;/RBO VYSTUP
	DB	T_NAP,	DIL24
	DB	T_W123,	11111000B, 00001111B, 10100000B	;RESET
	DB	T_W123,	11111000B, 00001111B, 10100110B	;ZHASNUTA 0
	DB	T_W123,	10001010B, 00000001B, 10101110B	;0
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	11111010B, 00010101B, 10101110B	;1
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	10100110B, 00100010B, 10101110B	;2.
	DB	T_W3,			      10111110B	;zachyt
	DB	T_W3,			      10111100B	;+1
	DB	T_W123,	10100110B, 00100010B, 10111110B	;2.
	DB	T_W123,	11101010B, 00110000B, 10101110B	;3
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	11011010B, 01000100B, 10101110B	;4
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	11000110B, 01011000B, 10101110B	;5.
	DB	T_W3,			      10111110B	;zachyt
	DB	T_W3,			      10111100B	;+1
	DB	T_W123,	11000110B, 01011000B, 10111110B	;5.
	DB	T_W123,	10001010B, 01101000B, 10101110B	;6
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	11111010B, 01110001B, 10101110B	;7
	DB	T_W3,			      10101111B	;SCE=1
	DB	T_W3,			      10101101B	;+1
	DB	T_W123,	11111010B, 01110001B, 10101111B	;7
	DB	T_W3,			      11101110B	;CE=1
	DB	T_W3,			      11101100B	;+1
	DB	T_W123,	11111010B, 01110001B, 11101110B	;7
	DB	T_W3,			      10101100B	;+1
	DB	T_W123,	10001010B, 10000000B, 10101110B	;8
	DB	T_W3,			      10111110B	;zachyt
	DB	T_W3,			      10111100B	;+1
	DB	T_W123,	10001010B, 10000000B, 10011110B	;8
	DB	T_W123,	11111101B, 10001111B, 10011110B	;ZHASNI DISPLEL
	DB	T_W123,	11001010B, 10010000B, 10001110B	;9
	DB	T_W3,			      10101111B	;SCE=1
	DB	T_W3,			      10101101B	;+1
	DB	T_W123,	11001010B, 10010000B, 10101111B	;9
	DB	T_W3,			      11001110B	;CE=1
	DB	T_W3,			      11001100B	;+1
	DB	T_W123,	11001010B, 10010000B, 11001110B	;9
	DB	T_VV3,	00000111B, 00000000B, 01011111B	;/RBO VSTUP
	DB	T_W123,	11111100B, 10011111B, 10011100B	;ZHASNI DISPLEL
	DB	T_KONEC

;BIN/BCD prior. koder
;74147			 1287654     332190
I74147T:	;	ZYYDDDDD   NXYDDDDY
	DB	T_VV2,	00011111B, 01011110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111111B, 11111111B
	DB	T_W12,	11111111B, 10111111B
	DB	T_W12,	11111111B, 11111010B
	DB	T_W12,	10111111B, 10110111B
	DB	T_W12,	10111111B, 11101010B
	DB	T_W12,	11011110B, 10110111B
	DB	T_W12,	11011101B, 11101010B
	DB	T_W12,	10011010B, 10110111B
	DB	T_W12,	10010101B, 11101010B
	DB	T_W12,	11101010B, 10010111B
	DB	T_W12,	11110101B, 11001000B
	DB	T_KONEC


;3bit prioritni BIN koder kaskadovatelny
;74148, 74348, 74848	 12E7654    EG32100
I74148T:	;	ZAAIQQQQ   NOSQQQQA
	DB	T_VV2,	00011111B, 00011110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110101B, 11101011B
	DB	T_W12,	11101111B, 10111111B
	DB	T_W12,	10000101B, 11010100B	;0
	DB	T_W12,	10001010B, 11010101B	;1
	DB	T_W12,	11001101B, 11001010B	;2
	DB	T_W12,	11001110B, 11010101B	;3
	DB	T_W12,	10101111B, 11001010B	;4
	DB	T_W12,	10101111B, 11010101B	;5
	DB	T_W12,	11101111B, 11011010B	;6
	DB	T_W12,	11101111B, 11011101B	;7
	DB	T_KONEC

;16vstup. multiplexer		   11111         1
;74150			 3_ 0123   12345012    8904567
I74150T:	;	ZSYEDDDD   DDDDDSSS   NDDDDDDD
	DB	T_VV3,	01011111B, 11111111B, 01111111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10110101B, 10101010B, 10100101B
	DB	T_W12,	10100101B, 10101000B
	DB	T_W12,	10000101B, 10101100B
	DB	T_W12,	10100101B, 10101010B
	DB	T_W12,	10000101B, 10101110B
	DB	T_W12,	10100101B, 10101001B
	DB	T_W12,	10000101B, 10101101B
	DB	T_W12,	10100101B, 10101011B
	DB	T_W12,	10000101B, 10101111B
	DB	T_W12,	11100101B, 10101000B
	DB	T_W12,	11000101B, 10101100B
	DB	T_W12,	11100101B, 10101010B
	DB	T_W12,	11000101B, 10101110B
	DB	T_W12,	11100101B, 10101001B
	DB	T_W12,	11000101B, 10101101B
	DB	T_W12,	11100101B, 10101011B
	DB	T_W12,	11000101B, 10101111B
	DB	T_W123,	11111010B, 01010101B, 11011010B
	DB	T_W12,	10001010B, 01010000B
	DB	T_W12,	10101010B, 01010100B
	DB	T_W12,	10001010B, 01010010B
	DB	T_W12,	10101010B, 01010110B
	DB	T_W12,	10001010B, 01010001B
	DB	T_W12,	10101010B, 01010101B
	DB	T_W12,	10001010B, 01010011B
	DB	T_W12,	10101010B, 01010111B
	DB	T_W12,	11001010B, 01010000B
	DB	T_W12,	11101010B, 01010100B
	DB	T_W12,	11001010B, 01010010B
	DB	T_W12,	11101010B, 01010110B
	DB	T_W12,	11001010B, 01010001B
	DB	T_W12,	11101010B, 01010101B
	DB	T_W12,	11001010B, 01010011B
	DB	T_W12,	11101010B, 01010111B
	DB	T_KONEC

;8vstup. multiplexer
;74151			 __ 0123    4567012
I74151T:	;	ZEYYDDDD   NDDDDSSS
	DB	T_VV2,	01001111B, 01111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11100101B, 10101101B
	DB	T_W12,	11101010B, 11010101B
G74151T:DB	T_W12,	10011010B, 11010000B
	DB	T_W12,	10101010B, 11010100B
	DB	T_W12,	10011010B, 11010010B
	DB	T_W12,	10101010B, 11010110B
	DB	T_W12,	10011010B, 11010001B
	DB	T_W12,	10101010B, 11010101B
	DB	T_W12,	10011010B, 11010011B
	DB	T_W12,	10101010B, 11010111B
	DB	T_W12,	10100101B, 10101000B
	DB	T_W12,	10010101B, 10101100B
	DB	T_W12,	10100101B, 10101010B
	DB	T_W12,	10010101B, 10101110B
	DB	T_W12,	10100101B, 10101001B
	DB	T_W12,	10010101B, 10101101B
	DB	T_W12,	10100101B, 10101011B
	DB	T_W12,	10010101B, 10101111B
	DB	T_KONEC

;8vstup. multiplexer
;74152			 _01234      567012
I74152T:	;	ZYDDDDDX   XNDDDSSS
	DB	T_VV2,	00111110B, 00111111B
	DB	T_NAP,	DIL14
	DB	T_W12,	10101011B, 11010000B
	DB	T_W12,	11101011B, 11010100B
	DB	T_W12,	10101011B, 11010010B
	DB	T_W12,	11101011B, 11010110B
	DB	T_W12,	10101011B, 11010001B
	DB	T_W12,	11101011B, 11010101B
	DB	T_W12,	10101011B, 11010011B
	DB	T_W12,	11101011B, 11010111B
	DB	T_W12,	11010101B, 11101000B
	DB	T_W12,	10010101B, 11101100B
	DB	T_W12,	11010101B, 11101010B
	DB	T_W12,	10010101B, 11101110B
	DB	T_W12,	11010101B, 11101001B
	DB	T_W12,	10010101B, 11101101B
	DB	T_W12,	11010101B, 11101011B
	DB	T_W12,	10010101B, 11101111B
	DB	T_KONEC

;2x 4vstup. multiplexer
;74153			  01231_    _03210
I74153T:	;	ZYDDDDSE   NESDDDDY
	DB	T_VV2,	00111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10010101B, 11010100B
	DB	T_W12,	10101011B, 11101010B
G74153T:DB	T_W12,	10010100B, 10010100B
	DB	T_W12,	11010100B, 10110101B
	DB	T_W12,	10010110B, 10010100B
	DB	T_W12,	11010110B, 10110101B
	DB	T_W12,	11101000B, 10001011B
	DB	T_W12,	10101000B, 10101010B
	DB	T_W12,	11101010B, 10001011B
	DB	T_W12,	10101010B, 10101010B
	DB	T_KONEC

;dekoder 1 z 16		 1	    __11111
;74154, 74159		 0987654   30154321    0123210
I74154T:	;	ZYYYYYYY   AEEYYYYY   NAAAYYYY
	DB	T_VV3,	00000000B, 11100000B, 01110000B
	DB	T_NAP,	DIL24
	DB	T_W123,	11111111B, 11111111B, 10101111B
	DB	T_W123,	11111111B, 01011111B, 11011111B
	DB	T_W123,	11111111B, 10111111B, 10001111B
	DB	T_W123,	11111111B, 00011111B, 10001110B
	DB	T_W123,	11111111B, 00011111B, 11001101B
	DB	T_W123,	11111111B, 00011111B, 10101011B
	DB	T_W123,	11111111B, 00011111B, 11100111B
	DB	T_W123,	11111110B, 00011111B, 10011111B
	DB	T_W123,	11111101B, 00011111B, 11011111B
	DB	T_W123,	11111011B, 00011111B, 10111111B
	DB	T_W123,	11110111B, 00011111B, 11111111B
	DB	T_W123,	11101111B, 10011111B, 10001111B
	DB	T_W123,	11011111B, 10011111B, 11001111B
	DB	T_W123,	10111111B, 10011111B, 10101111B
	DB	T_W123,	11111111B, 10011110B, 11101111B
	DB	T_W123,	11111111B, 10011101B, 10011111B
	DB	T_W123,	11111111B, 10011011B, 11011111B
	DB	T_W123,	11111111B, 10010111B, 10111111B
	DB	T_W123,	11111111B, 10001111B, 11111111B
	DB	T_KONEC

;2x dekoder 1 ze 4	 ____ _     __ ____
;74155, 74156		 0123121    1203210
I74155T:	;	ZYYYYAEE   NEEAYYYY
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111000B, 11111111B
	DB	T_W12,	11111110B, 10101111B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	10111001B, 10001110B
	DB	T_W12,	11011001B, 10011101B
	DB	T_W12,	11101101B, 10001011B
	DB	T_W12,	11110101B, 10010111B
	DB	T_KONEC

;4x 2vstup. multiplexer
;74157			 222111     _444333
I74157T:	;	ZYBAYBAS   NEABYABY
	DB	T_VV2,	00110111B, 01110110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10110110B, 11110110B
	DB	T_W12,	10110111B, 11110110B
G74157T:DB	T_W12,	10100100B, 10010010B
	DB	T_W12,	11011010B, 10101101B
	DB	T_W12,	10010011B, 10100100B
	DB	T_W12,	11101101B, 10011011B
	DB	T_KONEC

;4x 2vstup. multiplexer invert.
;74158, 74258		 222111     _444333
I74158T:	;	ZYBAYBAS   NEABYABY
	DB	T_VV2,	00110111B, 01110110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111110B, 11111111B
	DB	T_W12,	11111111B, 11111111B
	DB	T_W12,	11101100B, 10011011B
	DB	T_W12,	10010010B, 10100100B
	DB	T_W12,	11011011B, 10101101B
	DB	T_W12,	10100101B, 10010010B
	DB	T_KONEC

;sync. prog. BCD citac s R
;			 1     _         2_
;74160			 C3210CM    T0123CP
I74160T:	;	ZEDDDDPR   NCQQQQEE
	DB	T_GOSUB
	DW	S7416X2
G74160T:DB	T_GOSUB
	DW	S7416X3
	DB	T_W12,	11000011B, 11100111B	;9
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10000011B	;0
G7416XT:DB	T_W12,	10000011B, 10000011B	;CE1=0
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 10000011B	;0
	DB	T_W12,	11000011B, 10000001B	;CE2=0
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10000001B	;0
	DB	T_W12,	10000011B, 10000001B	;CE1=CE2=0
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 10000001B	;0
	DB	T_KONEC

;sync. prog. BIN citac s R
;			 1     _         2_
;74161			 C3210CM    T0123CP
I74161T:	;	ZEDDDDPR   NCQQQQEE
	DB	T_GOSUB
	DW	S7416X2
G74161T:DB	T_GOSUB
	DW	S7416X3
	DB	T_W12,	11000011B, 10100111B	;9
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10010111B	;10
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10110111B	;11
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10001111B	;12
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10101111B	;13
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10011111B	;14
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 11111111B	;15
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10000011B	;0
	DB	T_GOTO
	DW	G7416XT

;sync. prog. BCD citac se sync. R
;			 1     _         2_
;74162			 C3210CM    T0123CP
I74162T:	;	ZEDDDDPR   NCQQQQEE
	DB	T_GOSUB
	DW	S7416X1
	DB	T_GOTO
	DW	G74160T

;sync. prog. BIN citac se sync. R
;			 1     _         2_
;74163			 C3210CM    T0123CP
I74163T:	;	ZEDDDDPR   NCQQQQEE
	DB	T_GOSUB
	DW	S7416X1
	DB	T_GOTO
	DW	G74161T

;-------------------------------------------
;SPOLECNE BLOKY K 74160 AZ 74163

S7416X1:DB	T_VV2,	01111111B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101011B, 10000010B
	DB	T_W1,	10101001B
	DB	T_W12,	10101011B, 10010111B	;NASTAV
	DB	T_W12,	10101010B, 10010111B	;/MR=0
	DB	T_W1,	10101000B
	DB	T_W12,	10101011B, 10000011B	;S-RESET
	DB	T_W12,	11010111B, 10000010B
	DB	T_W1,	11010101B
	DB	T_W12,	11010111B, 10101011B	;NASTAV
	DB	T_W12,	11010110B, 10101011B	;/MR=0
	DB	T_W1,	11010100B
	DB	T_W12,	11010111B, 10000011B	;S-RESET
	DB	T_RET

S7416X2:DB	T_VV2,	01111111B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101011B, 10000010B
	DB	T_W1,	10101001B
	DB	T_W12,	10101011B, 10010111B	;NASTAV
	DB	T_W12,	10101010B, 10000011B	;A-RESET
	DB	T_W12,	11010111B, 10000010B
	DB	T_W1,	11010101B
	DB	T_W12,	11010111B, 10101011B	;NASTAV
	DB	T_W12,	11010110B, 10000011B	;A-RESET
	DB	T_RET

S7416X3:DB	T_W1,	11000011B
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10100011B	;1
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10010011B	;2
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10110011B	;3
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10001011B	;4
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10101011B	;5
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10011011B	;6
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10111011B	;7
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10000111B	;8
	DB	T_W1,	11000001B
	DB	T_RET

;-------------------------------------------
;sync. 8bit. posuv. registr s R ser. vstup, par. vystup
;74164			 3210BA      7654_
I74164T:	;	ZQQQQDDX   XNQQQQRC
	DB	T_VV2,	00000110B, 00000011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000111B, 11000001B	;RESET
	DB	T_W2,		   11000011B
	DB	T_W2,		   11000010B
	DB	T_W12,	10001111B, 11000011B	;00000001
	DB	T_W2,		   11000010B
	DB	T_W12,	10010001B, 11000011B	;00000010
	DB	T_W2,		   11000010B
	DB	T_W12,	10100001B, 11000011B	;00000100
	DB	T_W2,		   11000010B
	DB	T_W12,	11000011B, 11000011B	;00001000
	DB	T_W2,		   11000010B
	DB	T_W12,	10001111B, 11000111B	;00010001
	DB	T_W2,		   11000110B
	DB	T_W12,	10010001B, 11001011B	;00100010
	DB	T_W2,		   11001010B
	DB	T_W12,	10100011B, 11010011B	;01000100
	DB	T_W2,		   11010010B
	DB	T_W12,	11000101B, 11100011B	;10001000
	DB	T_W2,		   11100010B
	DB	T_W12,	10001111B, 11000111B	;00010001
	DB	T_KONEC

;8bit. posuv. registr s R ser. a par. vstup, ser. vystup
;74165			 _7654 _    _3210S7
I74165T:	;	ZQDDDDCL   NEDDDDDQ
	DB	T_VV2,	00111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010110B, 10010110B	;01010101 NASTAV
	DB	T_W1,	11000011B
	DB	T_W1,	11000001B
	DB	T_W12,	10000011B, 10000001B	;10101011
	DB	T_W1,	10000001B
	DB	T_W12,	11000011B, 10000000B	;01010110
	DB	T_W1,	11000001B
	DB	T_W12,	10000011B, 10000011B	;10101100
	DB	T_W1,	10000001B
	DB	T_W12,	11000011B, 10000000B	;01011001
	DB	T_W1,	11000001B
	DB	T_W12,	10000011B, 10000011B	;10110010
	DB	T_W1,	10000001B
	DB	T_W12,	11000011B, 10000000B	;01100101
	DB	T_W1,	11000001B
	DB	T_W12,	10000011B, 10000011B	;11001010
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 10000001B	;10010101
	DB	T_W1,	10000001B
	DB	T_W12,	11000011B, 10000010B	;00101010
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 10000000B	;01010101
	DB	T_W1,	11000001B
	DB	T_W12,	10000011B, 10000011B	;10101010
	DB	T_W2,		   11000011B	;10101010 CE=1
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000011B	;10101010
	DB	T_KONEC

;sync. 8bit. posuv. registr s nul. ser. a par. vstup, ser. vystup
;74166			  _3210S    _77654_
I74166T:	;	ZCEDDDDD   NLDQDDDR
	DB	T_VV2,	01111111B, 01101111B
	DB	T_NAP,	DIL16
	DB	T_O12,	11010101B, 10100101B
	DB	T_O1,	10010101B
	DB	T_W12,	11010101B, 11110101B	;01010101 NASTAV
	DB	T_W2,		   11000000B	;RESET
	DB	T_W12,	11001011B, 10001011B
	DB	T_W1,	10001011B	
	DB	T_W12,	11001011B, 11001011B	;01010101 NASTAV
	DB	T_W1,	10000001B	
	DB	T_W12,	11000001B, 11010001B	;10101011
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11000001B	;01010110
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11010001B	;10101100
	DB	T_W1,	10000001B
	DB	T_W12,	11000001B, 11000001B	;01011001
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11010001B	;10110010
	DB	T_W1,	10000001B
	DB	T_W12,	11000001B, 11000001B	;01100101
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11010001B	;11001010
	DB	T_W1,	10000001B
	DB	T_W12,	11000001B, 11010001B	;10010101
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11000001B	;00101010
	DB	T_W1,	10000001B
	DB	T_W12,	11000001B, 11000001B	;01010101
	DB	T_W1,	10000000B
	DB	T_W12,	11000000B, 11010001B	;10101010
	DB	T_W1,	11100000B
	DB	T_W1,	10100000B
	DB	T_W12,	11100000B, 11010001B	;10101010
	DB	T_KONEC

;sync. obousmer. BCD. prog. citac
;			 1     U    _    2_
;74168			 C3210C/    T0123CP
I74168T:	;	ZEDDDDPD   NCQQQQEE
	DB	T_GOSUB
	DW	S168X1
	DB	T_W12,	10000011B, 10100101B	;9
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000001B	;0
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11100001B	;1
	DB	T_W1,	10000010B		;CITAME DOLU
	DB	T_W12,	10000010B, 11100001B	;1
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 10000001B	;0
G74168T:DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11100101B	;9
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11000101B	;8
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11111001B	;7
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11011001B	;6
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11101001B	;5
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11001001B	;4
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11110001B	;3
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11010001B	;2
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11100001B	;1
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 10000001B	;0
	DB	T_W12,	10000011B, 11000011B	;CE2=1
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000011B	;0
	DB	T_W12,	11000011B, 11000001B	;CE1=1
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 11000001B	;0
	DB	T_W12,	11000011B, 11000011B	;CE1=CE2=1
	DB	T_W1,	11000001B
	DB	T_W12,	11000011B, 11000011B	;0
	DB	T_KONEC

;sync. obousmer. BIN. prog. citac
;			 1     U    _    2_
;74169			 C3210C/    T0123CP
I74169T:	;	ZEDDDDPD   NCQQQQEE
	DB	T_GOSUB
	DW	S168X1
	DB	T_W12,	10000011B, 11100101B	;9
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11010101B	;10
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11110101B	;11
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11001101B	;12
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11101101B	;13
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11011101B	;14
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 10111101B	;15
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000001B	;0
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11100001B	;1
	DB	T_W1,	10000010B		;CITAME DOLU
	DB	T_W12,	10000010B, 11100001B	;1
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 10000001B	;0
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11111101B	;15
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11011101B	;14
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11101101B	;13
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11001101B	;12
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11110101B	;11
	DB	T_W1,	10000000B
	DB	T_W12,	10000010B, 11010101B	;10
	DB	T_GOTO
	DW	G74168T

;-------------------------------------------
;SPOLECNY BLOK K 74168 A 74169
S168X1:	DB	T_VV2,	01111111B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_O12,	10101011B, 11010110B
	DB	T_O1,	10101001B
	DB	T_W12,	10101011B, 11010111B	;NASTAV 0AH
	DB	T_W12,	11010111B, 11010110B
	DB	T_W1,	11010101B
	DB	T_W12,	11010111B, 11101011B	;NASTAV 5
	DB	T_W12,	10000011B, 11101000B
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000001B	;NASTAV 0
	DB	T_W1,	10000011B
	DB	T_W1,	10000001B		;CITAME NAHORU
	DB	T_W12,	10000011B, 11100001B	;1
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11010001B	;2
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11110001B	;3
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11001001B	;4
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11101001B	;5
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11011001B	;6
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11111001B	;7
	DB	T_W1,	10000001B
	DB	T_W12,	10000011B, 11000101B	;8
	DB	T_W1,	10000001B
	DB	T_RET

;-------------------------------------------
;reg. 4x4bit.   		       __
;74170, 74670		 23AB321    0ABWR01
I74170T:	;	ZQQRRDDD   NDWWEEQQ
	DB	T_VV2,	00011111B, 01111100B
	DB	T_NAP,	DIL16
	DB	T_W12,	11100101B, 10001111B
	DB	T_W2,		   10000111B
	DB	T_W12,	11100101B, 11011111B
	DB	T_W12,	11101010B, 11011111B
	DB	T_W2,		   11010111B
	DB	T_W12,	11101010B, 11011111B
	DB	T_W12,	11110110B, 10101111B
	DB	T_W2,		   10100111B
	DB	T_W12,	11110110B, 10101111B
	DB	T_W12,	11111001B, 11111111B
	DB	T_W2,		   11110111B
	DB	T_W12,	11111001B, 11111111B
	DB	T_W12,	10100000B, 10001001B
	DB	T_W12,	11001000B, 10001010B
	DB	T_W12,	11110000B, 10001000B
	DB	T_W12,	10011000B, 10001011B
	DB	T_W12,	11100110B, 10001111B
	DB	T_W2,		   10000111B
	DB	T_W12,	11100110B, 10001111B
	DB	T_W12,	11101001B, 11011111B
	DB	T_W2,		   11010111B
	DB	T_W12,	11101001B, 11011111B
	DB	T_W12,	11110101B, 10101111B
	DB	T_W2,		   10100111B
	DB	T_W12,	11110101B, 10101111B
	DB	T_W12,	11111010B, 11111111B
	DB	T_W2,		   11110111B
	DB	T_W12,	11111010B, 11111111B
	DB	T_W12,	11100000B, 10001000B
	DB	T_W12,	10001000B, 10001011B
	DB	T_W12,	10110000B, 10001001B
	DB	T_W12,	11011000B, 10001010B
	DB	T_KONEC

;4bit. reg. D		      __
;74173			 C3210OO    M0123__
I74173T:	;	ZPQQQQEE   NRDDDDEE
	DB	T_VV2,	01000011B, 01111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000000B, 11111110B	;RESET
	DB	T_W12,	11111111B, 10111110B
	DB	T_W12,	10111110B, 10101000B
	DB	T_W12,	11111101B, 10101000B	;ZAPIS 1010
	DB	T_W12,	11010100B, 10111101B	;VYSTUP 1010
	DB	T_W12,	10111110B, 10010100B
	DB	T_W12,	11111101B, 10010100B	;ZAPIS 0101
	DB	T_W12,	11101000B, 10111111B	;VYSTUP 0101
	DB	T_KONEC

;6x K.O. D		       _
;74174			 221100R    554433P
I74174T:	;	ZQDQDDQM   NQDDQDQC
	DB	T_VV2,	00101101B, 00110101B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101100B, 10110101B	;RESET
	DB	T_W12,	10001001B, 10010000B
	DB	T_W12,	10011001B, 10011001B
	DB	T_W12,	10110101B, 10101100B
	DB	T_W12,	11100111B, 11100111B

	DB	T_KONEC

;4x K.O. D		  _  _ _     _  _
;74175			 111000M    333222P
I74175T:	;	ZQQDDQQR   NQQDDQQC
	DB	T_VV2,	00011001B, 00011001B
	DB	T_NAP,	DIL16
	DB	T_W12,	10111100B, 10111101B	;RESET
	DB	T_W12,	10101101B, 10101100B
	DB	T_W12,	10101011B, 10101011B
	DB	T_W12,	10110011B, 10110010B
	DB	T_W12,	11010101B, 11010101B
	DB	T_KONEC

;program. BCD citac	 _    _	     _    _
;74176, 74196		 10022P      M33110
I74176T:	;	ZCQDDQLX   XNRQDDQC
	DB	T_GOSUB
	DW	S176X1
	DB	T_W12,	11100011B, 11100001B	;1-0
	DB	T_W12,	10000011B, 11100010B
	DB	T_W12,	11000011B, 11100011B	;0-1
	DB	T_KONEC

;program. BCD citac	 _    _	     _    _
;74177, 74197		 10022P      M33110
I74177T:	;	ZCQDDQLX   XNRQDDQC
	DB	T_GOSUB
	DW	S176X1
	DB	T_W12,	11100011B, 11110011B	;1-5
	DB	T_W12,	10000011B, 11110000B
	DB	T_W12,	11000111B, 11110001B	;0-6
	DB	T_W12,	10100011B, 11110010B
	DB	T_W12,	11100111B, 11110011B	;1-7
	DB	T_W12,	10000011B, 11100000B
	DB	T_W12,	11000011B, 11100001B	;0-0
	DB	T_W12,	10100011B, 11100010B
	DB	T_W12,	11100011B, 11100011B	;1-1
	DB	T_KONEC

;-------------------------------------------
;SPOLECNY BLOK K 74176, 74177, 74196 A 74197
S176X1:	DB	T_VV2,	01011010B, 00101101B
	DB	T_NAP,	DIL14
	DB	T_W12,	11001101B, 11100111B
	DB	T_W12,	11001111B, 11100111B
	DB	T_W12,	11110001B, 11111001B
	DB	T_W12,	11110011B, 11111001B
	DB	T_W12,	11000011B, 11000001B	;RESET
	DB	T_W12,	11000011B, 11100001B	;0-0
	DB	T_W12,	10100011B, 11100010B
	DB	T_W12,	11100011B, 11100011B	;1-1
	DB	T_W12,	10000111B, 11100000B
	DB	T_W12,	11000111B, 11100001B	;0-2
	DB	T_W12,	10100111B, 11100010B
	DB	T_W12,	11100111B, 11100011B	;1-3
	DB	T_W12,	10000011B, 11110000B
	DB	T_W12,	11000011B, 11110001B	;0-4
	DB	T_W12,	10100011B, 11100000B
	DB	T_RET

;9bit. renerator parity
;74180			 OEOE76      543210
I74180T:	;	ZQQPPDDX   XNDDDDDD
	DB	T_VV2,	00011110B, 00111111B
	DB	T_NAP,	DIL14
	DB	T_W12,	10101011B, 11010101B
	DB	T_W12,	10101011B, 11011001B
	DB	T_W12,	10110101B, 11101011B
	DB	T_W12,	10110101B, 11101011B
	DB	T_W12,	11010001B, 11111111B
	DB	T_W12,	11010011B, 11010101B
	DB	T_W12,	11001101B, 11110011B
	DB	T_W12,	11001001B, 11110001B
	DB	T_W12,	10011011B, 11010101B
	DB	T_W12,	11100101B, 11101011B
	DB	T_KONEC

;4bit. ALU
;74181, 4581		 210MC01   233_C_=3    1122300
I74181T:	;	ZQQQDNSS   BABG4PQQ   NABASSAB
	DB	T_VV3,	00001111B, 11100000B, 01111111B
	DB	T_NAP,	DIL24
        DB      T_W123, 10110000B, 01001001B, 11100001B	;0
        DB      T_W123, 10101110B, 10101000B, 10010010B	;1
        DB      T_W123, 11110101B, 01111011B, 10010000B	;2
        DB      T_W123, 10001111B, 10111000B, 11010001B	;3
        DB      T_W123, 11111000B, 01010111B, 11011010B	;4
        DB      T_W123, 10011110B, 10001101B, 10111010B	;5
        DB      T_W123, 10000001B, 10010000B, 10011011B	;6
        DB      T_W123, 10000111B, 01010101B, 10101010B	;7
        DB      T_W123, 10010100B, 01001001B, 10100110B	;8
        DB      T_W123, 11011010B, 01110101B, 10100111B	;9
        DB      T_W123, 10100101B, 10101101B, 10110111B	;10
        DB      T_W123, 11110111B, 01011011B, 10000101B	;11
        DB      T_W123, 10110000B, 10101101B, 10111110B	;12
        DB      T_W123, 11000110B, 01110100B, 10101110B	;13
        DB      T_W123, 10110101B, 10101101B, 10011100B	;14
        DB      T_W123, 11000011B, 10110100B, 10011100B	;15
	DB	T_KONEC

;4bit. obvod pro urychleni prenosu
;			  ______    __
;74182, 4582		 _330011    22NXY_Z
I74182T:	;	ZPPGPGPG   NPGCCCGC
	DB	T_VV2,	00111111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10010101B, 10100010B
	DB	T_W12,	10010101B, 10111111B
	DB	T_W12,	10010101B, 10011101B
	DB	T_W12,	10010101B, 10000001B
	DB	T_W12,	11010011B, 10011001B
	DB	T_W12,	11010011B, 10111010B
	DB	T_W12,	11010110B, 10111101B
	DB	T_W12,	11011110B, 10100101B
	DB	T_W12,	11010010B, 10101101B
	DB	T_W12,	10000101B, 10100000B
	DB	T_W12,	10000101B, 10000001B
	DB	T_W12,	10010000B, 10101101B
	DB	T_W12,	11111011B, 11111010B
	DB	T_W12,	11111010B, 11111110B
	DB	T_W12,	11101010B, 11111100B
	DB	T_W12,	11101010B, 10101101B
	DB	T_W12,	10000100B, 10100101B
	DB	T_KONEC

;prevodnik BCD/BIN
;74184			 7654321    _     8
I74184T:	;	ZYYYYYYY   NGEDCBAY
	DB	T_VV2,	00000000B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10100000B, 10000001B
	DB	T_W12,	10000001B, 10000011B
	DB	T_W12,	11100010B, 10000100B
	DB	T_W12,	11000011B, 10000110B
	DB	T_W12,	11100100B, 10001000B
	DB	T_W12,	11011111B, 10001010B
	DB	T_W12,	10111111B, 10001100B
	DB	T_W12,	10011111B, 10001110B
	DB	T_W12,	10100101B, 10010000B
	DB	T_W12,	10000110B, 10010010B
	DB	T_W12,	11100111B, 10010101B
	DB	T_W12,	11101000B, 10010111B
	DB	T_W12,	11101001B, 10011001B
	DB	T_W12,	11111111B, 10011011B
	DB	T_W12,	11111111B, 10011101B
	DB	T_W12,	11111111B, 10011111B
	DB	T_W12,	10001010B, 10100000B
	DB	T_W12,	10001011B, 10100011B
	DB	T_W12,	10001100B, 10100101B
	DB	T_W12,	11101101B, 10100110B
	DB	T_W12,	11101110B, 10101000B
	DB	T_W12,	11011111B, 10101010B
	DB	T_W12,	11011111B, 10101100B
	DB	T_W12,	10111111B, 10101110B
	DB	T_W12,	10101111B, 10110000B
	DB	T_W12,	10010000B, 10110010B
	DB	T_W12,	11110001B, 10110101B
	DB	T_W12,	11110010B, 10110111B
	DB	T_W12,	11110011B, 10111001B
	DB	T_W12,	11111111B, 10111011B
	DB	T_W12,	11111111B, 10111101B
	DB	T_W12,	11111111B, 10111111B
G74184T:DB	T_W12,	11111111B, 11010101B
	DB	T_W12,	11111111B, 11101011B
	DB	T_KONEC

;prevodnik BIN/BCD
;			 7654321    _     8
I74185T:	;	ZYYYYYYY   NGEDCBAY
	DB	T_VV2,	00000000B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000000B, 10000001B
	DB	T_W12,	11000001B, 10000011B
	DB	T_W12,	11000010B, 10000101B
	DB	T_W12,	11000011B, 10000111B
	DB	T_W12,	11000100B, 10001001B
	DB	T_W12,	11001000B, 10001011B
	DB	T_W12,	11001001B, 10001101B
	DB	T_W12,	11001010B, 10001111B
	DB	T_W12,	11001011B, 10010001B
	DB	T_W12,	11001100B, 10010011B
	DB	T_W12,	11010000B, 10010101B
	DB	T_W12,	11010001B, 10010111B
	DB	T_W12,	11010010B, 10011001B
	DB	T_W12,	11010011B, 10011011B
	DB	T_W12,	11010100B, 10011101B
	DB	T_W12,	11011000B, 10011111B
	DB	T_W12,	11011001B, 10100001B
	DB	T_W12,	11011010B, 10100011B
	DB	T_W12,	11011011B, 10100101B
	DB	T_W12,	11011100B, 10100111B
	DB	T_W12,	11100000B, 10101001B
	DB	T_W12,	11100001B, 10101011B
	DB	T_W12,	11100010B, 10101101B
	DB	T_W12,	11100011B, 10101111B
	DB	T_W12,	11100100B, 10110001B
	DB	T_W12,	11101000B, 10110011B
	DB	T_W12,	11101001B, 10110101B
	DB	T_W12,	11101010B, 10110111B
	DB	T_W12,	11101011B, 10111001B
	DB	T_W12,	11101100B, 10111011B
	DB	T_W12,	11110000B, 10111101B
	DB	T_W12,	11110001B, 10111111B
	DB	T_GOTO
	DW	G74184T

;PROM 32x8bitu
;74188			 1234567     432108
I74188T:	;	ZQQQQQQQ   NSAAAAAQ
	DB	T_VV2,	00000000B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111111B, 11010101B
	DB	T_W12,	11111111B, 11101011B
	DB	T_W12,	10000000B, 10000000B
	DB	T_W12,	10000000B, 10000010B
	DB	T_W12,	10000000B, 10000100B
	DB	T_W12,	10000000B, 10000110B
	DB	T_W12,	10000000B, 10001000B
	DB	T_W12,	10000000B, 10001010B
	DB	T_W12,	10000000B, 10001100B
	DB	T_W12,	10000000B, 10001110B
	DB	T_W12,	10000000B, 10010000B
	DB	T_W12,	10000000B, 10010010B
	DB	T_W12,	10000000B, 10010100B
	DB	T_W12,	10000000B, 10010110B
	DB	T_W12,	10000000B, 10011000B
	DB	T_W12,	10000000B, 10011010B
	DB	T_W12,	10000000B, 10011100B
	DB	T_W12,	10000000B, 10011110B
	DB	T_W12,	10000000B, 10100000B
	DB	T_W12,	10000000B, 10100010B
	DB	T_W12,	10000000B, 10100100B
	DB	T_W12,	10000000B, 10100110B
	DB	T_W12,	10000000B, 10101000B
	DB	T_W12,	10000000B, 10101010B
	DB	T_W12,	10000000B, 10101100B
	DB	T_W12,	10000000B, 10101110B
	DB	T_W12,	10000000B, 10110000B
	DB	T_W12,	10000000B, 10110010B
	DB	T_W12,	10000000B, 10110100B
	DB	T_W12,	10000000B, 10110110B
	DB	T_W12,	10000000B, 10111000B
	DB	T_W12,	10000000B, 10111010B
	DB	T_W12,	10000000B, 10111100B
	DB	T_W12,	10000000B, 10111110B
	DB	T_KONEC

;SRAM 16x4bity		 _ _ __         _ _
;74189			 1100WC0    1233322
I74189T:	;	ZQDQDREA   NAAADQDQ
	DB	T_VV2,	00101111B, 01111010B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111010B, 10101111B	;/CE=1 /WR=0
	DB	T_GOTO
	DW	G7489T

;sync. obousmer. prog. BCD citac
;			   __         _ _
;74190			 32UC011    0CRTP23
I74190T:	;	ZQQDEQQD   NDPCCLDD
	DB	T_GOSUB
	DW	S190X1
	DB	T_W12,	11000100B, 10111100B	;9
	DB	T_W2,		   10001100B
	DB	T_W12,	10000000B, 10110100B	;0
	DB	T_W2,		   10010100B
	DB	T_W12,	10000100B, 10110100B	;1
	DB	T_W1,	10001100B
	DB	T_W1,	10011100B
	DB	T_W1,	10010100B		;DOLU
	DB	T_W2,		   10010100B
	DB	T_W2,		   10010100B
	DB	T_W12,	10010000B, 10111100B	;0
	DB	T_W2,		   10001100B
G74190T:DB	T_W12,	11010100B, 10110100B	;9
	DB	T_W2,		   10010100B
	DB	T_W12,	11010000B, 10110100B	;8
	DB	T_W2,		   10010100B
	DB	T_W12,	10110110B, 10110100B	;7
	DB	T_W2,		   10010100B
	DB	T_W12,	10110010B, 10110100B	;6
	DB	T_W2,		   10010100B
	DB	T_W12,	10110100B, 10110100B	;5
	DB	T_W2,		   10010100B
	DB	T_W12,	10110000B, 10110100B	;4
	DB	T_W2,		   10010100B
	DB	T_W12,	10010110B, 10110100B	;3
	DB	T_W2,		   10010100B
	DB	T_W12,	10010010B, 10110100B	;2
	DB	T_W2,		   10010100B
	DB	T_W12,	10010100B, 10110100B	;1
	DB	T_W2,		   10010100B
	DB	T_W12,	10010000B, 10111100B	;0
	DB	T_W1,	10011000B		;CE=0
	DB	T_W2,		   10011100B
	DB	T_W12,	10011000B, 10111100B	;0
	DB	T_KONEC

;sync. obousmer. prog. BIN citac
;			   __         _ _
;74191			 32UC011    0CRTP23
I74191T:	;	ZQQDEQQD   NDPCCLDD
	DB	T_GOSUB
	DW	S190X1
	DB	T_W12,	11000100B, 10110100B	;9
	DB	T_W2,		   10010100B
	DB	T_W12,	11000010B, 10110100B	;10
	DB	T_W2,		   10010100B
	DB	T_W12,	11000110B, 10110100B	;11
	DB	T_W2,		   10010100B
	DB	T_W12,	11100000B, 10110100B	;12
	DB	T_W2,		   10010100B
	DB	T_W12,	11100100B, 10110100B	;13
	DB	T_W2,		   10010100B
	DB	T_W12,	11100010B, 10110100B	;14
	DB	T_W2,		   10010100B
	DB	T_W12,	11100110B, 10111100B	;15
	DB	T_W2,		   10001100B
	DB	T_W12,	10000000B, 10110100B	;0
	DB	T_W2,		   10010100B
	DB	T_W12,	10000100B, 10110100B	;1
	DB	T_W1,	10001100B
	DB	T_W1,	10011100B
	DB	T_W1,	10010100B		;DOLU
	DB	T_W2,		   10010100B
	DB	T_W2,		   10010100B
	DB	T_W12,	10010000B, 10111100B	;0
	DB	T_W2,		   10001100B
	DB	T_W12,	11110110B, 10110100B	;15
	DB	T_W2,		   10010100B
	DB	T_W12,	11110010B, 10110100B	;14
	DB	T_W2,		   10010100B
	DB	T_W12,	11110100B, 10110100B	;13
	DB	T_W2,		   10010100B
	DB	T_W12,	11110000B, 10110100B	;12
	DB	T_W2,		   10010100B
	DB	T_W12,	11010110B, 10110100B	;11
	DB	T_W2,		   10010100B
	DB	T_W12,	11010010B, 10110100B	;10
	DB	T_W2,		   10010100B
	DB	T_GOTO
	DW	G74190T

;-------------------------------------------
;SPOLECNY BLOK K 74190 A 74191
S190X1:	DB	T_VV2,	00011001B, 01100111B
	DB	T_NAP,	DIL16	
	DB	T_O12,	10000011B, 10110110B
	DB	T_O2,		   10110010B
	DB	T_W12,	10100011B, 10110110B	;NASTAV 5
	DB	T_W12,	10100010B, 11110101B
	DB	T_W2,		   11110001B
	DB	T_W12,	11000100B, 11110101B	;NASTAV A
	DB	T_W12,	11000100B, 10110100B
	DB	T_W2,		   10110000B
	DB	T_W12,	10000000B, 10110100B	;NASTAV 0
	DB	T_W2,		   10010100B
	DB	T_W12,	10000100B, 10110100B	;NAHORU 1
	DB	T_W2,		   10010100B
	DB	T_W12,	10000010B, 10110100B	;2
	DB	T_W2,		   10010100B
	DB	T_W12,	10000110B, 10110100B	;3
	DB	T_W2,		   10010100B
	DB	T_W12,	10100000B, 10110100B	;4
	DB	T_W2,		   10010100B
	DB	T_W12,	10100100B, 10110100B	;5
	DB	T_W2,		   10010100B
	DB	T_W12,	10100010B, 10110100B	;6
	DB	T_W2,		   10010100B
	DB	T_W12,	10100110B, 10110100B	;7
	DB	T_W2,		   10010100B
	DB	T_W12,	11000000B, 10110100B	;8
	DB	T_W2,		   10010100B
	DB	T_RET

;sync.(ne v kaskade) obousmer. prog. BCD citac
;			              ___
;74192			 32UD011    0MDUP23
I74192T:	;	ZQQPPQQD   NDRDDLDD
	DB	T_GOSUB
	DW	S192X1
	DB	T_W12,	11001100B, 10010100B
	DB	T_W12,	10011000B, 10011100B	;0
	DB	T_W1,	10001000B
	DB	T_W12,	10011100B, 10011100B	;1
	DB	T_W1,	10010100B		;DLOLU
	DB	T_W12,	10011000B, 10011100B	;0
	DB	T_W12,	10010000B, 10001100B
G74192T:DB	T_W12,	11011100B, 10011100B	;9
	DB	T_W1,	11010100B
	DB	T_W12,	11011000B, 10011100B	;8
	DB	T_W1,	11010000B
	DB	T_W12,	10111110B, 10011100B	;7
	DB	T_W1,	10110110B
	DB	T_W12,	10111010B, 10011100B	;6
	DB	T_W1,	10110010B
	DB	T_W12,	10111100B, 10011100B	;5
	DB	T_W1,	10110100B
	DB	T_W12,	10111000B, 10011100B	;4
	DB	T_W1,	10110000B
	DB	T_W12,	10011110B, 10011100B	;3
	DB	T_W1,	10010110B
	DB	T_W12,	10011010B, 10011100B	;2
	DB	T_W1,	10010010B
	DB	T_W12,	10011100B, 10011100B	;1
	DB	T_W1,	10010100B
	DB	T_W12,	10011000B, 10011100B	;0
	DB	T_KONEC

;			              ___
;74193			 32UD011    0MDUP23
I74193T:	;	ZQQPPQQD   NDRDDLDD
	DB	T_GOSUB
	DW	S192X1
	DB	T_W1,	11001100B
	DB	T_W12,	11011010B, 10011100B	;10
	DB	T_W1,	11001010B
	DB	T_W12,	11011110B, 10011100B	;11
	DB	T_W1,	11001110B
	DB	T_W12,	11111000B, 10011100B	;12
	DB	T_W1,	11101000B
	DB	T_W12,	11111100B, 10011100B	;13
	DB	T_W1,	11101100B
	DB	T_W12,	11111010B, 10011100B	;14
	DB	T_W1,	11101010B
	DB	T_W12,	11111110B, 10011100B	;15
	DB	T_W12,	11101110B, 10010100B
	DB	T_W12,	10011000B, 10011100B	;0
	DB	T_W1,	10001000B
	DB	T_W12,	10011100B, 10011100B	;1
	DB	T_W1,	10010100B		;DLOLU
	DB	T_W12,	10011000B, 10011100B	;0
	DB	T_W12,	10010000B, 10001100B
	DB	T_W12,	11111110B, 10011100B	;15
	DB	T_W1,	11110110B
	DB	T_W12,	11111010B, 10011100B	;14
	DB	T_W1,	11110010B
	DB	T_W12,	11111100B, 10011100B	;13
	DB	T_W1,	11110100B
	DB	T_W12,	11111000B, 10011100B	;12
	DB	T_W1,	11110000B
	DB	T_W12,	11011110B, 10011100B	;11
	DB	T_W1,	11010110B
	DB	T_W12,	11011010B, 10011100B	;10
	DB	T_W1,	11010010B
	DB	T_GOTO
	DW	G74192T

;-------------------------------------------
;SPOLECNY BLOK K 74192 A 74193
S192X1:	DB	T_VV2,	00011001B, 01100111B
	DB	T_NAP,	DIL16
	DB	T_O12,	10111011B, 10011110B
	DB	T_O2,		   10011010B
	DB	T_W12,	10111011B, 10011110B	;NASTAV 5
	DB	T_W12,	10111010B, 11011101B

	DB	T_W12,	11011100B, 11011001B

	DB	T_W12,	11011100B, 11011101B	;NASTAV A
	DB	T_W12,	10011000B, 10111100B
	DB	T_W12,	10011000B, 10011100B	;RESET
	DB	T_W1,	10001000B		;NAHORU
	DB	T_W12,	10011100B, 10011100B	;1
	DB	T_W1,	10001100B
	DB	T_W12,	10011010B, 10011100B	;2
	DB	T_W1,	10001010B
	DB	T_W12,	10011110B, 10011100B	;3
	DB	T_W1,	10001110B
	DB	T_W12,	10111000B, 10011100B	;4
	DB	T_W1,	10101000B
	DB	T_W12,	10111100B, 10011100B	;5
	DB	T_W1,	10101100B
	DB	T_W12,	10111010B, 10011100B	;6
	DB	T_W1,	10101010B
	DB	T_W12,	10111110B, 10011100B	;7
	DB	T_W1,	10101110B
	DB	T_W12,	11011000B, 10011100B	;8
	DB	T_W1,	11001000B
	DB	T_W12,	11011100B, 10011100B	;9
	DB	T_RET

;4bit. obousmer. posuv. registr se ser. a par. vstup, par. vystup
;			       _
;74194			 D3210DM    0123C10
I74194T:	;	ZLDDDDRR   NQQQQPSS
	DB	T_VV2,	01111111B, 00000111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10000100B	;RESET
	DB	T_W12,	11010101B, 10000011B
	DB	T_W2,		   11010111B	;NASTAV 5
	DB	T_W12,	10101011B, 11010011B
	DB	T_W2,		   10101111B	;NASTAV A
	DB	T_W2,		   10101001B	;DOPRAVA
	DB	T_W2,		   11010101B
	DB	T_W2,		   11010001B
	DB	T_W2,		   11101101B
	DB	T_W12,	11000001B, 11101001B
	DB	T_W2,		   10110101B
	DB	T_W2,		   10110001B
	DB	T_W2,		   10011101B
	DB	T_W12,	10010011B, 10011001B
	DB	T_W2,		   11001101B
	DB	T_W12,	11000001B, 11001001B
	DB	T_W2,		   10100101B
	DB	T_W12,	10001011B, 10100001B
	DB	T_W2,		   11010101B
	DB	T_W12,	11000001B, 11010010B	;DOLEVA
	DB	T_W2,		   10101110B
	DB	T_W2,		   10101010B
	DB	T_W2,		   11011110B
	DB	T_W12,	10001001B, 11011010B
	DB	T_W2,		   10110110B
	DB	T_W2,		   10110010B
	DB	T_W2,		   11100110B
	DB	T_W12,	11000011B, 11100010B
	DB	T_W2,		   11001110B
	DB	T_W2,		   11001000B	;NIC
	DB	T_W2,		   11001100B
	DB	T_KONEC

;4bit. posuv. registr se ser. a par. vstup, par. vystup
;			       _        _ _
;74195			 3210_ M    01233CP
I74195T:	;	ZDDDDKJR   NQQQQQPE
	DB	T_VV2,	01111111B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10000111B	;RESET
	DB	T_W12,	10101011B, 10000100B
	DB	T_W2,		   11010110B	;NASTAV A
	DB	T_W12,	11010101B, 11010100B
	DB	T_W2,		   10101010B	;NASTAV 5
	DB	T_W12,	11000111B, 10101001B
	DB	T_W2,		   11010111B
	DB	T_W12,	10100101B, 11010101B
	DB	T_W2,		   11101011B
	DB	T_W12,	10010011B, 11101001B
	DB	T_W2,		   10110111B
	DB	T_W12,	10001001B, 10110101B
	DB	T_W2,		   10011011B
	DB	T_W12,	10100101B, 10011001B
	DB	T_W2,		   10001011B
	DB	T_W12,	10110011B, 10001001B
	DB	T_W2,		   11000111B
	DB	T_KONEC

;8bit. posuv. obousmer. registr se ser. a par. vstup, par. vystup
;					  _
;74198			 C332211   7665544M    1D700D0
I74198T:	;	ZPQDQDQD   QDQDQDQR   NSLDQDRS
	DB	T_VV3,	01010101B, 01010101B, 01110111B
	DB	T_NAP,	DIL24
	DB	T_O12,	11000000B, 00000000B
	DB	T_W123,	11000000B, 00010001B, 11010011B	;RESET
	DB	T_W1,	10010001B
	DB	T_W123,	11110011B, 11001101B, 11100111B	;NASTAV
	DB	T_W1,	10100110B
	DB	T_W123,	11001100B, 01100111B, 11101110B	;NASTAV
	DB	T_W1,	10001000B
	DB	T_W123,	11110011B, 10011001B, 11010000B	;VLEVO
	DB	T_W1,	10100010B
	DB	T_W123,	11001100B, 01100111B, 11001110B
	DB	T_W1,	10001000B
	DB	T_W123,	11110011B, 00011001B, 10000011B	;VPRAVO
	DB	T_W1,	10100010B
	DB	T_W123,	11001100B, 01100111B, 10101111B
	DB	T_W1,	10001000B
	DB	T_W123,	11110011B, 10011001B, 10101101B
	DB	T_W1,	10100010B
	DB	T_W123,	11001111B, 01100111B, 10110000B	;NIC
	DB	T_W1,	10001010B
	DB	T_W123,	11001111B, 01100111B, 10110000B
	DB	T_KONEC

;FIFO registr 16x 5bit
;			1	   11111111	21
;			09876543   87654321	0921
;			 _
;74225			 O43210U   _OU01234      CIC
;I74225T:	;	ZEDDDDDO   RRIQQQQQ   XXNBRAXX
;	DB	T_NIC

;	DB	T_VV3,	01111110B, 10100000B, 00010100B
;	DB	T_NAP,	DIL20
;	DB	T_O123,	10000000B, 00100000B, 11101111B
;	DB	T_W123,	11000011B, 10111111B, 11101111B
;	DB	T_O2,		   00100000B
;	DB	T_W123,	10000011B, 01110000B, 11111111B	;1
;	DB	T_O3,			      11101111B
;	DB	T_W123,	10000101B, 01110000B, 11111111B	;2
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10001001B,	      11111111B	;3
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10010001B,	      11111111B	;4
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10100001B,	      11111111B	;5
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10011111B,	      11111111B	;6
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10101111B,	      11111111B	;7
;	DB	T_O3,			      11101111B
;	DB	T_O13,	10110111B,	      11111111B	;8
;	DB	T_O3,			      11101011B
;	DB	T_O13,	10111011B,	      11111111B	;9
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10111101B,	      11111111B	;10
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10111111B,	      11111111B	;11
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10000001B,	      11111111B	;12
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10101011B,	      11111111B	;13
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10010101B,	      11111111B	;14
;	DB	T_O3,			      11111011B
;	DB	T_W123,	10110011B, 01110000B, 11111111B	;15
;	DB	T_O3,			      11111011B
;	DB	T_W123,	10011001B, 01110000B, 11111111B	;16
;	DB	T_O3,			      11111011B
;	DB	T_W123,	10001001B, 01110000B, 11110111B	;17
;	DB	T_W3,			      11110011B
;	DB	T_KONEC

;	DB	T_VV3,	01111110B, 10100000B, 00010100B
;	DB	T_NAP,	DIL20
;	DB	T_O123,	10000001B, 00100000B, 11111111B
;	DB	T_O2,		   10100000B	
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10100001B,	      11111111B	;1
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10010001B,	      11111111B	;2
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10001001B,	      11111111B	;3
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10000101B,	      11111111B	;4
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10000011B,	      11111111B	;5
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10011111B,	      11111111B	;6
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10101111B,	      11111111B	;7
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10110111B,	      11111111B	;8
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10111011B,	      11111111B	;9
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10111101B,	      11111111B	;10
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10111111B,	      11111111B	;11
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10101011B,	      11111111B	;12
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10010101B,	      11111111B	;13
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10110011B,	      11111111B	;14
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10001101B,	      11111111B	;15
;	DB	T_O3,			      11111011B
;	DB	T_O13,	10000001B,	      11111111B	;16
;	DB	T_I23,		   11100001B, 11110111B	;1
;	DB	T_O2,		   11000001B
;	DB	T_W23,		   10100010B, 11111111B	;2
;	DB	T_O2,		   10000010B
;	DB	T_W23,		   10100100B, 11111111B	;3
;	DB	T_O2,		   10000100B
;	DB	T_W23,		   10101000B, 11111111B	;4
;	DB	T_O2,		   10001000B
;	DB	T_W23,		   10110000B, 11111111B	;5
;	DB	T_O2,		   10010000B
;	DB	T_W23,		   10101111B, 11111111B	;6
;	DB	T_O2,		   10001111B
;	DB	T_W23,		   10110111B, 11111111B	;7
;	DB	T_O2,		   10010111B
;	DB	T_W23,		   10111011B, 11111111B	;8
;	DB	T_O2,		   10011011B
;	DB	T_W23,		   10111101B, 11111111B	;9
;	DB	T_O2,		   10011101B
;	DB	T_W23,		   10111110B, 11111111B	;10
;	DB	T_O2,		   10011110B
;	DB	T_W23,		   10111111B, 11111111B	;11
;	DB	T_O2,		   10011111B
;	DB	T_W23,		   10110101B, 11111111B	;12
;	DB	T_O2,		   10010101B
;	DB	T_W23,		   10101010B, 11111111B	;13
;	DB	T_O2,		   10001010B
;	DB	T_W23,		   10110011B, 11111111B	;14
;	DB	T_O2,		   10010011B
;	DB	T_W23,		   10101100B, 11111111B	;15
;	DB	T_O2,		   10001100B
;	DB	T_W23,		   10100000B, 11111111B	;16
;	DB	T_KONEC

;3bit. dekoder 1 z 8
;74238			  321
I74238T:	;	Z7EEECBA   N0123456
	DB	T_VV2,	00111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10100000B, 11000000B
	DB	T_W12,	10100001B, 10100000B
	DB	T_W12,	10100010B, 10010000B
	DB	T_W12,	10100011B, 10001000B
	DB	T_W12,	10100100B, 10000100B
	DB	T_W12,	10100101B, 10000010B
	DB	T_W12,	10100110B, 10000001B
	DB	T_W12,	11100111B, 10000000B
	DB	T_W12,	10101101B, 10000000B
	DB	T_W12,	10000101B, 10000000B
	DB	T_W12,	10001010B, 10000000B
	DB	T_W12,	10010101B, 10000000B
	DB	T_W12,	10011010B, 10000000B
	DB	T_W12,	10110010B, 10000000B
	DB	T_W12,	10111101B, 10000000B
	DB	T_KONEC

;8x invert. budic sbernice
;			 2121212   12121212       1
;74240			 YAYAYAY   YAYAYAYA      2A1
I74240T:	;	Z1423324   14233241   XXNG1GXX
	DB	T_VV3,	00101010B, 01010101B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_W123,	11111111B, 01010101B, 11111011B
	DB	T_W123,	10101010B, 11111111B, 11101111B
	DB	T_W123,	11010101B, 10101010B, 11100011B
	DB	T_W123,	10010101B, 00101011B, 11101011B
	DB	T_W123,	11000111B, 10001110B, 11100011B
	DB	T_W123,	11011001B, 10110010B, 11100011B
	DB	T_W123,	11110100B, 11101000B, 11100011B
	DB	T_KONEC

;8x budic sbernice
;			 2121212   12121212       1
;74241			 YAYAYAY   YAYAYAYA      2A1
I74241T:	;	Z1423324   14233241   XXNG1GXX
	DB	T_VV3,	00101010B, 01010101B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11010101B, 10101010B, 11100111B
	DB	T_W123,	11010101B, 01010101B, 11100011B
	DB	T_W123,	10101010B, 10101010B, 11110111B
	DB	T_W123,	10000000B, 00000000B, 11110011B
	DB	T_W123,	11000000B, 10000001B, 11111011B
	DB	T_W123,	10010010B, 00100100B, 11110011B
	DB	T_W123,	10001100B, 00011000B, 11110011B
	DB	T_W123,	10100001B, 01000010B, 11110011B
	DB	T_KONEC

;4bit. prijimac/vysilac sbernice invert.
;			      _
;74242			 4321 A      B 1234
I74242T:	;	ZAAAAXBX   XNAXBBBB
	DB	T_VV2,	01111010B, 00100000B	;A->B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000101B, 11011111B
	DB	T_W12,	11111101B, 11010000B
	DB	T_W12,	11000101B, 11011110B
	DB	T_W12,	10100101B, 11011101B
	DB	T_W12,	10010101B, 11011011B
	DB	T_W12,	10001101B, 11010111B
	DB	T_W12,	11010111B, 11011111B
	DB	T_VV2,	00000010B, 00101111B	;B->A
	DB	T_W12,	11111111B, 11110000B
	DB	T_W12,	10000111B, 11111111B
	DB	T_W12,	10111111B, 11110001B
	DB	T_W12,	11011111B, 11110010B
	DB	T_W12,	11101111B, 11110100B
	DB	T_W12,	11110111B, 11111000B
	DB	T_W12,	11111111B, 11010101B
	DB	T_KONEC

;4bit. prijimac/vysilac sbernice
;			      _
;74243			 4321 A      B 1234
I74243T:	;	ZAAAAXBX   XNAXBBBB
	DB	T_VV2,	01111010B, 00100000B	;A->B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000101B, 11010000B
	DB	T_W12,	11111101B, 11011111B
	DB	T_W12,	11000101B, 11010001B
	DB	T_W12,	10100101B, 11010010B
	DB	T_W12,	10010101B, 11010100B
	DB	T_W12,	10001101B, 11011000B
	DB	T_W12,	10000111B, 11011111B
	DB	T_VV2,	00000010B, 00101111B	;B->A
	DB	T_W12,	10000111B, 11110000B
	DB	T_W12,	11111111B, 11111111B
	DB	T_W12,	11000111B, 11110001B
	DB	T_W12,	10100111B, 11110010B
	DB	T_W12,	10010111B, 11110100B
	DB	T_W12,	10001111B, 11111000B
	DB	T_W12,	11111111B, 11010000B
	DB	T_KONEC

;8x budic sbernice
;			 2121212   12121212       1
;74244			 YAYAYAY   YAYAYAYA      2A1
I74244T:	;	Z1423324   14233241   XXNG1GXX
	DB	T_VV3,	00101010B, 01010101B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11010101B, 10101010B, 11110111B
	DB	T_W123,	11010101B, 01010101B, 11110011B
	DB	T_W123,	10101010B, 10101010B, 11100111B
	DB	T_W123,	10000000B, 00000000B, 11100011B
	DB	T_W123,	11000000B, 10000001B, 11101011B
	DB	T_W123,	10010010B, 00100100B, 11100011B
	DB	T_W123,	10001100B, 00011000B, 11100011B
	DB	T_W123,	10100001B, 01000010B, 11100011B
	DB	T_KONEC

;8x vysilac/prijimac sbernice
;74245, 74639, 74641, 74645
;			 8765432   12345678      _1
I74245T:	;	ZAAAAAAA   BBBBBBBB   XXNGADXX
	DB	T_GOSUB
	DW	S74245T
	DB	T_VV3,	01111111B, 00000000B, 00011100B	;A->B
	DB	T_W123,	10000000B, 00000000B, 11100111B
	DB	T_W123,	11111111B, 11111111B, 11101111B
	DB	T_W123,	10101010B, 10101010B, 11101111B
	DB	T_W123,	11010101B, 01010101B, 11100111B
	DB	T_W123,	10101010B, 11111111B, 11111111B
	DB	T_W123,	11010101B, 11111111B, 11110111B
	DB	T_W123,	11111111B, 01111111B, 11100111B
	DB	T_W123,	11111110B, 10111111B, 11101111B
	DB	T_W123,	11111101B, 11011111B, 11101111B
	DB	T_W123,	11111011B, 11101111B, 11101111B
	DB	T_W123,	11110111B, 11110111B, 11101111B
	DB	T_W123,	11101111B, 11111011B, 11101111B
	DB	T_W123,	11011111B, 11111101B, 11101111B
	DB	T_W123,	10111111B, 11111110B, 11101111B
	DB	T_KONEC

;------------------------------------------------------
;spolecna cast pro:74245, 74639, 74641, 74645, 74643, 74644
S74245T:DB	T_VV3,	00000000B, 11111111B, 00010100B	;B->A
	DB	T_NAP,	DIL20
	DB	T_W123,	10000000B, 00000000B, 11100011B
	DB	T_W123,	11111111B, 11111111B, 11101011B
	DB	T_W123,	11111111B, 10101010B, 11111011B
	DB	T_W123,	11111111B, 01010101B, 11111011B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11010101B, 01010101B, 11100011B
	DB	T_W123,	11000000B, 00000001B, 11100011B
	DB	T_W123,	10100000B, 00000010B, 11100011B
	DB	T_W123,	10010000B, 00000100B, 11100011B
	DB	T_W123,	10001000B, 00001000B, 11100011B
	DB	T_W123,	10000100B, 00010000B, 11100011B
	DB	T_W123,	10000010B, 00100000B, 11100011B
	DB	T_W123,	10000001B, 01000000B, 11100011B
	DB	T_W123,	10000000B, 10000000B, 11101011B
	DB	T_RET


;8kanal. multiplexer
;74251			 __ 0123    4567012
I74251T:	;	ZEYYDDDD   NDDDDSSS
	DB	T_VV2,	01001111B, 01111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110101B, 10101101B
	DB	T_W12,	11111010B, 11010101B
	DB	T_GOTO
	DW	G74151T

;2x 4vstup. multiplexer
;74253			  01231_    _03210
I74253T:	;	ZYDDDDSE   NESDDDDY
	DB	T_VV2,	00111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010101B, 11010101B
	DB	T_W12,	11101011B, 11101011B
	DB	T_GOTO
	DW	G74153T

;2x 4bit adresovatelny stradac      _
;74256			 3210A10    C_B3210
I74256T:	;	ZQQQQDAA   NLEDQQQQ
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000101B, 10100000B	;RESET
	DB	T_W12,	10001100B, 10010001B	;DEMULTIPLEXR
	DB	T_W12,	10010101B, 10010010B
	DB	T_W12,	10100110B, 10010100B
	DB	T_W12,	11000111B, 10011000B
	DB	T_W12,	10000101B, 10100000B	;RESET
	DB	T_W12,	11000111B, 11011000B	;ADRESNY ZACHYT
	DB	T_W12,	11001100B, 11011001B
	DB	T_W12,	11101110B, 11011101B
	DB	T_W12,	11111101B, 11011111B
	DB	T_O2,		   11111111B	;PAMNET
	DB	T_W12,	11111000B, 11101111B
	DB	T_W12,	11110000B, 11001110B	;ADRESNY ZACHYT
	DB	T_W12,	11010010B, 11001010B
	DB	T_W12,	11011100B, 11001010B
	DB	T_W12,	10011011B, 11000010B
	DB	T_W12,	10011010B, 11010110B
	DB	T_W12,	10010000B, 11000110B
	DB	T_W12,	10000001B, 11000100B
	DB	T_W12,	10100110B, 11000000B
	DB	T_KONEC

;4x 2vstup. multiplexer
;74257			 222111     _444333
I74257T:	;	ZYBAYBAS   NEABYABY
	DB	T_VV2,	00110111B, 01110110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11001000B, 11001001B
	DB	T_W12,	11001001B, 11001001B
	DB	T_GOTO
	DW	G74157T	

;8bit. adres. registr typu Latch
;74259			 3210210    __ 7654
I74259T:	;	ZQQQQSSS   NRGDQQQQ
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000101B, 10110000B	;RESET
	DB	T_W12,	10001000B, 10010000B	;DEMULTIPLEXR
	DB	T_W12,	10010001B, 10010000B
	DB	T_W12,	10100010B, 10010000B
	DB	T_W12,	11000011B, 10010000B
	DB	T_W12,	10000100B, 10010001B
	DB	T_W12,	10000101B, 10010010B
	DB	T_W12,	10000110B, 10010100B
	DB	T_W12,	10000111B, 10011000B
	DB	T_W12,	10000101B, 10110000B	;RESET
	DB	T_W12,	10001000B, 11010000B	;ADRESNY ZACHYT
	DB	T_W12,	10011001B, 11010000B
	DB	T_W12,	10111010B, 11010000B
	DB	T_W12,	11111011B, 11010000B
	DB	T_W12,	11111100B, 11010001B
	DB	T_W12,	11111101B, 11010011B
	DB	T_W12,	11111110B, 11010111B
	DB	T_W12,	11111111B, 11011111B
	DB	T_O2,		   11101111B	;PAMNET
	DB	T_W12,	11111010B, 11101111B
	DB	T_W12,	11110000B, 11001111B	;ADRESNY ZACHYT
	DB	T_W12,	11100001B, 11001111B
	DB	T_W12,	11000010B, 11001111B
	DB	T_W12,	10000011B, 11001111B
	DB	T_W12,	10000100B, 11001110B
	DB	T_W12,	10000101B, 11001100B
	DB	T_W12,	10000110B, 11001000B
	DB	T_W12,	10000111B, 11000000B
	DB	T_KONEC

;2x 5NOR
;74260			 212111      112222
I74260T:	;	ZYYACBAX   XNEDEDCB
	DB	T_VV2,	00011110B, 00111111B
	DB	T_NAP,	DIL14
	DB	T_W12,	11001111B, 11110000B
	DB	T_W12,	10110001B, 11001111B
	DB	T_W12,	10010011B, 11000000B
	DB	T_W12,	10000101B, 11000001B
	DB	T_W12,	10001001B, 11000010B
	DB	T_W12,	10000001B, 11010100B
	DB	T_W12,	10000001B, 11101000B
	DB	T_KONEC

;2X 2NAND + 2x invert	 _   _        _   _
;74265			 2222111    4443333
I74265T:	;	ZYWBAYWA   NAWYBAWY
	DB	T_VV2,	00011001B, 01001100B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000011B, 10011110B
	DB	T_W12,	11001100B, 10010101B
	DB	T_W12,	11010100B, 11101001B
	DB	T_W12,	10111011B, 11100001B
	DB	T_KONEC

;4x 2EX-NOR
;74266			 2221111     444333
I74266T:	;	ZBAYYBAX   XNBAYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10010011B, 11100111B
	DB	T_W12,	10100101B, 11111100B
	DB	T_W12,	11001111B, 11001001B
	DB	T_W12,	11111001B, 11010010B
	DB	T_KONEC

;8bit. registr D s R
;74273			 4433221   8776655       81_
I74273T:	;	ZQDDQQDD   DDQQDDQC   XXNQQRXX
	DB	T_VV3,	00110011B, 11001101B, 00000100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10110011B, 11001101B, 11100011B	;RERSRT
	DB	T_W123,	10000001B, 00000000B, 11100111B
	DB	T_W123,	10000001B, 00000001B, 11101111B
	DB	T_W2,		   00000000B
	DB	T_W123,	10000110B, 00000001B, 11100111B
	DB	T_W2,		   00000000B
	DB	T_W123,	10011000B, 00000001B, 11100111B
	DB	T_W2,		   00000000B
	DB	T_W123,	11100000B, 00000001B, 11100111B
	DB	T_W2,		   00000100B
	DB	T_W123,	10000000B, 00000111B, 11100111B
	DB	T_W2,		   00001010B
	DB	T_W123,	10000000B, 00011001B, 11100111B
	DB	T_W2,		   01010000B
	DB	T_W123,	10000000B, 01100001B, 11100111B
	DB	T_W2,		   10100000B
	DB	T_W123,	10000000B, 10000001B, 11110111B
	DB	T_KONEC

;4x K.O. J-K se spolecnim SR
;			   _  _     _  _
;74276			 2222111   4443333_      41_
I74276T:	;	ZJCKQQKC   CKQQKCJS   XXNJJRXX
	DB	T_VV3,	01110011B, 11001111B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101101B, 10110100B, 11111111B	;SET
	DB	T_W123,	11010010B, 01001011B, 11100011B	;RESET
	DB	T_O123,	10110111B, 10010111B, 11101111B
	DB	T_W123,	10010110B, 00010011B, 11101111B
	DB	T_O123,	11111001B, 10100111B, 11110111B
	DB	T_W123,	11011000B, 00100011B, 11110111B
	DB	T_O123,	10100101B, 10001101B, 11111111B
	DB	T_W123,	10000100B, 00001001B, 11111111B
	DB	T_O123,	11101001B, 11011111B, 11101111B
	DB	T_W123,	11001000B, 01011011B, 11101111B
	DB	T_O123,	11100011B, 11100101B, 11110111B
	DB	T_W123,	11000010B, 01100001B, 11110111B
	DB	T_KONEC


;PROM 256x4bity			     __
;74287			 3214567    8211234
I74287T:	;	ZAAAAAAA   NASSQQQQ
	DB	T_VV2,	01111111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10111111B
	DB	T_W12,	11010101B, 11101111B
	DB	T_W12,	10101010B, 10011111B
	DB	T_PROG
	DW	P74287
	DB	T_KONEC

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
P74287:	MVI	C,10000000B	;STAV NA PORTU2
	MOV	B,C		;POCITALO ADRES NA PORTU1
	CALL	P74287A
	MVI	C,11000000B	;STAV NA PORTU2
	MVI	B,10000000B	;POCITALO ADRES NA PORTU1
	CALL	P74287A		;NUTNO KVULI ROVNANI ZASOBNIKU PRI CHYBE
	RET

P74287A:LXI	H,P287DAT	;NASTAV  JAKO POMOCNE UKAZOVATKO
	MOV	A,C
	OUT	PORT2		;VYSTAV ADRESU A8 A POVOL DATA
	STA	VDAT+1		;ULOZ PRO ZOBRAZENI DIL Z PORTU 2
P74287B:MOV	A,B
	OUT	PORT1		;VYSTAV ADRESY
	STA	VDAT		;ULOZ PRO ZOBRAZENI DIL Z PORTU 1
	IN	PORT1		;CTI ADRESY
	STA	CDAT		;ULOZ CTENA DATA Z PORTU 1 PRO ZOBRAZENI DIL
	MOV	D,A		;SCHOV
	IN	PORT2		;CTI DATA
	STA	CDAT+1		;ULOZ CTENA DATA Z PORTU 2 PRO ZOBRAZENI DIL
	CMP	C
	JNZ	P74287C		;CHYBA DAT - PORT2
	MOV	A,D		;OBNOV CTENA DATA Z PORTU 1
	CMP	B
	JNZ	P74287D		;CHYBA ADRES - PORT1
	INR	B		;POCITALO ADRES +1
	RZ			;NAVRAT JE-LI NULA
	JMP	P74287B

;-------------------------------
;CHYBA PORT2
P74287C:LXI	D,ERR2T
	MOV	M,C		;ULOZ PRO POTREBY ZOBRAZENI CHYBY
	JMP	P74287E

;-------------------------------
;CHYBA PORT1
P74287D:LXI	D,ERR1T
	MOV	M,B		;ULOZ PRO POTREBY ZOBRAZENI CHYBY
P74287E:SHLD	HLERR		;ULOZ  A  PRO ZOBRAZENI CHYBY
	XCHG
	SHLD	DEERR
	XCHG			;VRAT DO PUVODNIHO STAVU
	STA	PP		;ULOZ DATA Z PORTU
	MVI	A,1
	STA	ERR		;ULOZ PRIZNAK CHIBY
	INX	SP		;SROVNEJ ZASOBNIK
	INX	SP		;VLASTNI KONTROLNI SMYCKA
	INX	SP
	INX	SP		;NAVRATOVA ADRESA Z T_PROG
	JMP	ZDIL		;ZOBRAZ DIL ... PRI CHYBE SE VYSKAKUJE VEN A ROVNA SE ZASOBNIK
				;ANEB SE SROVNA I SCHOVANE UKOZOVATKO V TEST TABULCE

P287DAT:DS	1		;DATA CO SE BUDOU ZOBRAZOVAT PRI CHYBE

;4x K.O. R-S		  __ ___    __ ___
;74279			 2221111    4443333
I74279T:	;	ZQSRQSSR   NSRQSSRQ
	DB	T_VV2,	00110111B, 01101110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010110B, 10111100B
	DB	T_W12,	10101011B, 11000111B
	DB	T_W12,	10110110B, 11101100B
	DB	T_W12,	11011101B, 10111110B
	DB	T_W12,	10101111B, 11001011B
	DB	T_KONEC


;9bit. renerator parity/paritni skousec
;74280			 QQ
I74280T:	;	ZOEIXHGX   XNFEDCBA
	DB	T_VV2,	00010110B, 00111111B
	DB	T_NAP,	DIL14
	DB	T_W12,	11011011B, 11010101B
	DB	T_W12,	10101011B, 11101010B
	DB	T_W12,	10101001B, 11110110B
	DB	T_W12,	11011111B, 11001001B
	DB	T_W12,	11011101B, 11011100B
	DB	T_W12,	10101101B, 11001011B
	DB	T_KONEC


;4bit. uplna scitacka
;74283			 I111222    333444O
I74283T:	;	ZCBASABS   NBASABSC
	DB	T_VV2,	01110110B, 01101100B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 10000000B	;0000+0000+0=0 0000
	DB	T_W12,	11111111B, 11111111B	;1111+1111+1=1 1111
	DB	T_W12,	11001000B, 10000000B	;0000+0000+1=0 0001
	DB	T_W12,	10110111B, 11111111B	;1111+1111+0=1 1110
	DB	T_W12,	10110001B, 11100010B	;0101+0101+0=0 1010
	DB	T_W12,	10000110B, 10011101B	;1010+1010+0=1 0100
	DB	T_W12,	11111001B, 11100010B	;0101+0101+1=0 1011
	DB	T_W12,	11001110B, 10011101B	;1010+1010+1=1 0101
	DB	T_W12,	10011011B, 10110110B	;0101+1010+0=0 1111
	DB	T_W12,	11010010B, 10100101B	;0101+1010+1=1 0000
	DB	T_KONEC

;async. BCD citac	    2 1      2121
;74290			  12M M      MMCC03
I74290T:	;	ZXQQSXSX   XNRRPPQQ
	DB	T_NZ2,	01000101B, 10000000B
	DB	T_VV2,	00001010B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	11001111B, 11001111B	;RESET 9
	DB	T_W12,	11000101B, 11111100B	;RESET 0
	DB	T_W2,		   11011100B
	DB	T_W12,	11100101B, 11010010B	;1,1
	DB	T_W2,		   11101110B
	DB	T_W12,	11010101B, 11100000B	;0,2
	DB	T_W2,		   11001100B
	DB	T_W12,	11111101B, 11000010B	;1,3
	DB	T_W2,		   11001110B
	DB	T_W12,	11000111B, 11000001B	;0,4
	DB	T_W2,		   11001101B
	DB	T_W12,	11000101B, 11000010B	;1,0
	DB	T_KONEC

;prog. 32bit. BIN citac/delic
;74292
;I74292T:
;	DB	T_NIC

;4bit. async. BIN citac 	     2121
;74293			  12	     MMCC03
I74293T:	;	ZXQQXXXX   XXRRPPQQ
	DB	T_NZ2,	01001111B, 11000000B
	DB	T_VV2,	00000000B, 00111100B
	DB	T_NAP,	DIL14
	DB	T_W12,	11001111B, 11111100B	;RESET
	DB	T_W2,		   11011100B
	DB	T_W12,	11101111B, 11010010B	;1,1
	DB	T_W2,		   11001110B
	DB	T_W12,	11011111B, 11000000B	;0,2
	DB	T_W2,		   11101100B
	DB	T_W12,	11111111B, 11100010B	;1,3
	DB	T_W2,		   11001110B
	DB	T_W12,	11001111B, 11000001B	;0,4
	DB	T_W2,		   11001101B
	DB	T_W12,	11101111B, 11000011B	;1,5
	DB	T_W2,		   11001111B
	DB	T_W12,	11011111B, 11000001B	;0,6
	DB	T_W2,		   11001101B
	DB	T_W12,	11111111B, 11000011B	;1,7
	DB	T_W2,		   11001111B
	DB	T_W12,	11001111B, 11000000B	;0,0
	DB	T_W2,		   11001100B
	DB	T_W12,	11101111B, 11000010B	;1,1
	DB	T_KONEC

;4bit. posuvny registr s par. vstup a vystup
;74295			 L4321D      1234 O
I74295T:	;	ZSDDDDSX   XNQQQQCC
	DB	T_VV2,	01111110B, 00000011B
	DB	T_NAP,	DIL14
	DB	T_O2,		   11000011B
	DB	T_W12,	11010101B, 11101001B
	DB	T_W2,		   11101011B
	DB	T_W12,	11101011B, 11010101B
	DB	T_W2,		   11010111B
	DB	T_W12,	10000011B, 11101001B
	DB	T_W2,		   11101011B
	DB	T_W12,	10111101B, 11010101B
	DB	T_W2,		   11010111B
	DB	T_W12,	10100101B, 11001001B
	DB	T_W2,		   11001011B
	DB	T_W12,	10100101B, 11111100B
	DB	T_W2,		   11111110B
	DB	T_W12,	10011011B, 11111100B
	DB	T_W2,		   11100011B
	DB	T_W12,	10000011B, 11110001B
	DB	T_KONEC

;4x 2vstup. multiplexer s pameti
;74298			 1221122    ABCD  1
I74298T:	;	ZDDCBAAB   NQQQQCSC
	DB	T_VV2,	01111111B, 00000111B
	DB	T_NAP,	DIL16
	DB	T_O2,		   00000101B
	DB	T_W12,	10100101B, 11010001B
	DB	T_W2,		   11010111B
	DB	T_W2,		   10101011B
	DB	T_W12,	11000000B, 10101100B
	DB	T_W2,		   10001000B
	DB	T_W12,	10100000B, 10001110B
	DB	T_W2,		   10001010B
	DB	T_W12,	10010000B, 10001110B
	DB	T_W2,		   10010010B
	DB	T_W12,	10001000B, 10010100B
	DB	T_W2,		   10100000B
	DB	T_W12,	10000100B, 10100100B
	DB	T_W2,		   11000000B
	DB	T_W12,	10000010B, 11000110B
	DB	T_W2,		   11000010B
	DB	T_W12,	10000001B, 11000110B
	DB	T_W2,		   10100010B
	DB	T_W12,	10000000B, 10100101B
	DB	T_W2,		   10010001B
	DB	T_KONEC

;8bit. univers. posuv. registr s R
;			  ,    _    ,		  _
;74299			 _AACEG2   SHHFDB S      110
I74299T:	;	ZRQQQQQG   LQQQQQCR   XXNSGSXX
	DB	T_VV3,	01000001B, 10000011B, 00011100B	;DATA VEN
	DB	T_NAP,	DIL20
	DB	T_W123,	10000000B, 00000000B, 11100111B	;RESET
	DB	T_VV2,	01011111B, 10111111B		;DATA DOVNITR
	DB	T_W123,	11010100B, 10010101B, 11110111B
	DB	T_W2,		   10010111B
	DB	T_VV2,	01000001B, 10000011B		;DATA VEN
	DB	T_W123,	11110100B, 10010101B, 11100011B	;SET
	DB	T_VV2,	01011111B, 10111111B		;DATA DOVNITR
	DB	T_W123,	11001010B, 01101001B, 11110111B
	DB	T_W2,		   01101011B
	DB	T_VV2,	01000001B, 10000011B		;DATA VEN
	DB	T_W123,	11001010B, 01101001B, 11100011B	;SET
	DB	T_W123,	11011111B, 01111101B, 11100011B
	DB	T_W123,	11011110B, 01111101B, 11101011B
	DB	T_W3,		   	      11100111B	;VPRAVO
	DB	T_W12,	11110100B, 01101011B
	DB	T_W2,		   01101000B
	DB	T_W12,	11000100B, 00010110B
	DB	T_W2,		   00010101B
	DB	T_W12,	11111010B, 00010011B
	DB	T_W2,		   00010000B
	DB	T_W12,	11000010B, 01101110B
	DB	T_W23,		   01101101B, 11110011B	;VLEVO
	DB	T_W12,	11111010B, 00010011B
	DB	T_W2,		   10010000B
	DB	T_W12,	11000100B, 11110110B
	DB	T_W2,		   01110101B
	DB	T_W12,	11110110B, 00001011B
	DB	T_W2,		   10001000B
	DB	T_W12,	11001000B, 11111010B
	DB	T_KONEC

;kaskadovatelny 8bit. uni. posuv. registr se sinc. R a par. vstup. vystup. ser. vystup
;			 C_        _      C       S_
;74322			 LOGECA0   S1BDFHHL      D/R
I74322T:	;	ZREWWWWD   EDWWWWQK   XXNSPEXX
	DB	T_VV3,	01100001B, 11000001B, 00011100B	;DATA VEN
	DB	T_NAP,	DIL20
	DB	T_W123,	10000001B, 01000001B, 11101011B	;RESET
	DB	T_W12,	11111110B, 10111100B		;/OE
	DB	T_VV2,	01111111B, 11111101B		;DATA DOVNITR
	DB	T_W123, 11101010B, 01010100B, 11110011B	;DATA PRO ZAPIS PARALERNI
	DB	T_W2,		   01010111B
	DB	T_VV2,	01100001B, 11000001B		;DATA VEN
	DB	T_W123,	11001010B, 01010110B, 11101011B
	DB	T_W12,	11111110B, 10111110B		;/OE
	DB	T_VV2,	01111111B, 11111101B		;DATA DOVNITR
	DB	T_W123, 11110100B, 01101010B, 11110011B	;DATA PRO ZAPIS PARALERNI
	DB	T_W2,		   01101001B
	DB	T_VV2,	01100001B, 11000001B		;DATA VEN
	DB	T_W123,	11010100B, 01101000B, 11101011B
	DB	T_W123,	11011110B, 01111100B, 11110011B
	DB	T_W123,	11111110B, 01111100B, 11111011B
	DB	T_W123,	11010100B, 11101000B, 11111011B	;SERIOVE
	DB	T_W2,		   11010111B
	DB	T_W123,	11010110B, 11010110B, 11111011B
	DB	T_W2,		   11110111B
	DB	T_W123,	11001010B, 11110110B, 11101011B
	DB	T_W2,		   11101001B
	DB	T_W123,	11001101B, 10101000B, 11111011B
	DB	T_W2,		   10011001B
	DB	T_W123,	11010101B, 10011000B, 11101011B
	DB	T_W2,		   10010111B
	DB	T_W123,	11011010B, 11010110B, 11111011B
	DB	T_W2,		   11101111B
	DB	T_W123,	11001010B, 11101110B, 11101111B
	DB	T_W2,		   11101111B
	DB	T_W123,	11001010B, 11101110B, 11111111B
	DB	T_KONEC

;3bit prioritni BIN koder kaskadovatelny
;74348			 12E7654    EG32100
I74348T:	;	ZAAIQQQQ   NOSQQQQA
	DB	T_VV2,	00011111B, 00011110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110101B, 11101011B
	DB	T_W12,	11101111B, 10111111B
	DB	T_W12,	10000101B, 11010100B	;0
	DB	T_W12,	10001010B, 11010101B	;1
	DB	T_W12,	11001101B, 11001010B	;2
	DB	T_W12,	11001110B, 11010101B	;3
	DB	T_W12,	10101111B, 11001010B	;4
	DB	T_W12,	10101111B, 11010101B	;5
	DB	T_W12,	11101111B, 11011010B	;6
	DB	T_W12,	11101111B, 11011101B	;7
	DB	T_KONEC

;2x 8vstup. multiplex invert.
;			 1111      2222
;74351			 DDDD      DDDDDDDD      2_1
I74351T:	;	Z3210CBA   01234567   XXNYGYXX
	DB	T_VV3,	01111111B, 11111111B, 00001000B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 01010101B, 11111111B
	DB	T_W123,	11010101B, 10101010B, 11111111B
	DB	T_W13,	11010000B,	      11100111B
	DB	T_W13,	11010001B,	      11110011B
	DB	T_W13,	11010010B,	      11100111B
	DB	T_W13,	11010011B,	      11110011B
	DB	T_W13,	11010100B,	      11100011B
	DB	T_W13,	11010101B,	      11110111B
	DB	T_W13,	11010110B,	      11100011B
	DB	T_W13,	11010111B,	      11110111B
	DB	T_W123,	10101000B, 01010101B, 11110011B
	DB	T_W13,	10101001B,	      11100111B
	DB	T_W13,	10101010B,	      11110011B
	DB	T_W13,	10101011B,	      11100111B
	DB	T_W13,	10101100B,	      11110111B
	DB	T_W13,	10101101B,	      11100011B
	DB	T_W13,	10101110B,	      11110111B
	DB	T_W13,	10101111B,	      11100011B
	DB	T_KONEC

;2x 4vstup. multiplex invert.
;74352, 74353		 _		  _
I74352T:	;	ZYDDDDSE   NESDDDDY
	DB	T_VV2,	00111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010101B, 11010101B
	DB	T_W12,	11101011B, 11101011B
	DB	T_W12,	11010100B, 10010101B
	DB	T_W12,	10010100B, 10110100B
	DB	T_W12,	11010110B, 10010101B
	DB	T_W12,	10010110B, 10110100B
	DB	T_W12,	10101000B, 10001010B
	DB	T_W12,	11101000B, 10101011B
	DB	T_W12,	10101010B, 10001010B
	DB	T_W12,	11101010B, 10101011B
	DB	T_KONEC

;8bit stradac (MOS uP interface) ;8bit. reg. D s hradlovanim
;74363, 74373		 3322110   7665544       70O
I74363T:	;	ZQDDQQDD   DDQQDDQE   XXNQQEXX
	DB	T_VV3,	00110011B, 11001101B, 00000100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11100110B, 10011001B, 11110011B	;TRANSPARENTNI
	DB	T_W123,	10011001B, 01100111B, 11101011B
	DB	T_W2,		   01100110B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11100110B, 10011001B, 11110011B
	DB	T_W2,		   10011000B
	DB	T_W123,	11010101B, 01010100B, 11110011B
	DB	T_W123,	10011001B, 01100111B, 11101011B
	DB	T_W123,	10000000B, 00000001B, 11100011B
	DB	T_W123,	11001100B, 00110011B, 11111111B
	DB	T_KONEC

;6x budici stupen sbernice     _    _
;74365			 3322111    2665544
I74365T:	;	ZYAYAYAG   NGAYAYAY
	DB	T_VV2,	00101011B, 01101010B
	DB	T_NAP,	DIL16
	DB	T_W12,	11100110B, 10110011B
	DB	T_W12,	10011000B, 10001100B
	DB	T_W12,	11010101B, 10010101B
	DB	T_W12,	11111110B, 11010101B
	DB	T_W12,	11010101B, 11111111B
	DB	T_KONEC

;6x invert. budici stupen sbernice
;74366			 3322111    2665544
I74366T:	;	ZYAYAYAG   NGAYAYAY
	DB	T_VV2,	00101011B, 01101010B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10101010B
	DB	T_W12,	11010100B, 10010101B
	DB	T_W12,	11010101B, 10010101B
	DB	T_W12,	11111110B, 11010101B
	DB	T_W12,	11010101B, 11111111B
	DB	T_KONEC

;4 + 2bit. budici stupen sbernice
;			 111111_    _222211
;74367, 4503		 YAYAYA1    2AYAYAY
I74367T:	;	Z332211G   NG221144
	DB	T_VV2,	00101011B, 01101010B
	DB	T_NAP,	DIL16
	DB	T_W12,	10011000B, 11010111B
	DB	T_W12,	11100110B, 10001100B
	DB	T_W12,	11010101B, 10110001B
	DB	T_W12,	11111111B, 10110011B
	DB	T_W12,	11010101B, 11110101B
	DB	T_KONEC

;4 + 2bit. invert. budici stupen sbernice
;			 111111_    _222211
;74368			 YAYAYA1    2AYAYAY
I74368T:	;	Z332211G   NG221144
	DB	T_VV2,	00101011B, 01101010B
	DB	T_NAP,	DIL16
	DB	T_W12,	11001100B, 11010110B
	DB	T_W12,	10110010B, 10011001B
	DB	T_W12,	11010101B, 10101001B
	DB	T_W12,	11111111B, 10010111B
	DB	T_W12,	11010101B, 11110101B
	DB	T_KONEC

;8bit. reg. D
;74374			 3322110   7665544       70O
I74374T:	;	ZQDDQQDD   DDQQDDQC   XXNQQEXX
	DB	T_GOSUB
	DW	S7437X
	DB	T_W123,	11001100B, 00110011B, 11111111B
G74374:	DB	T_W123,	10100010B, 10001000B, 11100011B
	DB	T_W123,	11100110B, 10011001B, 11110011B
	DB	T_W123,	11010101B, 01010100B, 11110011B
	DB	T_W123,	10011001B, 01100111B, 11101011B
	DB	T_KONEC

;8bit. reg. D s hradlovanim
;74377			 4433221   8776655       81_
I74377T:	;	ZQDDQQDD   DDQQDDQC   XXNQQGXX
	DB	T_GOSUB
	DW	S7437X
	DB	T_W123,	10110011B, 11001100B, 11100111B
	DB	T_W123,	10110011B, 11001101B, 11100111B
	DB	T_GOTO
	DW	G74374

;------------------------------------------------------
;SPOLEZNY BLOK PRO 74374 A 74377

S7437X:	DB	T_VV3,	00110011B, 11001101B, 00000100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10000000B, 00000000B, 11100011B
	DB	T_W123,	10000000B, 00000001B, 11100011B
	DB	T_RET

;6bit. reg. D s hradlovanim
;74378			 332211_    665544
I74378T:	;	ZQDQDDQG   NQDDQDQC
	DB	T_VV2,	00101101B, 00110101B
	DB	T_NAP,	DIL16
	DB	T_O12,	10000000B, 10000000B
	DB	T_W12,	10000000B, 10000001B
	DB	T_W12,	10101101B, 10110100B
	DB	T_W12,	10101101B, 10110101B
	DB	T_W12,	10001000B, 10100100B
	DB	T_W12,	10011000B, 11100111B
	DB	T_W12,	10110100B, 11010010B
	DB	T_W12,	11100110B, 10011001B
	DB	T_W12,	11101110B, 10111100B
	DB	T_W12,	11111110B, 11111111B
	DB	T_W12,	11010011B, 11001010B
	DB	T_W12,	11010011B, 11001011B
	DB	T_KONEC

;4bit. registr D s hradlovanim a komplement. vystupy
;			  _  _	     _  _
;74379			 222111_    444333
I74379T:	;	ZQQDDQQG   NQQDDQQC
	DB	T_VV2,	00011001B, 00011001B
	DB	T_NAP,	DIL16
	DB	T_O12,	10100100B, 10100100B
	DB	T_W12,	10100100B, 10100101B
	DB	T_W12,	10111101B, 10111100B
	DB	T_W12,	10111101B, 10111101B
	DB	T_W12,	10110100B, 10110100B
	DB	T_W12,	11010100B, 11010101B
	DB	T_W12,	11001100B, 11001100B
	DB	T_W12,	10101010B, 10101011B
	DB	T_W12,	10111010B, 10111010B
	DB	T_W12,	11011010B, 11011011B
	DB	T_W12,	11011011B, 11011010B
	DB	T_W12,	11011011B, 11011011B
	DB	T_KONEC

;4x 2vstup. EX-OR
;74386 74L86		 222111      444333
I74386T:	;	ZBAYYBAX   XNBAYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10001011B, 11101011B
	DB	T_W12,	10111101B, 11110000B
	DB	T_W12,	11010111B, 11000101B
	DB	T_W12,	11100001B, 11011110B
	DB	T_KONEC

;2x BCD citac
;74390			 QQQCQ C    C QCQQQ
I74390T:	;	ZDCBBARA   NARABBCD
	DB	T_VV2,	00001011B, 01101000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000010B, 10100000B
	DB	T_W12,	10000000B, 10000000B	; RESET
	DB	T_W12,	10001001B, 11001000B
	DB	T_W12,	10010100B, 10010100B	;1,1
	DB	T_W12,	10011101B, 11011100B
	DB	T_W12,	10100000B, 10000010B	;0,2
	DB	T_W12,	10101001B, 11001010B
	DB	T_W12,	10110100B, 10010110B	;1,3
	DB	T_W12,	10111101B, 11011110B
	DB	T_W12,	11000000B, 10000001B	;0,4
	DB	T_W12,	11001001B, 11001001B
	DB	T_W12,	10000100B, 10010000B	;1,0
	DB	T_W12,	10001101B, 11011000B
	DB	T_W12,	10010000B, 10000100B	;0,1
	DB	T_KONEC

;2x BIN citac
;74393			 DDDD	       DDDD
I74393T:	;	ZDCBARCX   XNCRABCD
	DB	T_VV2,	00000110B, 00110000B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000101B, 11010000B
	DB	T_W12,	10000001B, 11000000B	;RESET
	DB	T_W12,	10000011B, 11100000B
	DB	T_W12,	10001001B, 11001000B	;1
	DB	T_W12,	10001011B, 11101000B
	DB	T_W12,	10010001B, 11000100B	;2
	DB	T_W12,	10010011B, 11100100B
	DB	T_W12,	10011001B, 11001100B	;3
	DB	T_W12,	10011011B, 11101100B
	DB	T_W12,	10100001B, 11000010B	;4
	DB	T_W12,	10100011B, 11100010B
	DB	T_W12,	10101001B, 11001010B	;5
	DB	T_W12,	10101011B, 11101010B
	DB	T_W12,	10110001B, 11000110B	;6
	DB	T_W12,	10110011B, 11100110B
	DB	T_W12,	10111001B, 11001110B	;7
	DB	T_W12,	10111011B, 11101110B
	DB	T_W12,	11000001B, 11000001B	;8
	DB	T_W12,	11000011B, 11100001B
	DB	T_W12,	11001001B, 11001001B	;9
	DB	T_W12,	11001011B, 11101001B
	DB	T_W12,	11010001B, 11000101B	;A
	DB	T_W12,	11010011B, 11100101B
	DB	T_W12,	11011001B, 11001101B	;B
	DB	T_W12,	11011011B, 11101101B
	DB	T_W12,	11100001B, 11000011B	;C
	DB	T_W12,	11100011B, 11100011B
	DB	T_W12,	11101001B, 11001011B	;D
	DB	T_W12,	11101011B, 11101011B
	DB	T_W12,	11110001B, 11000111B	;E
	DB	T_W12,	11110011B, 11100111B
	DB	T_W12,	11111001B, 11001111B	;F
	DB	T_W12,	11111011B, 11101111B
	DB	T_W12,	10000001B, 11000000B	;0
	DB	T_W12,	10000011B, 11100000B
	DB	T_W12,	10001001B, 11001000B	;1
	DB	T_KONEC

;4bit. posuvny reg. s par. a ser. vstup, vystup a R
;74395			       _    QQQQ' _
I74395T:	;	ZMDCBASR   NABCDDCE
	DB	T_VV2,	01111111B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000010B, 10000010B	;RESET
	DB	T_W12,	10000010B, 11111011B	;/OE
	DB	T_W12,	11010101B, 10000010B
	DB	T_W2,		   11010000B	;NASTAV 5
	DB	T_W12,	11101001B, 11010010B
	DB	T_W2,		   10101100B	;NASTAV A
	DB	T_W12,	10010101B, 10101110B
	DB	T_W2,		   10010000B	;SERIOVE
	DB	T_W12,	10100011B, 10010010B
	DB	T_W2,		   11001100B
	DB	T_W12,	10010001B, 11001110B
	DB	T_W2,		   10100000B
	DB	T_W12,	10001011B, 10100010B
	DB	T_W2,		   11010000B
	DB	T_W12,	10000101B, 11010010B
	DB	T_W2,		   10101100B
	DB	T_KONEC

;4x 2vstup. multiplex invert. s reg.
;74399			 B1221AW    D1221C
I74399T:	;	ZQBBAAQS   NQDDCCQC
	DB	T_VV2,	00111101B, 00111101B
	DB	T_NAP,	DIL16
	DB	T_O12,	10010110B, 11101000B
	DB	T_W12,	10010110B, 11101001B
	DB	T_W12,	10010111B, 11101000B
	DB	T_W12,	11010101B, 10101011B
	DB	T_W12,	11101001B, 10010110B
	DB	T_W12,	10101011B, 11010101B
	DB	T_W12,	10101010B, 11010100B
	DB	T_W12,	11101000B, 10010111B
	DB	T_KONEC

;8bit. multyfunkcni stradac		       _
;74412, 3212, 8212	 S443322   776655_     I8811M_
I74412T:	;	ZBQDQDQD   DQDQDQRS   NTDQQDDS
	DB	T_VV3,	01010101B, 10101011B, 00100111B
	DB	T_NAP,	DIL24
	DB	T_O123,	11010101B, 10101000B, 11100111B
	DB	T_W123,	11010101B, 10101010B, 11100111B	;RESET
	DB	T_W123,	10010101B, 10101010B, 10100111B	;STROBE
	DB	T_W123,	10110011B, 00110011B, 10110010B	;MD = 0, STROBE
	DB	T_W123,	10110011B, 00110011B, 11110011B
	DB	T_W123,	11001100B, 11001111B, 10001110B	;MD = 1
	DB	T_W123,	11001100B, 11001110B, 11001110B
	DB	T_W123,	11101010B, 01010110B, 11111000B	;MD = 0
	DB	T_W123,	10111111B, 11111111B, 10111110B
	DB	T_W123,	10111111B, 11111110B, 11111110B
	DB	T_W123,	11111111B, 11111110B, 11111100B
	DB	T_W123,	10000000B, 00000011B, 10000010B
	DB	T_W123,	10000000B, 00000011B, 11000011B
	DB	T_W123,	11101010B, 01010111B, 11011001B
	DB	T_KONEC

;ridici obvod prior. prerus.
;			 _   I _	 EE	  _
;			 E___NCI   ______NT    E__S___
;74414, 3214, 8214	 LAAATLN   RRRRRRLL    CRRGBBB
I74414T:	;	ZR210EKT   543210GG   NS76S321
	DB	T_VV3,	01000110B, 11111101B, 01111111B
	DB	T_NAP,	DIL24
	DB	T_O123,	11111111B, 11111111B, 11111111B
	DB	T_O3,			      10111111B
	DB	T_W123,	11111111B, 11111111B, 11111111B	;VYCHOZI STAV
	DB	T_W12,	11111111B, 11111100B		;ETLG
	DB	T_W12,	10111111B, 11111001B		;/R0
	DB	T_W12,	10110111B, 11110101B		;/R1
	DB	T_W12,	10101111B, 11101001B		;/R2
	DB	T_W12,	10100111B, 11011101B		;/R3
	DB	T_W12,	10011111B, 10111101B		;/R4
	DB	T_W12,	10010111B, 01101101B		;/R5
	DB	T_W123,	10001111B, 10111101B, 11101111B	;/R6
	DB	T_W123,	10000111B, 10110101B, 11011111B	;/R7
	DB	T_W123,	11111111B, 01101101B, 11011111B	;/ERL
	DB	T_W23,		   11111001B, 11111111B	;/INT NA /R0
	DB	T_W1,	10111101B
	DB	T_W1,	10111110B
	DB	T_W1,	10111100B
	DB	T_W12,	10111111B, 11111101B
	DB	T_W23,		   11111101B, 11110111B	;/SGS
	DB	T_W3,			      10110111B
	DB	T_W23,		   11111101B, 11110111B
	DB	T_W2,		   11111001B		;POKUS O /INT NA /R0
	DB	T_W1,	10111101B
	DB	T_W1,	10111111B
	DB	T_W12,	10110111B, 11110101B		;/INT NA /R1
	DB	T_W1,	10110101B
	DB	T_W1,	10110110B
	DB	T_W1,	10110100B
	DB	T_W12,	10110111B, 11111101B
	DB	T_W23,		   11111101B, 11110110B	;/SGS A /B1
	DB	T_W3,			      10110110B
	DB	T_W123,	10111111B, 11111101B, 11110110B
	DB	T_W12,	10110111B, 11110101B		;POKUS O /INT NA /R1
	DB	T_W1,	11111101B
	DB	T_W1,	11111111B
	DB	T_W12,	10101011B, 11101101B		;/INTE A /R2
	DB	T_W1,	10101001B
	DB	T_W1,	10101011B
	DB	T_W1,	10101111B			;/INT NA /R2
	DB	T_W1,	10101101B
	DB	T_W1,	10101110B
	DB	T_W1,	10101100B
	DB	T_W12,	10101111B, 11111101B
	DB	T_W23,		   11111101B, 11110101B	;/SGS A /B2
	DB	T_W3,			      10110101B
	DB	T_W123,	10111111B, 11111101B, 11110101B
	DB	T_W12,	10101111B, 11101101B		;POKUS O /INT NA /R2
	DB	T_W1,	10101101B
	DB	T_W1,	10101111B
	DB	T_W12,	10100111B, 11011101B		;/INT NA /R3
	DB	T_W1,	10100101B
	DB	T_W1,	10100110B
	DB	T_W1,	10100100B
	DB	T_W12,	10100111B, 11111101B
	DB	T_W23,		   11111101B, 11110011B	;/SGS A /B3
	DB	T_W3,			      10110011B
	DB	T_W123,	10111111B, 11111101B, 11110011B
	DB	T_W12,	10011111B, 10111101B		;POKUS O /INT NA /R4
	DB	T_W1,	10011101B
	DB	T_W1,	10011111B
	DB	T_W12,	10010111B, 01111101B
	DB	T_W12,	10111111B, 01111100B		;ETLG A /R5
	DB	T_W1,	10111101B
	DB	T_W1,	10111111B
	DB	T_W12,	10010111B, 01111101B		;/INT NA /R5
	DB	T_W1,	10010101B
	DB	T_W1,	10010110B
	DB	T_W1,	10010100B
	DB	T_W12,	10010111B, 11111101B
	DB	T_W23,		   11111101B, 11110000B	;/SGS A /B3, /B2, /B1
	DB	T_W3,			      10110000B	;PREUSENI ZAKAZANO
	DB	T_W123,	10111111B, 11111101B, 11110000B
	DB	T_W123,	10000111B, 00000001B, 11001111B	;POKUS O /INT
	DB	T_W1,	10000101B
	DB	T_W1,	10000111B
	DB	T_KONEC

;4bit. vysilac primac sbernice
;74416, 3216, 8216	 111000C    D333222
I74416T:	;	ZIBOIBOS   NCOBIOBI
	DB	T_VV2,	01001001B, 01001001B ;I -> B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110010B, 10111100B
	DB	T_W12,	10011110B, 10100111B
	DB	T_VV2,	01101101B, 01011011B ;B -> O
	DB	T_W12,	10111000B, 11110001B
	DB	T_W12,	11000110B, 11001111B
	DB	T_GOTO
	DW	G74426T

;4bit. invert. vysilac primac sbernice
;74426, 3226, 8226	 111000C    D333222
I74426T:	;	ZIBOIBOS   NCOBIOBI
	DB	T_VV2,	01001001B, 01001001B ;I -> B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010110B, 10101110B
	DB	T_W12,	10111010B, 10110101B
	DB	T_VV2,	01101101B, 01011011B ;B -> O
	DB	T_W12,	10101010B, 11010101B
	DB	T_W12,	11010100B, 11101011B
G74426T:DB	T_VV2,	01001001B, 01001001B ;I -> B
	DB	T_W12,	10111111B, 10110111B
	DB	T_W12,	11110111B, 10111110B
	DB	T_VV2,	01101101B, 01011011B ;B -> O
	DB	T_W12,	10111111B, 10110111B
	DB	T_W12,	11110111B, 10111110B
	DB	T_KONEC

;4x prepinac sbernice		   __		 _ _
;74442, 74440		 BCCBBCC   GGAAAASS	 GBC
I74442T:	;	Z4433221   BA123410   XXNC1SXX
	DB	T_VV3,	00000000B, 11111111B, 00010100B	;A -> B, A -> C
	DB	T_NAP,	DIL20
	DB	T_W123,	10011001B, 01101000B, 11101011B
	DB	T_W123, 11100110B, 00010100B, 11100011B
	DB	T_VV3,	01001100B, 11000011B, 00011100B	;B -> C, B -> A	
	DB	T_W123, 11100110B, 10010101B, 11100011B
	DB	T_W123, 10011001B, 00101001B, 11101011B
	DB	T_VV3,	00110011B, 11000011B, 00010100B ;C -> A, C -> B
	DB	T_W123, 11100110B, 00010110B, 11100011B
	DB	T_W123, 10011001B, 00101010B, 11101011B
	DB	T_VV3,	00000000B, 11111111B, 00010100B	;A -> B
	DB	T_W123, 10111011B, 01101000B, 11111011B
	DB	T_W123, 11110111B, 00010100B, 11110011B
	DB	T_GOSUB					;B -> C
	DW	S7444X1
	DB	T_VV3,	00110011B, 11000011B, 00011100B ;C -> A
	DB	T_W123, 11011101B, 10101010B, 11101011B
	DB	T_W123, 11101110B, 10010110B, 11111011B
	DB	T_VV3,	00000000B, 11111111B, 00010100B ;A -> C
	DB	T_W123, 11011101B, 10101000B, 11101011B
	DB	T_W123, 11101110B, 11010100B, 11101011B
	DB	T_VV3,	01001100B, 11000011B, 00011100B ;B -> A
	DB	T_W123, 10111011B, 00101001B, 11111011B
	DB	T_W123, 11110111B, 10010101B, 11110011B
	DB	T_GOSUB					;C -> B
	DW	S7444X2
G74442T:DB	T_VV3,	00101010B, 11010111B, 00010100B
	DB	T_W123, 11110111B, 00101100B, 11101111B
	DB	T_W123, 11011101B, 00111011B, 11101011B
	DB	T_W123, 11110111B, 11101100B, 11111011B
	DB	T_W123, 11011101B, 10111000B, 11111011B
	DB	T_W123, 11110111B, 01101101B, 11111011B
	DB	T_W123, 11011101B, 11111010B, 11101011B
	DB	T_W123, 11011101B, 00111000B, 11101111B
	DB	T_W123, 11110111B, 00101111B, 11101011B
	DB	T_W123, 11011101B, 11111000B, 11111011B
	DB	T_W123,	11110111B, 10101100B, 11111011B
	DB	T_W123, 11011101B, 01111001B, 11111011B
	DB	T_W123, 11110111B, 11101110B, 11101011B
	DB	T_VV3,	01010101B, 11101011B, 00011100B
	DB	T_W123, 10111011B, 00110100B, 11100111B
	DB	T_W123, 11101110B, 00011111B, 11101011B
	DB	T_W123, 10111011B, 11110100B, 11110011B
	DB	T_W123, 11101110B, 10011100B, 11111011B
	DB	T_W123, 10111011B, 01110101B, 11110011B
	DB	T_W123, 11101110B, 11011110B, 11101011B
	DB	T_W123, 11101110B, 00111100B, 11101111B
	DB	T_W123, 10111011B, 00110111B, 11100011B
	DB	T_W123, 11101110B, 11011100B, 11111011B
	DB	T_W123,	10111011B, 10110100B, 11110011B
	DB	T_W123, 11101110B, 01011101B, 11111011B
	DB	T_W123, 10111011B, 11110110B, 11100011B
	DB	T_KONEC

;4x invert. prepinac sbernice	   __		 _ _
;74443, 74441		 BCCBBCC   GGAAAASS	 GBC
I74443T:	;	Z4433221   BA123410   XXNC1SXX
	DB	T_GOSUB					;/A -> B, /A -> C
	DW	S7444X3
	DB	T_VV3,	01001100B, 11000011B, 00011100B	;/B -> C, /B -> A	
	DB	T_W123, 10101010B, 10010101B, 11101011B
	DB	T_W123, 11010101B, 00101001B, 11100011B
	DB	T_VV3,	00110011B, 11000011B, 00010100B ;/C -> A, /C -> B
	DB	T_W123, 11010101B, 00010110B, 11100011B
	DB	T_W123, 10101010B, 00101010B, 11101011B
	DB	T_GOSUB					;/A -> B
	DW	S7444X4
	DB	T_VV3,	01001100B, 11000011B, 00011100B ;/B -> C
	DB	T_W123, 11010101B, 11111101B, 11100011B
	DB	T_W123, 10101010B, 01111101B, 11101011B
	DB	T_GOSUB					;/C -> A
	DW	S7444X5
	DB	T_GOSUB					;/A -> C
	DW	S7444X6					;/B -> A
	DB	T_VV3,	00110011B, 11000011B, 00010100B	;/C -> B
	DB	T_W123, 10101010B, 01111110B, 11101011B
	DB	T_W123, 11010101B, 01111110B, 11110011B
	DB	T_GOTO
	DW	G74442T

;4x invert./neinvert. prepinac sbernice
;				   __		 _ _
;74444, 74448		 BCCBBCC   GGAAAASS	 GBC
I74444T:	;	Z4433221   BA123410   XXNC1SXX
	DB	T_GOSUB					;/A -> B, /A -> C
	DW	S7444X3
	DB	T_VV3,	01001100B, 11000011B, 00011100B	;B -> C, /B -> A	
	DB	T_W123, 11100110B, 10101001B, 11100011B
	DB	T_W123, 10011001B, 00010101B, 11101011B
	DB	T_VV3,	00110011B, 11000011B, 00010100B ;/C -> A, C -> B
	DB	T_W123, 11100110B, 00101010B, 11100011B
	DB	T_W123, 10011001B, 00010110B, 11101011B
	DB	T_GOSUB					;/A -> B
	DW	S7444X4
	DB	T_GOSUB					;B -> C
	DW	S7444X1
	DB	T_GOSUB					;/C -> A
	DW	S7444X5
	DB	T_GOSUB					;/A -> C
	DW	S7444X6					;/B -> A
	DB	T_GOSUB					;C -> B
	DW	S7444X2
	DB	T_GOTO
	DW	G74442T

;------------------------------------------------------
;SPOLECNE BLOKY PRO 74440 AZ 74444 A 74448

S7444X1:DB	T_VV3,	01001100B, 11000011B, 00011100B ;B -> C
	DB	T_W123, 10011001B, 11111101B, 11101011B
	DB	T_W123, 11100110B, 01111101B, 11100011B
	DB	T_RET

S7444X2:DB	T_VV3,	00110011B, 11000011B, 00010100B	;C -> B
	DB	T_W123, 10011001B, 01111110B, 11101011B
	DB	T_W123, 11100110B, 01111110B, 11110011B
	DB	T_RET

S7444X3:DB	T_VV3,	00000000B, 11111111B, 00010100B	;/A -> B, /A -> C
	DB	T_NAP,	DIL20
	DB	T_W123,	10011001B, 01010100B, 11101011B
	DB	T_W123, 11100110B, 00101000B, 11100011B
	DB	T_RET

S7444X4:DB	T_VV3,	00000000B, 11111111B, 00010100B	;/A -> B
	DB	T_W123, 10111011B, 01010100B, 11111011B
	DB	T_W123, 11110111B, 00101000B, 11110011B
	DB	T_RET

S7444X5:DB	T_VV3,	00110011B, 11000011B, 00011100B ;/C -> A
	DB	T_W123, 11101110B, 10101010B, 11101011B
	DB	T_W123, 11011101B, 10010110B, 11111011B
	DB	T_RET

S7444X6:DB	T_VV3,	00000000B, 11111111B, 00010100B ;/A -> C
	DB	T_W123, 11011101B, 10010100B, 11101011B
	DB	T_W123, 11101110B, 11101000B, 11101011B
	DB	T_VV3,	01001100B, 11000011B, 00011100B ;/B -> A
	DB	T_W123, 11110111B, 00101001B, 11110011B
	DB	T_W123, 10111011B, 10010101B, 11111011B
	DB	T_RET
;------------------------------------------------------

;8bit. synchroni BIN citac		 __    _
;74461			 1765432   234567CO    C01100C
I74461T:	;	ZIDDDDDD   QQQQQQOE   NIQQDDIK
	DB	T_VV3,	01111111B, 00000001B, 01001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 11111111B, 10110100B	;OE
	DB	T_W123,	10101010B, 00000010B, 10000101B	;RESET
	DB	T_W123,	11101010B, 00000010B, 10000100B	;
	DB	T_W123,	11101010B, 01010110B, 10100101B	;NASTAV
	DB	T_W123,	11010101B, 01010110B, 10101000B	;
	DB	T_W123,	11010101B, 10101010B, 10011001B	;NASTAV
	DB	T_W123,	10000000B, 10101010B, 10010010B	;
	DB	T_W123,	10000000B, 10101010B, 10010011B	;NIC
	DB	T_W123,	11000000B, 10101010B, 11010010B	;
	DB	T_W123,	11000000B, 10101010B, 11010011B	;NIC
	DB	T_W13,	10000000B,	      10010000B
	DB	T_W23,		   00000010B, 10000001B	;RESET
	DB	T_W13,	11000000B,	      10000010B
	DB	T_W23,		   00000010B, 10100011B	;1
	DB	T_W3,			      10100010B
	DB	T_W23,		   00000010B, 10010011B	;2
	DB	T_W3,			      10010010B
	DB	T_W23,		   00000010B, 10110011B	;3
	DB	T_W3,			      10110010B
	DB	T_W23,		   10000010B, 10000011B	;4
	DB	T_W3,			      10000010B
	DB	T_W23,		   10000010B, 10100011B	;5
	DB	T_W3,			      10100010B
	DB	T_W23,		   10000010B, 10010011B	;6
	DB	T_W3,			      10010010B
	DB	T_W23,		   10000010B, 10110011B	;7
	DB	T_W3,			      10110010B
	DB	T_W23,		   01000010B, 10000011B	;8
	DB	T_W3,			      10000010B
	DB	T_W23,		   01000010B, 10100011B	;9
	DB	T_W3,			      10100010B
	DB	T_W23,		   01000010B, 10010011B	;10
	DB	T_W3,			      10010010B
	DB	T_W23,		   01000010B, 10110011B	;11
	DB	T_W3,			      10110010B
	DB	T_W23,		   11000010B, 10000011B	;12
	DB	T_W3,			      10000010B
	DB	T_W23,		   11000010B, 10100011B	;13
	DB	T_W3,			      10100010B
	DB	T_W23,		   11000010B, 10010011B	;14
	DB	T_W3,			      10010010B
	DB	T_W23,		   11000010B, 10110011B	;15
	DB	T_W3,			      10110010B
	DB	T_W23,		   00100010B, 10000011B	;16
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00010010B, 10000011B	;32
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00110010B, 10000011B	;48
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00001010B, 10000011B	;64
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00101010B, 10000011B	;80
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00011010B, 10000011B	;96
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00111010B, 10000011B	;112
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00000110B, 10000011B	;128
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00100110B, 10000011B	;144
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00010110B, 10000011B	;160
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00110110B, 10000011B	;176
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00001110B, 10000011B	;192
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00101110B, 10000011B	;208
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00011110B, 10000011B	;224
	DB	T_GOSUB
	DW	G74461A
	DB	T_W23,		   00111110B, 10000011B	;240
	DB	T_GOSUB
	DW	G74461B
	DB	T_W23,		   11111110B, 10010011B	;254
	DB	T_W23,		   11111110B, 10010010B
	DB	T_W23,		   11111100B, 10110011B	;255
	DB	T_W23,		   11111100B, 10110010B
	DB	T_W23,		   00000010B, 10000011B	;0
	DB	T_W3,			      10000010B
	DB	T_W23,		   00000010B, 10100011B	;1
	DB	T_W23,		   11111111B, 10110010B
	DB	T_W23,		   11111111B, 10110011B	;2
	DB	T_W23,		   00000010B, 10010010B
	DB	T_W23,		   00000010B, 10110011B	;3
	DB	T_KONEC

;UDELA 15 PULZU
G74461A:DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;1
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;2
G74461B:DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;3
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;4
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;5
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;6
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;7
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;8
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;9
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;10
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;11
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;12
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;13
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;14
	DB	T_O3,			      10000010B
	DB	T_O3,			      10000011B	;15
	DB	T_O3,			      10000010B
	DB	T_RET

;8X stradac budic sbernice		  S
;74482, 8282		 OIIIIII   OOOOOOOT	 OII
I74482T:	;	ZE765432   1234567B   XXN010XX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11010101B, 11111111B, 11110111B
	DB	T_W123,	10010101B, 01010100B, 11110111B
	DB	T_W123,	10101010B, 01010100B, 11111011B
	DB	T_W123,	11101010B, 11111111B, 11111011B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	10111111B, 10101010B, 11101111B
	DB	T_KONEC

;8X stradac invert. budic sbernice	  S
;74483, 8283		 OIIIIII   OOOOOOOT	 OII
I74483T:	;	ZE765432   1234567B   XXN010XX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	11010101B, 11111111B, 11110111B
	DB	T_W123,	10010101B, 10101010B, 11100111B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11101010B, 11111111B, 11111011B
	DB	T_W123,	10101010B, 01010100B, 11111011B
	DB	T_W123,	10111111B, 01010100B, 11111111B
	DB	T_KONEC

;8x vysilac/prijimac sbernice
;74486, 8286		 OAAAAAA   BBBBBBB	 BAA
I74486T:	;	ZE765432   1234567T   XXN010XX
	DB	T_VV3,	01111111B, 00000001B, 00001100B	;A->B
	DB	T_NAP,	DIL20
	DB	T_W123,	10010101B, 01010101B, 11110111B
	DB	T_W123,	10101010B, 10101011B, 11101011B
	DB	T_W123,	11000000B, 11111111B, 11110011B
	DB	T_VV3,	01000000B, 11111111B, 00010000B	;B->A
	DB	T_W123,	10010101B, 01010100B, 11110111B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11111111B, 00000000B, 11101111B
	DB	T_KONEC

;8x invert. vysilac/prijimac sbernice
;74487, 8287		 OAAAAAA   BBBBBBB	 BAA
I74487T:	;	ZE765432   1234567T   XXN010XX
	DB	T_VV3,	01111111B, 00000001B, 00001100B	;A->B
	DB	T_NAP,	DIL20
	DB	T_W123,	10010101B, 10101011B, 11100111B
	DB	T_W123,	10101010B, 01010101B, 11111011B
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_VV3,	01000000B, 11111111B, 00010000B	;B->A
	DB	T_W123,	10101010B, 01010100B, 11111011B
	DB	T_W123,	10010101B, 10101010B, 11100111B
	DB	T_W123,	11111111B, 11111110B, 11111111B
	DB	T_KONEC

;8bit. komparator s uvolnenim			 P
;74518			 QPQPQPQ   QPQPQPQP	 =P_
I74518T:	;	Z3322110   77665544   XXNQ0GXX
	DB	T_VV3,	01111111B, 11111111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11010101B, 01010101B, 11100011B
	DB	T_W123, 10011001B, 00110011B, 11111011B
	DB	T_W123, 11100110B, 11001100B, 11110011B
	DB	T_W123, 10011001B, 00110011B, 11111111B
	DB	T_W123, 11100110B, 11001100B, 11110111B
	DB	T_KONEC

;8bit. invert. komparator s uvolnenim		 _
						 P
;74520, 74521, 74688	 QPQPQPQ   QPQPQPQP	 =P_
I74521T:	;	Z3322110   77665544   XXNQ0GXX
	DB	T_VV3,	01111111B, 11111111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 10101010B, 11111011B
	DB	T_W123,	11010101B, 01010101B, 11110011B
	DB	T_W123, 10011001B, 00110011B, 11101011B
	DB	T_W123, 11100110B, 11001100B, 11100011B
	DB	T_W123, 10011001B, 00110011B, 11111111B
	DB	T_W123, 11100110B, 11001100B, 11110111B
	DB	T_KONEC

;8bit. invert. transparent. reg. D
;			 _  __	     __  _	 __
;74533			 3322110   7665544       70O
;I74533T:	;	ZQDDQQDD   DDQQDDQE   XXNQQEXX
;	DB	T_VV3,	00110011B, 11001101B, 00000100B
;	DB	T_NAP,	DIL20
;	DB	T_W123,	10101010B, 10101011B, 11101011B	;TRANSPARENTNI
;	DB	T_W123,	11010101B, 01010101B, 11110011B
;	DB	T_O2,		   01010100B
;	DB	T_W123,	11101110B, 10111010B, 11101011B
;	DB	T_W123,	11100110B, 10011001B, 11110011B
;	DB	T_O2,		   10011000B
;	DB	T_W123,	11010101B, 01010100B, 11110011B
;	DB	T_W123,	10011001B, 01100111B, 11101011B
;	DB	T_W123,	10000000B, 00000001B, 11100011B
;	DB	T_W123,	11001100B, 00110011B, 11111111B
;	DB	T_KONEC
;	DB	T_NIC

;8bit. invert. reg. D s hradlovanim
;74534			 3322110   7665544       70O
I74534T:	;	ZQDDQQDD   DDQQDDQC   XXNQQEXX
	DB	T_VV3,	00110011B, 11001101B, 00000100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10110011B, 11001100B, 11100011B
	DB	T_W123,	10110011B, 11001101B, 11100011B
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_W123,	10100010B, 10001000B, 11100011B
	DB	T_W123,	10101010B, 10101011B, 11101011B
	DB	T_W123,	10011001B, 01100110B, 11101011B
	DB	T_W123,	11010101B, 01010101B, 11110011B
	DB	T_KONEC

;8bit. invert. budic sbernice	   ________	 _ _
;74540			 AAAAAAA   YYYYYYYY	 GAG
I74540T:	;	Z8765432   12345678   XXN211XX
	DB	T_VV3,	01111111B, 00000000B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 01010101B, 11101011B
	DB	T_W123,	11010101B, 10101010B, 11100011B
G74540T:DB	T_W23,		   11111111B, 11110111B
	DB	T_W23,		   11111111B, 11100111B
	DB	T_W23,		   11111111B, 11110011B
	DB	T_W123,	10101010B, 11111111B, 11111111B
	DB	T_W23,		   11111111B, 11101111B
	DB	T_W23,		   11111111B, 11111011B
	DB	T_KONEC

;8bit. budic sbernice
;74541
I74541T:	;	Z8765432   12345678   XXN211XX
	DB	T_VV3,	01111111B, 00000000B, 00011100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W123,	11010101B, 01010101B, 11100011B
	DB	T_GOTO
	DW	G74540T

;8bit. invert. transparent. reg. D _______	 _ _
;74563, 74580		 AAAAAAA   YYYYYYYL	 YAO
I74563T:	;	Z7654321   1234567E   XXN00EXX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 10101011B, 11101011B
	DB	T_W123,	11010101B, 01010101B, 11110011B
	DB	T_W2,		   01010100B
	DB	T_W123,	10101010B, 01010100B, 11111011B
	DB	T_W23,		   10101011B, 11101011B
	DB	T_W2,		   10101010B
	DB	T_W123,	11010101B, 10101010B, 11100011B
	DB	T_W23,		   01010101B, 11110011B
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_W23,		   11111110B, 11111111B
	DB	T_KONEC

;8bit. invert. reg. D s hradlovanim_______	 _
;74564, 74576		 AAAAAAA   YYYYYYYC	 YAO
I74564T:	;	Z7654321   1234567K   XXN00EXX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10101010B, 10101010B, 11101011B
	DB	T_W23,		   10101011B, 11101011B
	DB	T_W123,	11010101B, 10101010B, 11100011B
	DB	T_W23,		   01010101B, 11110011B
	DB	T_W123,	11111111B, 11111110B, 11110111B
	DB	T_W23,		   11111111B, 11110111B
	DB	T_KONEC

;PROM 512x4bity
;74571			 2103456    78_1234
I74571T:	;	ZAAAAAAA   NAASQQQQ
	DB	T_VV2,	01111111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10111111B
	DB	T_W12,	11010101B, 11011111B
	DB	T_PROG
	DW	P74571
	DB	T_KONEC

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
P74571:	MVI	C,10000000B	;STAV NA PORTU2
	MOV	B,C		;POCITALO ADRES NA PORTU1
	CALL	P74287A
	MVI	C,11000000B	;STAV NA PORTU2
	MVI	B,10000000B	;POCITALO ADRES NA PORTU1
	CALL	P74287A
	MVI	C,10100000B	;STAV NA PORTU2
	MVI	B,10000000B	;POCITALO ADRES NA PORTU1
	CALL	P74287A
	MVI	C,11100000B	;STAV NA PORTU2
	MVI	B,10000000B	;POCITALO ADRES NA PORTU1
	CALL	P74287A		;NUTNO KVULI ROVNANI ZASOBNIKU PRI CHYBE
	RET

;8bit. transparent. reg. D			   _
;74573			 AAAAAAA   YYYYYYYL	 YAO
I74573T:	;	Z7654321   1234567E   XXN00EXX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 01010101B, 11111011B
	DB	T_W123,	11010101B, 10101011B, 11100011B
	DB	T_W2,		   10101010B
	DB	T_W123,	10101010B, 10101010B, 11101011B
	DB	T_W23,		   01010101B, 11111011B
	DB	T_W2,		   01010100B
	DB	T_W123,	11010101B, 01010100B, 11110011B
	DB	T_W23,		   10101011B, 11100011B
	DB	T_W123,	10000000B, 11111111B, 11110111B
	DB	T_W23,		   11111110B, 11110111B
	DB	T_KONEC

;8bit. reg. D s hradlovanim
;74574			 AAAAAAA   YYYYYYYC	 YAO
I74574T:	;	Z7654321   1234567K   XXN00EXX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10101010B, 01010100B, 11111011B
	DB	T_W23,		   01010101B, 11111011B
	DB	T_W123,	11010101B, 01010100B, 11110011B
	DB	T_W23,		   10101011B, 11100011B
	DB	T_W123,	10000000B, 11111110B, 11110111B
	DB	T_W23,		   11111111B, 11110111B
	DB	T_KONEC

;8bit. posuv. reg. s vystup. stradacem ser. vstup a para. vystup
;				      _PP_'
;74595, 74596		 QQQQQQQ    QDOCCRQ
I74595T:	;	Z7654321   N0SETHM7
	DB	T_VV2,	00000000B, 00111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11111111B, 11110100B
	DB	T_W2,		   10101000B
	DB	T_W12,	10000000B, 10100010B
	DB	T_W2,		   10100110B	;10000000
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000110B	;01000000
	DB	T_W2,		   10100010B
	DB	T_W2,		   10100110B	;10100000
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000110B	;01010000
	DB	T_W2,		   10100010B
	DB	T_W2,		   10100110B	;10101000
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000110B	;01010100
	DB	T_W2,		   10100010B
	DB	T_W2,		   10100110B	;10101010
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000111B	;01010101
	DB	T_W12,	10000000B, 10100011B
	DB	T_W12,	11010101B, 10101011B
	DB	T_W12,	11111111B, 11110110B	;10101010
	DB	T_W12,	10101010B, 11101010B
	DB	T_W12,	10101010B, 11100111B	;11010101
	DB	T_W12,	11010101B, 11001011B
	DB	T_W12,	11010101B, 11000110B	;01101010
	DB	T_W12,	10101011B, 10001010B
	DB	T_W12,	11111111B, 11010111B	;00110101
	DB	T_W12,	11010110B, 10101011B
	DB	T_W12,	11010110B, 10100110B	;10011010
	DB	T_W12,	10101100B, 11101010B
	DB	T_W12,	10101100B, 11100111B	;11001101
	DB	T_W12,	11011001B, 11001011B
	DB	T_W12,	11011001B, 11000110B	;01100110
	DB	T_W12,	10110011B, 10001010B
	DB	T_W12,	10110011B, 10000111B	;00110011
	DB	T_W12,	11100110B, 10101011B
	DB	T_W12,	11100110B, 10100111B	;10011001
	DB	T_W12,	11001100B, 11101011B
	DB	T_KONEC

;8bit. invert. vysilac/primac sbrnice
;74640; 74642		 8765432   12345678      _1
I74640T:	;	ZAAAAAAA   BBBBBBBB   XXNGADXX
	DB	T_VV3,	00000000B, 11111111B, 00010100B	;/B->A
	DB	T_NAP,	DIL20
	DB	T_W123,	10000000B, 11111111B, 11100011B
	DB	T_W123,	11111111B, 00000000B, 11101011B
	DB	T_W123,	11111111B, 01010101B, 11111011B
	DB	T_W123,	11111111B, 10101010B, 11111011B
	DB	T_W123,	10101010B, 01010101B, 11101011B
	DB	T_W123,	11010101B, 10101010B, 11100011B
	DB	T_W123,	11000000B, 11111110B, 11100011B
	DB	T_W123,	10100000B, 11111101B, 11100011B
	DB	T_W123,	10010000B, 11111011B, 11100011B
	DB	T_W123,	10001000B, 11110111B, 11100011B
	DB	T_W123,	10000100B, 11101111B, 11100011B
	DB	T_W123,	10000010B, 11011111B, 11100011B
	DB	T_W123,	10000001B, 10111111B, 11100011B
	DB	T_W123,	10000000B, 01111111B, 11101011B
	DB	T_GOSUB
	DW	S74640T
	DB	T_KONEC

;------------------------------------------------------
;spolecna cast pro: 74640; 74642, 74643, 74644

S74640T:DB	T_VV3,	01111111B, 00000000B, 00011100B	;/A->B
	DB	T_W123,	10000000B, 11111111B, 11100111B
	DB	T_W123,	11111111B, 00000000B, 11101111B
	DB	T_W123,	10101010B, 01010101B, 11101111B
	DB	T_W123,	11010101B, 10101010B, 11100111B
	DB	T_W123,	10101010B, 11111111B, 11111111B
	DB	T_W123,	11010101B, 11111111B, 11110111B
	DB	T_W123,	11111111B, 10000000B, 11100111B
	DB	T_W123,	11111110B, 01000000B, 11101111B
	DB	T_W123,	11111101B, 00100000B, 11101111B
	DB	T_W123,	11111011B, 00010000B, 11101111B
	DB	T_W123,	11110111B, 00001000B, 11101111B
	DB	T_W123,	11101111B, 00000100B, 11101111B
	DB	T_W123,	11011111B, 00000010B, 11101111B
	DB	T_W123,	10111111B, 00000001B, 11101111B
	DB	T_RET

;8bit. invert./neinvert. vysilac/primac sbrnice
;74643, 74644		 8765432   12345678      _1
I74643T:	;	ZAAAAAAA   BBBBBBBB   XXNGADXX
	DB	T_GOSUB
	DW	S74245T
	DB	T_GOSUB
	DW	S74640T
	DB	T_KONEC

;8bit. vysilac s obousmer. reg.		       CS  DSC
;74646, 74647		 AAAAAAA   BBBBBBBB    BB_AIAA
I74646T:	;	Z8765432   12345678   NAAG1RBB
	DB	T_VV3,	00000000B, 11111111B, 01110111B	;B->A
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 10101010B, 11001010B
	DB	T_W123,	11010101B, 01010101B, 11000001B
	DB	T_W123,	11111111B, 00000000B, 10011010B	;/G = 1
	DB	T_VV3,	01111111B, 00000000B, 01111111B	;A->B
	DB	T_W123,	10101010B, 10101010B, 10001100B
	DB	T_W123,	11010101B, 01010101B, 11000100B
	DB	T_W123,	10000000B, 11111111B, 10010100B	;/G = 1
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	10101010B, 01010101B, 10111010B
	DB	T_W3,			      11011001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	11010101B, 11111111B, 10100010B	;ctem A z B
	DB	T_W123,	11111111B, 10101010B, 10001110B	;ctem B z A
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	11010101B, 10101010B, 10110010B
	DB	T_W3,			      11010001B
	DB	T_VV3,	00000000B, 00000000B, 01111111B	;precist A,B
	DB	T_W123,	10101010B, 11111111B, 10101010B	;ctem A z B
	DB	T_W123,	11111111B, 01010101B, 10000110B	;ctem B z A
	DB	T_KONEC

;8bit. invert. vysilac s obousmer. reg.	       CS  DSC
;74648, 74649		 AAAAAAA   BBBBBBBB    BB_AIAA
I74648T:	;	Z8765432   12345678   NAAG1RBB
	DB	T_VV3,	00000000B, 11111111B, 01110111B	;B->A
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 01010101B, 11001010B
	DB	T_W123,	11010101B, 10101010B, 11000001B
	DB	T_W123,	11111111B, 11111111B, 10011010B	;/G = 1
	DB	T_VV3,	01111111B, 00000000B, 01111111B	;A->B
	DB	T_W123,	10101010B, 01010101B, 10001100B
	DB	T_W123,	11010101B, 10101010B, 11000100B
	DB	T_W123,	11111111B, 11111111B, 10011100B	;/G = 1
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	11010101B, 10101010B, 10110010B
	DB	T_W3,			      11010001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	11010101B, 11111111B, 10100010B	;ctem A z B
	DB	T_W123,	11111111B, 10101010B, 10001110B	;ctem B z A
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	10101010B, 01010101B, 10111010B
	DB	T_W3,			      11011001B
	DB	T_VV3,	00000000B, 00000000B, 01111111B	;precist A,B
	DB	T_W123,	10101010B, 11111111B, 10101010B	;ctem A z B
	DB	T_W123,	11111111B, 01010101B, 10000110B	;ctem B z A
	DB	T_KONEC

;8bit. vysilac/primac sbrnice s reg.		 _
;					       CSG GSC
;74652, 74654		 AAAAAAA   BBBBBBBB    BBBAAAA
I74652T:	;	Z8765432   12345678   NAAA1BBB
	DB	T_VV3,	00000000B, 11111111B, 01110111B	;B->A
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 10101010B, 11001010B
	DB	T_W123,	11010101B, 01010101B, 11000010B
	DB	T_W123,	11111111B, 00000000B, 10011010B	;/GBA = 1
	DB	T_VV3,	01111111B, 00000000B, 01111111B	;A->B
	DB	T_W123,	10101010B, 10101010B, 10011100B
	DB	T_W123,	11010101B, 01010101B, 10010100B
	DB	T_W123,	10000000B, 11111111B, 10010000B	;GAB = 0
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	10101010B, 01010101B, 10111010B
	DB	T_W3,			      11011001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	11010101B, 10101010B, 10100110B
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	11010101B, 10101010B, 10110010B
	DB	T_W3,			      11010001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	10101010B, 01010101B, 10101110B
	DB	T_KONEC

;8bit. invert. vysilac/primac sbrnice s reg.	 _
;					       CSG GSC
;74653, 74651		 AAAAAAA   BBBBBBBB    BBBAAAA
I74653T:	;	Z8765432   12345678   NAAA1BBB
	DB	T_VV3,	00000000B, 11111111B, 01110111B	;B->A
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 01010101B, 11001010B
	DB	T_W123,	11010101B, 10101010B, 11000010B
	DB	T_W123,	11111111B, 11111111B, 10011010B	;/GBA = 1
	DB	T_VV3,	01111111B, 00000000B, 01111111B	;A->B
	DB	T_W123,	10101010B, 01010101B, 10011100B
	DB	T_W123,	11010101B, 10101010B, 10010100B
	DB	T_W123,	11111111B, 11111111B, 10010000B	;GAB = 0
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	10101010B, 10101010B, 10111010B
	DB	T_W3,			      11011001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	11010101B, 01010101B, 10100110B
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;zachyt A,B
	DB	T_W123,	11010101B, 01010101B, 10110010B
	DB	T_W3,			      11010001B
	DB	T_VV3,	00000000B, 00000000B, 01110111B	;precist A,B
	DB	T_W123,	10101010B, 10101010B, 10101110B
	DB	T_KONEC

;16bit posuvny registr s par vstupem a reg
;			      S
;			      E
;			      R			  _
;			      /M		  RR
;			      QO   YYY	       YYYT/C_
;74673			 YYYYY1D   111YYYYY    111R_LC
I74673T:	;	Z432105E   21098765   N543RWKS
	DB	T_NIC
;		        111	   21111111   2222
;		        21098765   09876543   43214321
;	DB	T_VV3,	00000011B, 00000000B, 00001111B
;	DB	T_NAP,	DIL24
;	DB	T_W123,	10000010B, 00000000B, 10000001B
;	DB	T_W123,	10000010B, 00000000B, 10000000B	;;
;	DB	T_O3,			      10001000B
;	DB	T_O3,			      10001010B	;1-0
;
;	DB	T_O3,			      10001000B
;	DB	T_W123,	10000111B, 00000000B, 10001000B
;
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;01-1
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;101-2
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;0101-3
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;10101-4
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;010101-5
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;1010101-6
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;01010101-7
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;101010101-8
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;0101010101-9
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;10101010101-10
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;010101010101-11
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;1010101010101-12
;	DB	T_O13,	10000000B,	      10001000B
;	DB	T_O3,			      10001010B	;01010101010101-13
;	DB	T_O13,	10000010B,	      10001000B
;	DB	T_O3,			      10001010B	;101010101010101-14
;
;	DB	T_W123,	11010101B, 10101010B, 10101000B
;	DB	T_O13,	10000000B,	      10001010B	;0101010101010101-15
;	DB	T_W123,	10101011B, 01010101B, 11011000B
;
;	DB	T_KONEC

;16bit posuvny registr s par. vstupem
;74674
I74674T:
	DB	T_NIC

;sync. program. BCD citac s R a mux. vystup. reg
;			  _		_	   _
;			  R		L _	   C
;			 RCE	       EO C	 RCC
;74690			 CLN	   ABCDNA_/	 CCL
I74690T:	;	ZKRPDCBA   QQQQTDGR   XXNOKRXX
	DB	T_GOSUB
	DW	G7469X1
	DB	T_GOSUB
	DW	G7469X3
G7469X4:DB	T_W123,	10110000B, 10011100B, 11111111B	;9
	DB	T_W3,			      11110111B
G7469X5:DB	T_W23,		   00001100B, 11101111B	;0
	DB	T_W23,		   00011101B, 11100111B	;CR 8
	DB	T_W23,		   00001000B, 11101111B	;0
	DB	T_W3,			      11100111B
	DB	T_W123,	10100000B, 00001100B, 11101111B	;0
	DB	T_W3,			      11100111B
	DB	T_W23,		   00001000B, 11101111B	;0
	DB	T_KONEC

;sync. program. BIN citac s R a mux. vystup. reg.
;			  _		_	   _
;			  R		L _	   C
;			 RCE	       EO C	 RCC
;74691			 CLN	   ABCDNA_/	 CCL
I74691T:	;	ZKRPDCBA   QQQQTDGR   XXNOKRXX
	DB	T_GOSUB
	DW	G7469X1
	DB	T_GOSUB
	DW	G7469X3
G7469X6:DB	T_W123,	10110000B, 10011100B, 11101111B	;9
	DB	T_W3,			      11100111B
	DB	T_W23,		   01011100B, 11101111B	;A
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   11011100B, 11101111B	;B
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   00111100B, 11101111B	;C
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   10111100B, 11101111B	;D
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   01111100B, 11101111B	;E
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   11111100B, 11111111B	;F
	DB	T_W3,		   	      11110111B
	DB	T_GOTO
	DW	G7469X5

;sync. program. BCD citac se sinc. R a mux. vystup. reg.
;			  _		_	   _
;			  R		L _	   C
;			 RCE	       EO C	 RCC
;74692			 CLN	   ABCDNA_/	 CCL
I74692T:	;	ZKRPDCBA   QQQQTDGR   XXNOKRXX
	DB	T_GOSUB
	DW	G7469X2
	DB	T_GOSUB
	DW	G7469X3
	DB	T_GOTO
	DW	G7469X4

;sync. program. BIN citac se sinc, R a mux. vystup. reg.
;			  _		_	   _
;			  R		L _	   C
;			 RCE	       EO C	 RCC
;74693			 CLN	   ABCDNA_/	 CCL
I74693T:	;	ZKRPDCBA   QQQQTDGR   XXNOKRXX
	DB	T_GOSUB
	DW	G7469X2
	DB	T_GOSUB
	DW	G7469X3
	DB	T_GOTO
	DW	G7469X6

;------------------------------------------------------
;spolecna cast pro: 74690, 74691 74692, 74693

G7469X1:DB	T_VV3,	01111111B, 00001111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10110101B, 11111010B, 11110111B
	DB	T_W23,		   10101000B, 11101111B	;LOAD
	DB	T_W123,	10111010B, 11111010B, 11100111B
	DB	T_W23,		   01010000B, 11101111B	;LOAD
	DB	T_W123,	10110101B, 00001100B, 11101011B	;RESET
	DB	T_W123,	11010101B, 00001101B, 11100111B	;RESET REGISTR
	DB	T_RET

G7469X2:DB	T_VV3,	01111111B, 00001111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10110101B, 11111010B, 11110111B
	DB	T_W23,		   10101000B, 11101111B	;LOAD
	DB	T_W123,	10111010B, 11111010B, 11100111B
	DB	T_W23,		   01010000B, 11101111B	;LOAD
	DB	T_W23,		   01011100B, 11100011B
	DB	T_W123,	10110101B, 00001100B, 11101011B	;RESET SINC
	DB	T_W123,	11010101B, 00001101B, 11100111B	;RESET REGISTR
	DB	T_RET

G7469X3:DB	T_W123,	10110000B, 10001100B, 11101111B	;1
	DB	T_W13,	11110000B,	      11100111B	;ZR 1
	DB	T_W123,	10110000B, 01001100B, 11101111B	;2
	DB	T_W23,		   10001101B, 11100111B	;CR 1
	DB	T_W1,	11110000B			;ZR 2
	DB	T_W123,	10110000B, 11001100B, 11101111B	;3
	DB	T_W23,		   01001101B, 11100111B	;CR 2
	DB	T_W23,		   00101100B, 11101111B	;4
	DB	T_W13,	11110000B,	      11100111B	;ZR 4
	DB	T_W123,	10110000B, 10101100B, 11101111B	;5
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   01101100B, 11101111B	;6
	DB	T_W3,			      11100111B
	DB	T_W23,		   11101100B, 11101111B	;7
	DB	T_W3,		   	      11100111B
	DB	T_W23,		   00011100B, 11101111B	;8
	DB	T_W23,		   00101101B, 11100111B	;CR 4
	DB	T_W1,	11110000B			;ZR 8
	DB	T_RET

;sync. obousmer. BCD citac program. a mux. vystup. reg.
;			  _		_
;			  C_	       _L _	 _ _
;			 RCE	       EO C	 RCD
;74696			 CLN	   ABCDNA_/	 CC/
I74696T:	;	ZKRPDCBA   QQQQTDGR   XXNOKUXX
	DB	T_GOSUB
	DW	G7469Y2
	DB	T_W13,	10100000B,	      11100011B
	DB	T_GOSUB
	DW	G7469Y4
	DB	T_GOSUB
	DW	G7469Y7
	DB	T_GOSUB
	DW	G7469Y8

G7469Y1:DB	T_W23,		   10010100B, 11101111B	;9
G7469Y0:DB	T_W3,			      11100111B
	DB	T_W23,		   00000100B, 11111111B	;0
	DB	T_W3,			      11110111B
	DB	T_W3,			      11110111B
	DB	T_W23,		   00001100B, 11111111B	;0
	DB	T_W3,			      11110111B
	DB	T_W123,	10110000B, 00001100B, 11111111B	;0
	DB	T_W3,			      11110111B
	DB	T_W23,		   00000100B, 11111111B	;0
	DB	T_W3,			      11100011B
	DB	T_W23,		   00001100B, 11111011B	;0
	DB	T_W3,			      11110011B
	DB	T_W123,	10110000B, 00001100B, 11111011B	;0
	DB	T_W3,			      11110011B
	DB	T_W23,		   00000100B, 11101011B	;0
	DB	T_W3,			      11100011B
	DB	T_KONEC

;sync. obousmer. BIN citac program. a mux. vystup. reg.
;			  _		_
;			  C_	       _L _	 _ _
;			 RCE	       EO C	 RCD
;74697			 CLN	   ABCDNA_/	 CC/
I74697T:	;	ZKRPDCBA   QQQQTDGR   XXNOKUXX
	DB	T_GOSUB
	DW	G7469Y2
	DB	T_W13,	10100000B,	      11100011B
	DB	T_GOSUB
	DW	G7469Y6
	DB	T_GOSUB
	DW	G7469Y4
	DB	T_GOSUB
	DW	G7469Y9
	DB	T_GOSUB
	DW	G7469Y8


G7469Y5:DB	T_W23,		   10010100B, 11111111B	;9
	DB	T_W3,			      11110111B
	DB	T_W23,		   01010100B, 11111111B	;A
	DB	T_W3,			      11110111B
	DB	T_W23,		   11010100B, 11111111B	;B
	DB	T_W3,			      11110111B
	DB	T_W23,		   00110100B, 11111111B	;C
	DB	T_W3,			      11110111B
	DB	T_W23,		   10110100B, 11111111B	;D
	DB	T_W3,			      11110111B
	DB	T_W23,		   01110100B, 11111111B	;E
	DB	T_W3,			      11110111B
	DB	T_W23,		   11110100B, 11101111B	;F
	DB	T_GOTO
	DW	G7469Y0

;sync. obousmer. BCD citac program. se sinc, R a mux. vystup. reg.
;			  _		_
;			  C_	       _L _	 _ _
;			 RCE	       EO C	 RCD
;74698			 CLN	   ABCDNA_/	 CC/
I74698T:	;	ZKRPDCBA   QQQQTDGR   XXNOKUXX
	DB	T_GOSUB
	DW	G7469Y3
	DB	T_W13,	10100000B,	      11110011B
	DB	T_GOSUB
	DW	G7469Y4
	DB	T_GOSUB
	DW	G7469Y7
	DB	T_GOSUB
	DW	G7469Y8
	DB	T_GOTO
	DW	G7469Y1

;sync. obousmer. BIN citac program. se sinc, R a mux. vystup. reg.
;			  _		_
;			  C_	       _L _	 _ _
;			 RCE	       EO C	 RCD
;74699			 CLN	   ABCDNA_/	 CC/
I74699T:	;	ZKRPDCBA   QQQQTDGR   XXNOKUXX
	DB	T_GOSUB
	DW	G7469Y3
	DB	T_W13,	10100000B,	      11110011B
	DB	T_GOSUB
	DW	G7469Y6
	DB	T_GOSUB
	DW	G7469Y4
	DB	T_GOSUB
	DW	G7469Y9
	DB	T_GOSUB
	DW	G7469Y8
	DB	T_GOTO
	DW	G7469Y5

;------------------------------------------------------
;spolecna cast pro: 74696, 74697 74698, 74699

G7469Y2:DB	T_VV3,	01111111B, 00001111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10100101B, 11110010B, 11110111B
	DB	T_W23,		   10100000B, 11111111B	;LOAD
	DB	T_W123,	10101010B, 11110010B, 11110111B
	DB	T_W23,		   01011000B, 11111111B	;LOAD
	DB	T_W123,	10000101B, 00000100B, 11111111B	;RESET
	DB	T_RET

G7469Y3:DB	T_VV3,	01111111B, 00001111B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10110101B, 11111010B, 11110111B
	DB	T_W23,		   10101000B, 11111111B	;LOAD
	DB	T_W123,	10111010B, 11111010B, 11110111B
	DB	T_W23,		   01010000B, 11111111B	;LOAD
	DB	T_W123,	10010101B, 01011100B, 11110111B
	DB	T_W123,	10010101B, 00001100B, 11111111B	;RESET SINC
	DB	T_RET

G7469Y4:DB	T_W23,		   10010100B, 11111011B	;9
	DB	T_W3,			      11110011B
	DB	T_W23,		   00010100B, 11111011B	;8
	DB	T_W13,	11100000B,	      11110011B	;ZR 8
	DB	T_W123,	10100000B, 11100100B, 11111011B	;7
	DB	T_W23,		   00010101B, 11110011B	;CR 8
	DB	T_W23,		   01100100B, 11111011B	;6
	DB	T_W3,			      11110011B
	DB	T_W23,		   10100100B, 11111011B	;5
	DB	T_W3,			      11110011B
	DB	T_W23,		   00100100B, 11111011B	;4
	DB	T_W13,	11100000B,	      11110011B	;ZR 4
	DB	T_W123,	10100000B, 11000100B, 11111011B	;3
	DB	T_W23,		   00100101B, 11110011B	;CR 4
	DB	T_W23,		   01000100B, 11111011B	;2
	DB	T_W13,	11100000B,	      11110011B	;ZR 2
	DB	T_W23,		   10000100B, 11111011B	;1
	DB	T_W23,		   01000101B, 11110011B	;CR 2
	DB	T_W23,		   00000100B, 11101011B	;0
	DB	T_RET

G7469Y7:DB	T_W3,			      11100011B
	DB	T_W23,		   10010100B, 11111011B	;9
	DB	T_RET

G7469Y9:DB	T_W3,			      11100011B
	DB	T_W23,		   11110100B, 11111011B	;F
	DB	T_RET

G7469Y8:DB	T_W3,			      11100111B
	DB	T_W23,		   00000100B, 11111111B	;0
	DB	T_W3,			      11110111B
	DB	T_W23,		   10000100B, 11111111B	;1
	DB	T_W3,			      11110111B
	DB	T_W23,		   01000100B, 11111111B	;2
	DB	T_W3,			      11110111B
	DB	T_W23,		   11000100B, 11111111B	;3
	DB	T_W3,			      11110111B
	DB	T_W23,		   00100100B, 11111111B	;4
	DB	T_W3,			      11110111B
	DB	T_W123,	10100000B, 10100100B, 11111111B	;5
	DB	T_W13,	11100000B,	      11110111B	;ZR 5
	DB	T_W23,		   01100100B, 11111111B	;6
	DB	T_W3,			      11110111B
	DB	T_W23,		   11100100B, 11111111B	;7
	DB	T_W3,			      11110111B
	DB	T_W23,		   00010100B, 11111111B	;8
	DB	T_W23,		   10100101B, 11110111B	;CR 5
	DB	T_RET

G7469Y6:DB	T_W23,		   11110100B, 11111011B	;F
	DB	T_W3,			      11110011B
	DB	T_W23,		   01110100B, 11111011B	;E
	DB	T_W3,			      11110011B
	DB	T_W23,		   10110100B, 11111011B	;D
	DB	T_W3,			      11110011B
	DB	T_W23,		   00110100B, 11111011B	;C
	DB	T_W3,			      11110011B
	DB	T_W23,		   11010100B, 11111011B	;B
	DB	T_W3,			      11110011B
	DB	T_W23,		   01010100B, 11111011B	;A
	DB	T_W3,			      11110011B
	DB	T_RET

;8bit. reg TP, zpetny budic			   _
;74794			 7654321   1234567C	 00O
I74794T:	;	ZDDDDDDD   QQQQQQQK   XXNQDEXX
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_O123,	10101010B, 01010100B, 11111111B
	DB	T_W123,	10101010B, 01010101B, 11111111B
	DB	T_VV3,	00000000B, 00000001B, 00000100B
	DB	T_W123,	10101010B, 01010101B, 11111011B
	DB	T_VV3,	01111111B, 00000001B, 00001100B
	DB	T_W123,	11010101B, 01010100B, 11110111B
	DB	T_W123,	11010101B, 10101011B, 11100111B
	DB	T_VV3,	00000000B, 00000001B, 00000100B
	DB	T_W123,	11010101B, 10101011B, 11100011B
	DB	T_KONEC

;10bit. reg. D budic sbernice			     _
;74821			 9876543   3456789C    012210O
I74821T:	;	ZDDDDDDD   QQQQQQQP   NQQQDDDE
	DB	T_VV3,	01111111B, 00000001B, 00001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 11111110B, 11111011B
	DB	T_W23,		   01010101B, 11011010B
	DB	T_W123, 11010101B, 01010100B, 11010100B
	DB	T_w23,		   10101011B, 10100100B
	DB	T_W23,		   11111110B, 11110101B
	DB	T_W123,	10101010B, 01010101B, 10100100B
	DB	T_KONEC

;10bit. budic sbernice			  _	     _
;					  2	     1
;74827			 9876543   3456789O    012210O
I74827T:	;	ZDDDDDDD   QQQQQQQE   NQQQDDDE
	DB	T_VV3,	01111111B, 00000001B, 00001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10000000B, 11111111B, 11110001B
	DB	T_W23,		   11111111B, 11110000B
	DB	T_W23,		   11111110B, 11110001B
	DB	T_W23,		   00000000B, 10000000B
	DB	T_W123,	11010101B, 10101010B, 10100100B
	DB	T_W123,	10101010B, 01010100B, 11011010B
	DB	T_KONEC

;10bit. budic sbernice			  _	     _
;					  2	     1
;74828			 9876543   3456789O    012210O
I74828T:	;	ZDDDDDDD   QQQQQQQE   NQQQDDDE
	DB	T_VV3,	01111111B, 00000001B, 00001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_W23,		   11111111B, 11111110B
	DB	T_W23,		   11111110B, 11111111B
	DB	T_W23,		   00000000B, 10001110B
	DB	T_W123,	11010101B, 01010100B, 10101010B
	DB	T_W123,	10101010B, 10101010B, 11010100B
	DB	T_KONEC

;10bit. transparent. stradac D			     _
;74841			 9876543   3456789L    012210O
I74841T:	;	ZDDDDDDD   QQQQQQQE   NQQQDDDE
	DB	T_VV3,	01111111B, 00000001B, 00001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10101010B, 11111111B, 11111011B
	DB	T_W23,		   01010101B, 11011010B
	DB	T_O2,		   01010100B
	DB	T_W123,	11010101B, 01010100B, 11010100B
	DB	T_W23,		   10101011B, 10100100B
	DB	T_W23,		   11111110B, 11110101B
	DB	T_W123,	10101010B, 10101010B, 10101010B
	DB	T_W23,		   01010101B, 11011010B
	DB	T_W123,	11010101B, 10101011B, 10100100B
	DB	T_W123,	10101010B, 01010101B, 11011010B 	
	DB	T_KONEC

;2x 4bit. stradac D transparent. a R
;					  _	     _
;			 _		  2	    _1
;			 2222211   1122222C    111111C
;74873			 ODDDDDD   QQQQQQLL    LQQDDOL
I74873T:	;	ZE432143   341234ER   NE1221ER
	DB	T_VV3,	01111111B, 00000011B, 01001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10111100B, 00000010B, 11000001B
	DB	T_W123, 10101010B, 01010111B, 11011001B
	DB	T_W123,	11101001B, 10111101B, 11100101B
	DB	T_W123, 10010101B, 11010101B, 10110111B
	DB	T_W123,	10010110B, 01101011B, 11011001B
	DB	T_W123,	10101011B, 00010111B, 11000000B
	DB	T_KONEC

;2x 4bit. reg. D a reset
;					  _	     _
;			 _		 22    1    _1
;			 2222211   112222CC    C11111C
;74874			 ODDDDDD   QQQQQQLL    LQQDDOL
I74874T:	;	ZE432143   341234KR   NK1221ER
	DB	T_VV3,	01111111B, 00000011B, 01001111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10111111B, 00000000B, 10001100B
	DB	T_W123,	11010101B, 11111101B, 10110111B
	DB	T_W123,	10010101B, 10101011B, 11100101B
	DB	T_W123,	10101010B, 10101001B, 10101001B
	DB	T_W23,		   01010111B, 11011001B
	DB	T_KONEC

;expander pro rozsireni vstup./vystup.
;			     _
;			 PPPPS_P   PPPPPPPP    PPPPPPP
;			 2222TC4   66667777    5554445
I8243T:		;	Z0123BS3   01233210   N1232100
	DB	T_VV3,	01111110B, 00000000B, 00000000B	;P4 - P7 VYSTUP
	DB	T_NAP,	DIL24
	DB	T_O1,	10010100B			;P4 ZAPIS
	DB	T_O1,	10010000B
	DB	T_O1,	11010000B			;DATA 1010
	DB	T_O1,	11010100B
	DB	T_O1,	11010100B			;P5 ZAPIS
	DB	T_O1,	11010000B
	DB	T_O1,	10101000B			;DATA 0101
	DB	T_O1,	10101100B
	DB	T_O1,	10110100B			;P6 ZAPIS
	DB	T_O1,	10110000B
	DB	T_O1,	11010000B			;DATA 1010
	DB	T_O1,	11010100B
	DB	T_O1,	11110100B			;P7 ZAPIS
	DB	T_O1,	11110000B
	DB	T_O1,	10101000B			;DATA 0101
	DB	T_W123,	10101100B, 10101010B, 11011010B
	DB	T_O1,	10001100B			;P4 ZAPIS - OR
	DB	T_O1,	10001000B
	DB	T_O1,	10011000B			;DATA 0011 - 1011
	DB	T_O1,	10011100B
	DB	T_O1,	11001100B			;P5 ZAPIS - OR
	DB	T_O1,	11001000B
	DB	T_O1,	10110000B			;DATA 0110 - 0111
	DB	T_O1,	10110100B
	DB	T_O1,	10101100B			;P6 ZAPIS - OR
	DB	T_O1,	10101000B
	DB	T_O1,	11100000B			;DATA 1100 - 1110
	DB	T_O1,	11100100B
	DB	T_O1,	11101100B			;P7 ZAPIS - OR
	DB	T_O1,	11101000B
	DB	T_O1,	11001000B			;DATA 1001 - 1101
	DB	T_W123,	11001101B, 11101011B, 11111010B
	DB	T_O1,	10010100B			;P4 ZAPIS
	DB	T_O1,	10010000B
	DB	T_O1,	10101000B			;DATA 0101
	DB	T_O1,	10101100B
	DB	T_O1,	11010100B			;P5 ZAPIS
	DB	T_O1,	11010000B
	DB	T_O1,	11010000B			;DATA 1010
	DB	T_O1,	11010100B
	DB	T_O1,	10110100B			;P6 ZAPIS
	DB	T_O1,	10110000B
	DB	T_O1,	10101000B			;DATA 0101
	DB	T_O1,	10101100B
	DB	T_O1,	11110100B			;P7 ZAPIS
	DB	T_O1,	11110000B
	DB	T_O1,	11010000B			;DATA 1010
	DB	T_W123,	11010101B, 01010101B, 10100101B
	DB	T_O1,	10011100B			;P4 ZAPIS - AND
	DB	T_O1,	10011000B
	DB	T_O1,	10011000B			;DATA 1100 - 0100
	DB	T_O1,	10011100B
	DB	T_O1,	11011100B			;P5 ZAPIS - AND
	DB	T_O1,	11011000B
	DB	T_O1,	10110000B			;DATA 1001 - 1000
	DB	T_O1,	10110100B
	DB	T_O1,	10111100B			;P6 ZAPIS - AND
	DB	T_O1,	10111000B
	DB	T_O1,	11100000B			;DATA 0011 - 0001
	DB	T_O1,	11100100B
	DB	T_O1,	11111100B			;P7 ZAPIS - AND
	DB	T_O1,	11111000B
	DB	T_O1,	11001000B			;DATA 0110 - 0010
	DB	T_W123,	11001101B, 01000001B, 10100000B
	DB	T_O1,	10000100B			;P4 PRIPRAVA NA CTENI
	DB	T_O1,	10000000B
	DB	T_VV2,	00000110B, 00000000B
	DB	T_I1,	11111001B
	DB	T_O1,	11111111B
	DB	T_VV2,	01111110B, 00000000B
	DB	T_O1,	11000100B			;P5 PRIPRAVA NA CTENI
	DB	T_O1,	11000000B
	DB	T_VV2,	00000110B, 00000000B
	DB	T_I1,	11111001B
	DB	T_O1,	11111111B
	DB	T_VV2,	01111110B, 00000000B
	DB	T_O1,	10100100B			;P6 PRIPRAVA NA CTENI
	DB	T_O1,	10100000B
	DB	T_VV2,	00000110B, 00000000B
	DB	T_I1,	11111001B
	DB	T_O1,	11111111B
	DB	T_VV2,	01111110B, 00000000B
	DB	T_O1,	11100100B			;P7 PRIPRAVA NA CTENI
	DB	T_O1,	11100000B
	DB	T_VV2,	00000110B, 00000000B
	DB	T_I1,	11111001B
	DB	T_O1,	11111111B
	DB	T_VV3,	01111111B, 11111111B, 01111111B	;P4 - P7 VSTUP
	DB	T_W123,	10000100B, 01010101B, 11011010B	;P4 CTENI
	DB	T_O1,	10000000B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	11010000B			;DATA 1010
	DB	T_O1,	11010110B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	11000100B			;P5 CTENI
	DB	T_O1,	11000000B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	10101000B			;DATA 0101
	DB	T_O1,	10101110B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	10100100B			;P6 CTENI
	DB	T_O1,	10100000B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	10101000B			;DATA 0101
	DB	T_O1,	10101110B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	11100100B			;P7 CTENI
	DB	T_O1,	11100000B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	11010000B			;DATA 1010
	DB	T_O1,	11010110B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_W123,	10000101B, 10101010B, 10100101B	;P4 CTENI
	DB	T_O1,	10000001B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	10101001B			;DATA 0101
	DB	T_O1,	10101111B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	11000101B			;P5 CTENI
	DB	T_O1,	11000001B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	11010001B			;DATA 1010
	DB	T_O1,	11010111B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	10100101B			;P6 CTENI
	DB	T_O1,	10100001B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	11010001B			;DATA 1010
	DB	T_O1,	11010111B
	DB	T_VV2,	01111111B, 11111111B
	DB	T_O1,	11100101B			;P7 CTENI
	DB	T_O1,	11100001B
	DB	T_VV2,	00000111B, 11111111B
	DB	T_I1,	10101001B			;DATA 0101
	DB	T_O1,	10101111B
	DB	T_KONEC

;***********************
;* CMOS CMOS CMOS CMOS *
;***********************

;2x 3NOR + invert.
;4000			 1111NN      2222_
I4000T:		;	ZYCBACCX   XNCBAYXX
	DB	T_NZ2,	00000111B, 10000000B
	DB	T_VV2,	00111000B, 00111001B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000111B, 11111010B
	DB	T_W12,	10100111B, 11011001B
	DB	T_W12,	10010111B, 11101010B
	DB	T_W12,	10110111B, 11001010B
	DB	T_W12,	10001111B, 11110001B
	DB	T_W12,	10101111B, 11010001B
	DB	T_W12,	10011111B, 11100010B
	DB	T_W12,	10111111B, 11000101B
	DB	T_KONEC

;4x 2NOR
;4001			 222111      444333
I4001T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	11100011B, 11100100B
	DB	T_W12,	10100111B, 11010001B
	DB	T_W12,	11001001B, 11110010B
	DB	T_W12,	10010101B, 11001011B
	DB	T_KONEC

;2x 4NOR
;4002
I4002T:		;	ZXDCBAYX   XNYABCDX
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111101B, 11100001B
	DB	T_W12,	11011101B, 11010001B
	DB	T_W12,	11101101B, 11001001B
	DB	T_W12,	11110101B, 11000101B
	DB	T_W12,	11111001B, 11000011B
	DB	T_W12,	11000011B, 11011111B
	DB	T_W12,	11100001B, 11001111B
	DB	T_W12,	11010001B, 11010111B
	DB	T_W12,	11001001B, 11011011B
	DB	T_W12,	11000101B, 11011101B
	DB	T_KONEC

;4x 2NAND
;4011, 4093		 111222      444333
I4011T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	11101011B, 11101100B
	DB	T_W12,	10110111B, 11011101B
	DB	T_W12,	11011001B, 11110110B
	DB	T_W12,	10011101B, 11001011B
	DB	T_KONEC

;2x 4NAND
;4012
I4012T:		;	ZXDCBAYX   XNYABCDX
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111101B, 11100001B
	DB	T_W12,	11011111B, 11110001B
	DB	T_W12,	11101111B, 11101001B
	DB	T_W12,	11110111B, 11100101B
	DB	T_W12,	11111011B, 11100011B
	DB	T_W12,	11000011B, 11011111B
	DB	T_W12,	11100011B, 11101111B
	DB	T_W12,	11010011B, 11110111B
	DB	T_W12,	11001011B, 11111011B
	DB	T_W12,	11000111B, 11111101B
	DB	T_KONEC

;2X K.O. D s SR
;4013			    C_	      _C
I4013T:		;	ZSDRLQQX   XNQQLRDS
	DB	T_VV2,	01111000B, 00001111B
	DB	T_NAP,	DIL14
	DB	T_W12,	10110101B, 11110101B
	DB	T_W12,	11010111B, 11100001B
	DB	T_W12,	11001011B, 11011110B
	DB	T_W12,	10000011B, 11010010B
	DB	T_W12,	10001101B, 11101010B
	DB	T_W12,	10100101B, 11100000B
	DB	T_W12,	10101011B, 11011000B
	DB	T_KONEC

;2x 4bit. posuv. reg. s ser. vstupem, par. vystup, R
;			  AAAABB     BBBBAA
;4015			 AM0123C    BM0123C
I4015T:		;	ZDRQQQQP   NDRQQQQP
	DB	T_VV2,	01100001B, 01100001B
	DB	T_NAP,	DIL16
	DB	T_W12,	10100000B, 10100000B
	DB	T_W12,	11000000B, 11000000B
	DB	T_W12,	11010001B, 11010001B
	DB	T_W12,	10010000B, 11010000B
	DB	T_W12,	10001001B, 11011001B
	DB	T_W12,	11001000B, 10011000B
	DB	T_W12,	11010101B, 10001101B
	DB	T_W12,	10010100B, 11001100B
	DB	T_W12,	10001011B, 11010111B
	DB	T_W12,	11001010B, 10010110B
	DB	T_W12,	11010111B, 10001001B
	DB	T_W12,	10010110B, 11001000B
	DB	T_W12,	10001001B, 11010111B
	DB	T_KONEC

;10stupnovy johonson. citac	      _
;				     01
;4017			 3762015    MCC_948
I4017T:		;	ZQQQQQQQ   NRPPQQQQ
	DB	T_VV2,	00000000B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000100B, 11001000B
	DB	T_W12,	10000100B, 10001000B
	DB	T_W12,	10000010B, 10101000B
	DB	T_w2,		   10001000B
	DB	T_W12,	10001000B, 10101000B
	DB	T_w2,		   10001000B
	DB	T_W12,	11000000B, 10101000B
	DB	T_w2,		   10001000B
	DB	T_W12,	10000000B, 10101010B
	DB	T_w2,		   10001010B
	DB	T_W12,	10000001B, 10100000B
	DB	T_w2,		   10000000B
	DB	T_W12,	10010000B, 10100000B
	DB	T_w2,		   10000000B
	DB	T_W12,	10100000B, 10100000B
	DB	T_w2,		   10000000B
	DB	T_W12,	10000000B, 10100001B
	DB	T_w2,		   10000001B
	DB	T_W12,	10000000B, 10100100B
	DB	T_w2,		   10110100B
	DB	T_W12,	10000100B, 10101000B
	DB	T_w2,		   10111000B
	DB	T_W12,	10000010B, 10101000B
	DB	T_w2,		   10111000B
	DB	T_W12,	10001000B, 10101000B
	DB	T_w2,		   10111000B
	DB	T_W12,	11000000B, 10101000B
	DB	T_w2,		   10111000B
	DB	T_W12,	10000000B, 10101010B
	DB	T_w2,		   10111010B
	DB	T_W12,	10000001B, 10100000B
	DB	T_w2,		   10110000B
	DB	T_W12,	10010000B, 10100000B
	DB	T_w2,		   10110000B
	DB	T_W12,	10100000B, 10100000B
	DB	T_w2,		   10110000B
	DB	T_W12,	10000000B, 10100001B
	DB	T_w2,		   10110001B
	DB	T_W12,	10000000B, 10100100B
	DB	T_w2,		   10110100B
	DB	T_W12,	10000100B, 10101000B
	DB	T_KONEC

;14bit. BIN citac (Q0,Q3-Q13)
;			     111    1    _
;4020			 3645321    0978MC0
I4020T:		;	ZQQQQQQQ   NQQQQRPQ
	DB	T_VV2,	00000000B, 00000110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 10000100B
	DB	T_W12,	10000000B, 10000000B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;1
	DB	T_W2,		   10000011B
	DB	T_W12,	10000000B, 10000000B	;2
	DB	T_W2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;3
	DB	T_W2,		   10000011B
	DB	T_W12,	10000000B, 10000000B	;4
	DB	T_W2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;5
	DB	T_W2,		   10000011B
	DB	T_W12,	10000000B, 10000000B	;6
	DB	T_W2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;7
	DB	T_W2,		   10000011B
	DB	T_W12,	11000000B, 10000000B	;8
	DB	T_W2,		   10000010B
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	10010000B, 10000010B	;16
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	11010000B, 10000010B	;24
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	10001000B, 10000010B	;32
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	11001000B, 10000010B	;40
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	10011000B, 10000010B	;48
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	11011000B, 10000010B	;56
	DB	T_GOSUB
	DW	G4020T
	DB	T_I12,	10100000B, 10000010B	;64
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10000000B, 10010010B	;128
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10100000B, 10010010B	;192
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10000000B, 10001010B	;256
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10100000B, 10001010B	;320
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10000000B, 10011010B	;384
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10100000B, 10011010B	;448
	DB	T_PROG
	DW	G4020TA
	DB	T_I12,	10000000B, 10100010B	;512
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000000B, 11000010B	;1024
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000000B, 11100010B	;1536
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000001B, 10000010B	;2048
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000001B, 10100010B	;2560
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000001B, 11000010B	;3072
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000001B, 11100010B	;3584
	DB	T_PROG
	DW	G4020TC
	DB	T_I12,	10000010B, 10000010B	;4096
	DB	T_PROG
	DW	G4020TD
	DB	T_I12,	10000100B, 10000010B	;8192
	DB	T_PROG
	DW	G4020TD
	DB	T_I12,	10000110B, 10000010B	;12288
	DB	T_PROG
	DW	G4020TE
	DB	T_I12,	11111111B, 11111011B	;16383
	DB	T_W12,	10000000B, 10000000B	;0
	DB	T_w2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;1
	DB	T_KONEC
;UDELA 8 PULZU
G4020T:	DB	T_W2,		   10000001B	;1
	DB	T_W2,		   10000011B
	DB	T_W2,		   10000000B	;2
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000001B	;3
	DB	T_W2,		   10000011B
	DB	T_W2,		   10000000B	;4
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000001B	;5
	DB	T_W2,		   10000011B
	DB	T_W2,		   10000000B	;6
	DB	T_W2,		   10000010B
	DB	T_W2,		   10000001B	;7
	DB	T_W2,		   10000011B
	DB	T_O2,		   10000000B	;8
	DB	T_O2,		   10000010B
	DB	T_RET

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
G4020TE:LXI	B,4095		;POCET PULZU
	JMP	G4020TB
G4020TD:LXI	B,4096		;POCET PULZU
	JMP	G4020TB
G4020TC:LXI	B,512		;POCET PULZU
	JMP	G4020TB
G4020TA:LXI	B,64		;POCET PULZU
G4020TB:MVI	A,10000000B
	OUT	PORT2		;CP NA 0
	DCX	B		;POCITADLO -1
	MOV	A,C		; DO <A>
	PUSH	PSW		;TROCHU NATAHUJEME CAS
	MVI	A,10000010B
	OUT	PORT2		;CP NA 1 	
	POP	PSW		;TROCHU NATAHUJEME CAS
	ORA	B
	JNZ	G4020TB		;POKUT NENI 0 TAK DALSI
	RET			;NAVRAT ZE STROJOVEHO KODU

;8bit. posuv. reg. s par. a ser. vstupem, ser. vystup(Q5-7)
;4021			 0123757    6546DCP
I4021T:		;	ZPPPPQQP   NPPPQSPL
	DB	T_VV2,	01111001B, 01110111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10100001B
	DB	T_W12,	11010101B, 11011001B
	DB	T_W12,	11010101B, 11011000B	;10101011
	DB	T_W12,	10000110B, 10100010B	;01010101
	DB	T_W2,		   10100000B
	DB	T_W12,	10011000B, 11011010B	;00101010
	DB	T_W2,		   11011100B
	DB	T_W12,	10000110B, 11100110B	;10010101
	DB	T_W2,		   11100100B
	DB	T_W12,	10100000B, 10111110B	;11001010
	DB	T_W2,		   10111000B
	DB	T_W12,	10010110B, 11110010B	;01100101
	DB	T_W2,		   11110100B
	DB	T_W12,	10101000B, 10001110B	;10110010
	DB	T_W2,		   10001000B
	DB	T_W12,	11000100B, 11000010B	;01011001
	DB	T_W2,		   11000100B
	DB	T_W12,	10001010B, 10100110B	;10101100
	DB	T_W2,		   10100000B
	DB	T_W12,	10100010B, 10011010B	;01010110
	DB	T_W2,		   10011100B
	DB	T_W12,	11001100B, 10111110B	;10101011
	DB	T_W2,		   10111000B
	DB	T_W12,	10110110B, 11100010B	;01010101
	DB	T_W2,		   11100100B
	DB	T_W12,	11111000B, 10001110B	;10101010
	DB	T_KONEC

;3x 3NAND
;2023			 111122      333322
I4023T:		;	ZYCBABAX   XNCBAYYC
	DB	T_VV2,	00111110B, 00111001B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000111B, 11100101B
	DB	T_W12,	11100001B, 11101111B
	DB	T_W12,	11010101B, 11110111B
	DB	T_W12,	11110011B, 11111011B
	DB	T_W12,	11001111B, 11000110B
	DB	T_W12,	11101001B, 11001110B
	DB	T_W12,	11011101B, 11010110B
	DB	T_W12,	10111011B, 11011110B
	DB	T_KONEC

;7bit. BIN citac	      _
;4024			 3456MC      N01N2N
I4024T:		;	ZQQQQRPX   XNCQQCQC
	DB	T_NZ2,	00000001B, 10100001B
	DB	T_VV2,	00000110B, 00000000B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000111B, 11100101B	;RES
	DB	T_W12,	10000011B, 11100101B
	DB	T_W12,	10000001B, 11110101B	;1
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11101101B	;2
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11111101B	;3
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11100111B	;4
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11110111B	;5
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11101111B	;6
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11111111B	;7
	DB	T_W1,	10000011B
	DB	T_W12,	11000001B, 11100101B	;8
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11110101B	;9
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11101101B	;10
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11111101B	;11
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11100111B	;12
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11110111B	;13
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11101111B	;14
	DB	T_W1,	11000011B
	DB	T_W12,	11000001B, 11111111B	;15
	DB	T_W1,	11000011B
	DB	T_W12,	10100001B, 11100101B	;16
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10010001B, 11100101B	;32
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10110001B, 11100101B	;48
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10001001B, 11100101B	;64
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10101001B, 11100101B	;80
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10011001B, 11100101B	;96
	DB	T_GOSUB
	DW	G4024TA
	DB	T_W12,	10111001B, 11100101B	;112
	DB	T_GOSUB
	DW	G4024TB
	DB	T_W12,	11111001B, 11111111B	;127
	DB	T_W1,	11111011B
	DB	T_W12,	10000001B, 11100101B	;0
	DB	T_W1,	10000011B
	DB	T_W12,	10000001B, 11110101B	;1
	DB	T_KONEC

;UDELA 16 PULZU
G4024TA:DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;1
G4024TB:DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;2
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;3
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;4
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;5
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;6
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;7
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;8
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;9
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;10
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;11
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;12
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;13
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;14
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;15
	DB	T_O1,	10000011B
	DB	T_O1,	10000001B	;16
	DB	T_RET

;3x 3NOR
;4025			 111122      333322
I4025T:		;	ZYCBABAX   XNCBAYYC
	DB	T_VV2,	00111110B, 00111001B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000111B, 11100001B
	DB	T_W12,	10100001B, 11101001B
	DB	T_W12,	10010101B, 11110001B
	DB	T_W12,	10110011B, 11111001B
	DB	T_W12,	10001111B, 11000100B
	DB	T_W12,	10101001B, 11001010B
	DB	T_W12,	10011101B, 11010000B
	DB	T_W12,	10111011B, 11011000B
	DB	T_KONEC

;2x K.O. J-K s SR
;4027			     C_      _P
I4027T:		;	ZSJKRPQQ   NQQCRKJS
	DB	T_VV2,	01111100B, 00011111B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010101B, 10101010B
	DB	T_W12,	11101011B, 11111011B
	DB	T_W12,	10101010B, 11010101B
	DB	T_W12,	10000010B, 11000110B
	DB	T_W12,	10000110B, 10110110B
	DB	T_W12,	10100010B, 10100010B
	DB	T_W12,	10100101B, 11010010B
	DB	T_W12,	10010001B, 11000100B
	DB	T_W12,	10010110B, 10110100B
	DB	T_W12,	10110010B, 10100000B
	DB	T_W12,	10110101B, 10110000B
	DB	T_KONEC

;4bit dekoder 1 z 10
;4028			 6597024    3112308
I4028T:		;	ZQQQQQQQ   NQQAAAAQ
	DB	T_VV2,	00000000B, 00011110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000100B, 10000000B	;0
	DB	T_W12,	10000000B, 10100010B	;1
	DB	T_W12,	10000010B, 10010000B	;2
	DB	T_W12,	10000000B, 11010010B	;3
	DB	T_W12,	10000001B, 10001000B	;4
	DB	T_W12,	10100000B, 10001010B	;5
	DB	T_W12,	11000000B, 10011000B	;6
	DB	T_W12,	10001000B, 10011010B	;7
	DB	T_W12,	10000000B, 10000101B	;8
	DB	T_W12,	10010000B, 10000110B	;9

	DB	T_W12,	10000000B, 10010101B	;10
	DB	T_W12,	10010000B, 10010110B	;11
	DB	T_W12,	10000000B, 10001101B	;12
	DB	T_W12,	10010000B, 10001110B	;13
	DB	T_W12,	10000000B, 10011101B	;14
	DB	T_W12,	10010000B, 10011110B	;15
	DB	T_KONEC

;4bit BIN/BCD sync. vrat. citac		  _
;					  D
;					 _E
;					 DC
;					 N/
;			 _ _		 /B
;4029			 T0C033P    C2211UI
I4029T:		;	ZCQEPPQL   NPQPPQPN
	DB	T_VV2,	00011101B, 01011011B
	DB	T_NAP,	DIL16
	DB	T_O12,	11010110B, 10110011B
	DB	T_W12,	11010111B, 10110011B
	DB	T_W12,	11011010B, 10101011B
	DB	T_W12,	11111001B, 10001111B
	DB	T_W12,	11110000B, 10000111B
	DB	T_W12,	11000001B, 10000011B	;0
	DB	T_W2,		   10000011B
	DB	T_W12,	11100000B, 11000011B	;1
	DB	T_W2,		   10000011B
	DB	T_W12,	11000000B, 11000111B	;2
	DB	T_W2,		   10000111B
	DB	T_W12,	11100000B, 11000111B	;3
	DB	T_W2,		   10000111B
	DB	T_W12,	11000000B, 11100011B	;4
	DB	T_W2,		   10100011B
	DB	T_W12,	11100000B, 11100011B	;5
	DB	T_W2,		   10100011B
	DB	T_W12,	11000000B, 11100111B	;6
	DB	T_W2,		   10100111B
	DB	T_W12,	11100000B, 11100111B	;7
	DB	T_W2,		   10100111B
	DB	T_W12,	11000010B, 11000011B	;8
	DB	T_W2,		   10000011B
	DB	T_W12,	11100010B, 11000011B	;9
	DB	T_W2,		   10000011B
	DB	T_W12,	11000010B, 11000111B	;10
	DB	T_W2,		   10000111B
	DB	T_W12,	11100010B, 11000111B	;11
	DB	T_W2,		   10000111B
	DB	T_W12,	11000010B, 11100011B	;12
	DB	T_W2,		   10100011B
	DB	T_W12,	11100010B, 11100011B	;13
	DB	T_W2,		   10100011B
	DB	T_W12,	11000010B, 11100111B	;14
	DB	T_W2,		   10100111B
	DB	T_W12,	10100010B, 11100111B	;15
	DB	T_W2,		   10100111B
	DB	T_W12,	11000000B, 11000011B	;0
	DB	T_W2,		   10000011B
	DB	T_W12,	11100000B, 11000011B	;1
	DB	T_W2,		   10000001B
	DB	T_W12,	10000000B, 11000001B	;0
	DB	T_W2,		   10000001B
	DB	T_W12,	11100010B, 11100101B	;15
	DB	T_W2,		   10100101B
	DB	T_W12,	11000010B, 11100101B	;14
	DB	T_W2,		   10100101B
	DB	T_W12,	11100010B, 11100001B	;13
	DB	T_W2,		   10100001B
	DB	T_W12,	11000010B, 11100001B	;12
	DB	T_W2,		   10100001B
	DB	T_W12,	11100010B, 11000101B	;11
	DB	T_W2,		   10000101B
	DB	T_W12,	11000010B, 11000101B	;10
	DB	T_W2,		   10000101B
	DB	T_W12,	11100010B, 11000001B	;9
	DB	T_W2,		   10000000B
	DB	T_W12,	11000010B, 11000000B	;8
	DB	T_W2,		   10000010B
	DB	T_W12,	10100010B, 11000010B	;9
	DB	T_W2,		   10000010B
	DB	T_W12,	11000000B, 11000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	11100000B, 11000010B	;1
	DB	T_W2,		   10000000B
	DB	T_W12,	10000000B, 11000000B	;0
G4029T:	DB	T_O2,		   10000000B
	DB	T_W12,	11100010B, 11000000B	;9
	DB	T_W2,		   10000000B
	DB	T_W12,	11000010B, 11000000B	;8
	DB	T_W2,		   10000000B
	DB	T_W12,	11100000B, 11100100B	;7
	DB	T_W2,		   10100100B
	DB	T_W12,	11000000B, 11100100B	;6
	DB	T_W2,		   10100100B
	DB	T_W12,	11100000B, 11100000B	;5
	DB	T_W2,		   10100000B
	DB	T_W12,	11000000B, 11100000B	;4
	DB	T_W2,		   10100000B
	DB	T_W12,	11100000B, 11000100B	;3
	DB	T_W2,		   10000100B
	DB	T_W12,	11000000B, 11000100B	;2
	DB	T_W2,		   10000100B
	DB	T_W12,	11100000B, 11000000B	;1
	DB	T_W2,		   10000000B
	DB	T_W12,	10000000B, 11000000B	;0
	DB	T_KONEC

;4x 2EX-OR
;4030, 4070, 4507	 222111      444333
I4030T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10001011B, 11101011B
	DB	T_W12,	10111101B, 11110101B
	DB	T_W12,	11010111B, 11000110B
	DB	T_W12,	11100001B, 11011000B
	DB	T_KONEC

;3x ser. scitacka	 1 2  3
;			 _ _  _
;			 I I  I
;4032			 NCN2CN3    3322111
I4032T:		;	ZVRVSPVS   NABABBAS
	DB	T_VV2,	01110110B, 01111110B
	DB	T_NAP,	DIL16
        DB	T_O12,	10100100B, 10000000B
	DB	T_O1,	10100000B
        DB	T_O1,	10100100B
	DB	T_W12,	10100000B, 10000000B
	DB	T_W12,	10010100B, 10001000B
	DB	T_W12,	10010000B, 10001000B
	DB	T_W12,	10011101B, 10111011B
	DB	T_W12,	10011001B, 10111011B
	DB	T_W12,	10011101B, 11010101B
	DB	T_W12,	10011001B, 11010101B
	DB	T_W12,	10010101B, 11011101B
	DB	T_W12,	10010001B, 11011101B
	DB	T_W12,	10011100B, 11101110B
	DB	T_W12,	10011000B, 11101110B
	DB	T_W12,	10010101B, 11100111B
	DB	T_W12,	10010001B, 11100111B
	DB	T_W12,	10011101B, 10011001B
	DB	T_W12,	10011001B, 10011001B
	DB	T_W12,	10010100B, 10011000B
	DB	T_W12,	10010000B, 10011000B
	DB	T_W12,	11000111B, 10001001B
	DB	T_W12,	11000011B, 10001001B
	DB	T_W12,	11001110B, 10111010B
	DB	T_W12,	11001010B, 10111010B
	DB	T_W12,	11000110B, 11010100B
	DB	T_W12,	11000010B, 11010100B
	DB	T_W12,	11001110B, 11011100B
	DB	T_W12,	11001010B, 11011100B
	DB	T_W12,	11000111B, 11101111B
	DB	T_W12,	11000011B, 11101111B
	DB	T_W12,	11001110B, 11100110B
	DB	T_W12,	11001010B, 11100110B
	DB	T_W12,	11000110B, 10011000B
	DB	T_W12,	11000010B, 10011000B
	DB	T_W12,	11001111B, 10011001B
	DB	T_W12,	11001011B, 10011001B
	DB	T_KONEC

;8bit obosmerny posuv. R se ser. a par. VV
;			 P		 AP
;4034			 /DP0123   43210C//    7654567
I4034T:		;	ZQSEQQQQ   PPPPPPSS   NPPPQQQQ
	DB	T_VV3,	01110000B, 11111111B, 01110000B	;Q - VYSTUP, P - VSTUP
	DB	T_NAP,	DIL24
	DB	T_W123,	11010101B, 01010111B, 11010101B	;PARARELNI ASYNCHRONI P -> Q
	DB	T_W123,	11000101B, 01010111B, 11010101B
	DB	T_W123,	11111010B, 10101011B, 10101010B
	DB	T_W123,	11101010B, 10101011B, 10101010B
	DB	T_O2,		   10101001B		;PARARELNI SYNCHRONI P -> Q
	DB	T_W123,	11011010B, 01010001B, 11011010B
	DB	T_W123,	11001010B, 01010001B, 11011010B
	DB	T_W123,	11010101B, 01010101B, 11010101B
	DB	T_W123,	11000101B, 01010101B, 11010101B
	DB	T_W123,	11110101B, 10101001B, 10100101B
	DB	T_W123,	11100101B, 10101001B, 10100101B
	DB	T_W123,	11111010B, 10101101B, 10101010B
	DB	T_W123,	11101010B, 10101101B, 10101010B
	DB	T_O2,		   10101000B		;SERIOVY SYNCHRONI DS -> Q
	DB	T_W123,	11111101B, 10101100B, 10100101B
	DB	T_W123,	11001101B, 10101000B, 10100101B
	DB	T_W123,	11000110B, 10101100B, 10101010B
	DB	T_W123,	11100110B, 10101000B, 10101010B
	DB	T_W123,	11101011B, 10101100B, 10100101B
	DB	T_W123,	11011011B, 10101000B, 10100101B
	DB	T_W123,	11000101B, 10101100B, 10101010B
	DB	T_W123,	11100101B, 10101000B, 10101010B
	DB	T_W123,	11101010B, 10101100B, 10101101B
	DB	T_W123,	11001010B, 10101000B, 10101101B
	DB	T_W123,	11010101B, 10101100B, 10100110B
	DB	T_W123,	11100101B, 10101000B, 10100110B
	DB	T_W123,	11101010B, 10101100B, 10101011B
	DB	T_W123,	11001010B, 10101000B, 10101011B
	DB	T_W123,	11000101B, 10101100B, 10100101B
	DB	T_W123,	11110101B, 10101000B, 10100101B
	DB	T_VV3,	01111111B, 00000111B, 00001111B	;P - VYSTUP, Q - VSTUP
	DB	T_W123,	10010101B, 01010111B, 11010101B	;PARARELNI ASYNCHRONI Q -> P
	DB	T_W123,	10000101B, 11111111B, 11110101B
	DB	T_W123,	10111010B, 10101011B, 10101010B
	DB	T_W123,	10101010B, 11111011B, 11111010B
	DB	T_O2,		   10101001B		;PARARELNI SYNCHRONI Q -> P
	DB	T_W123,	10010101B, 10101001B, 10100101B
	DB	T_W123,	10000101B, 11111101B, 11110101B
	DB	T_W123,	10010101B, 01010101B, 11010101B
	DB	T_O2,		   01010001B
	DB	T_W123,	10011010B, 01010001B, 11011010B
	DB	T_W123,	10011010B, 10101101B, 10101010B
	DB	T_O2,		   10101001B
	DB	T_W123,	10110101B, 10101001B, 10100101B
	DB	T_W123,	10110101B, 01010101B, 11010101B
	DB	T_O2,		   01010001B
	DB	T_W123,	10111010B, 01010001B, 11011010B
	DB	T_W123,	10101010B, 11111101B, 11111010B
	DB	T_W123,	10111010B, 10101101B, 10101010B
	DB	T_O12,	10011010B, 10101000B		;SERIOVY SYNCHRONI DS -> P
	DB	T_W123,	10011010B, 10101000B, 10101010B
	DB	T_W123,	10011010B, 01010100B, 11011010B
	DB	T_W123,	10011010B, 01010000B, 11011010B
	DB	T_W123,	10001010B, 11111100B, 11111010B
	DB	T_W123,	10111010B, 10100000B, 10101010B
	DB	T_W123,	10101010B, 11111100B, 11111010B
	DB	T_W123,	10011010B, 01001000B, 11011010B
	DB	T_W123,	10011010B, 10010100B, 10101010B
	DB	T_W123,	10111010B, 10010000B, 10101010B
	DB	T_W123,	10111010B, 00101100B, 11011010B
	DB	T_W123,	10001010B, 11111000B, 11111010B
	DB	T_W123,	10011010B, 01010100B, 10101010B
	DB	T_W123,	10101010B, 11111000B, 11111010B
	DB	T_W123,	10111010B, 10101100B, 11001010B
	DB	T_W123,	10011010B, 10101000B, 11001010B
	DB	T_W123,	10011010B, 01010100B, 10011010B
	DB	T_W123,	10111010B, 01010000B, 10011010B
	DB	T_W123,	10111010B, 10101100B, 10101010B
	DB	T_KONEC

;4bit posuvny R s par. VV
;			     T
;4035			 PCM _/O    1233210
I4035T:		;	NEPRJKCQ   NQQQPPPP
	DB	T_VV2,	01111110B, 00001111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10011110B, 10001111B
	DB	T_W12,	10011101B, 11110000B
	DB	T_W12,	11001101B, 11111010B
	DB	T_W12,	11101101B, 10101010B
	DB	T_W12,	11001101B, 10100101B
  	DB	T_W12,	11101100B, 11010101B
	DB	T_W1,	10001111B
	DB	T_W12,	10101111B, 11010010B
	DB	T_W1,	10001111B
	DB	T_W12,	10101111B, 11101001B
	DB	T_W1,	10000011B
	DB	T_W12,	10100010B, 11110011B
	DB	T_W1,	10000010B
	DB	T_W12,	10100010B, 10110111B
	DB	T_W1,	10001010B
	DB	T_W12,	10101011B, 10010001B
	DB	T_W1,	10001011B
	DB	T_W12,	10101001B, 10110100B
	DB	T_W1,	10001010B
	DB	T_W12,	10101011B, 10100001B
	DB	T_W1,	10000111B
	DB	T_W12,	10100111B, 11010111B
	DB	T_W1,	10000111B
	DB	T_W12,	10100100B, 10011101B
	DB	T_KONEC

;12bit. BIN citac
;			       1    1    _
;4040			 1236451    0978MC0
I4040T:		;	ZQQQQQQQ   NQQQQRPQ
	DB	T_VV2,	00000000B, 00000110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 10000100B
	DB	T_W12,	10000000B, 10000000B
	DB	T_W12,	10000000B, 10000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	10000000B, 10000001B	;1
	DB	T_W2,		   10000011B
	DB	T_W12,	11000000B, 10000000B	;2
	DB	T_W2,		   10000010B
	DB	T_W12,	11000000B, 10000001B	;3
	DB	T_W2,		   10000011B
	DB	T_W12,	10100000B, 10000000B	;4
	DB	T_W2,		   10000010B
	DB	T_W12,	10100000B, 10000001B	;5
	DB	T_W2,		   10000011B
	DB	T_W12,	11100000B, 10000000B	;6
	DB	T_W2,		   10000010B
	DB	T_W12,	11100000B, 10000001B	;7
	DB	T_W2,		   10000011B
	DB	T_W12,	10010000B, 10000000B	;8
	DB	T_W2,		   10000010B
	DB	T_W12,	10010000B, 10000001B	;9
	DB	T_W2,		   10000011B
	DB	T_W12,	11010000B, 10000000B	;10
	DB	T_W2,		   10000010B
	DB	T_W12,	11010000B, 10000001B	;11
	DB	T_W2,		   10000011B
	DB	T_W12,	10110000B, 10000000B	;12
	DB	T_W2,		   10000010B
	DB	T_W12,	10110000B, 10000001B	;13
	DB	T_W2,		   10000011B
	DB	T_W12,	11110000B, 10000000B	;14
	DB	T_W2,		   10000010B
	DB	T_W12,	11110000B, 10000001B	;15
	DB	T_W2,		   10000011B
	DB	T_W12,	10000100B, 10000000B	;16
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000010B, 10000000B	;32
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000110B, 10000000B	;48
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001000B, 10000000B	;64
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001100B, 10000000B	;80
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001010B, 10000000B	;96
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001110B, 10000000B	;112
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000000B, 10010000B	;128
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000100B, 10010000B	;144
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000010B, 10010000B	;160
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000110B, 10010000B	;176
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001000B, 10010000B	;192
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001100B, 10010000B	;208
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001010B, 10010000B	;224
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10001110B, 10010000B	;240
	DB	T_GOSUB
	DW	G4040G
	DB	T_W12,	10000000B, 10001000B	;256
	DB	T_W2,		   10001010B
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 10100010B	;512
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 10101010B	;768
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 11000010B	;1024
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 11001010B	;1280
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 11100010B	;1536
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000000B, 11101010B	;1792
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 10000010B	;2078
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 10001010B	;2304
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 10100010B	;2560
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 10101010B	;2816
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 11000010B	;3072
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 11001010B	;3328
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 11100010B	;3584
	DB	T_PROG
	DW	G4040TA
	DB	T_W12,	10000001B, 11101010B	;3840
	DB	T_PROG
	DW	G4040TB
	DB	T_W12,	11111111B, 11111011B	;4095
	DB	T_W2,		   10000000B
	DB	T_W12,	10000000B, 10000010B	;0
	DB	T_W2,		   10000001B
	DB	T_W12,	10000000B, 10000011B	;1
	DB	T_KONEC

G4040G:	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_O2,		   10000000B
	DB	T_O2,		   10000010B
	DB	T_RET

;POKRACUJE TEST PONOCI PROGAMU VE TROJOVEM KODU
G4040TB:LXI	B,255		;POCET PULZU
	JMP	G4020TB
G4040TA:LXI	B,256		;POCET PULZU
	JMP	G4020TB

;4bit. stradc	    	     _ 	    _  _  _
;4042			 1100003    3322211
I4042T:		;	ZDEEDQQQ   NQDDQQQQ
	DB	T_VV2,	01111000B, 00110000B
	DB	T_NAP,	DIL16
	DB	T_w12,	10111010B, 11010101B
	DB	T_w12,	10101010B, 11010101B
	DB	T_w12,	11100010B, 11100101B
	DB	T_w12,	11000101B, 10101010B
	DB	T_w12,	11010101B, 10101010B
	DB	T_w12,	10011101B, 10011010B
	DB	T_w12,	10111010B, 11010101B
	DB	T_w12,	10101010B, 11010101B
	DB	T_w12,	11100010B, 11100101B
	DB	T_KONEC

;4bit. stradac RS TS
;4043		 	 11E0003    33N2221
I4043T:		;	ZRSOSRQQ   NRSCSRQQ
	DB	T_NZ2,	00000000B, 00010000B
	DB	T_VV2,	01111100B, 01101100B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010101B, 10111010B
	DB	T_W12,	10111010B, 11010101B
	DB	T_W12,	11010101B, 10111010B
	DB	T_W12,	11000111B, 10111011B
	DB	T_W12,	10000011B, 10010011B
	DB	T_W12,	10010001B, 10010010B
	DB	T_W12,	10111010B, 11010101B
	DB	T_W12,	10101011B, 11010111B
	DB	T_W12,	10000011B, 10010011B
	DB	T_W12,	10010010B, 10010001B
	DB	T_W12,	11111111B, 11111111B
	DB	T_KONEC

;8vstup. hradlo s program. funkci
;				    E
;4048			 B    D     X    AC
I4048T:		;	ZKEFGHKY   NPABCDKK
	DB	T_VV2,	01111110B, 01111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10111110B, 11111100B	;NOR
	DB	T_W12,	10000011B, 10000000B
	DB	T_W1,	10100010B
	DB	T_W1,	10010010B
	DB	T_W1,	10001010B
	DB	T_W1,	10000110B
	DB	T_W12,	10000010B, 11000000B
	DB	T_W12,	10000010B, 10100000B
	DB	T_W12,	10000010B, 10010000B
	DB	T_W12,	10000001B, 10010000B
	DB	T_W12,	10000010B, 10001000B
	DB	T_W12,	10000010B, 10000100B
	DB	T_W12,	10111111B, 11111101B	;OR
	DB	T_W12,	10000010B, 10000001B
	DB	T_W1,	10000001B
	DB	T_W1,	10100011B
	DB	T_W1,	10010011B
	DB	T_W1,	10001011B
	DB	T_W1,	10000111B
	DB	T_W12,	10000011B, 11000001B
	DB	T_W12,	10000011B, 10100001B
	DB	T_W12,	10000011B, 10010001B
	DB	T_W12,	10000011B, 10001001B
	DB	T_W12,	10000011B, 10000101B
	DB	T_W12,	11111110B, 11111100B	;OR-AND
	DB	T_W12,	11000010B, 10000000B
	DB	T_W12,	11111111B, 10111100B
	DB	T_W12,	11000010B, 11000000B
	DB	T_W12,	11100011B, 10100000B
	DB	T_W12,	11010011B, 10010000B
	DB	T_W12,	11001011B, 10001000B
	DB	T_W12,	11000111B, 10000100B
	DB	T_W12,	11010110B, 11000000B
	DB	T_W12,	11101010B, 10000000B
	DB	T_W1,	11101001B
	DB	T_W12,	11000010B, 11010100B
	DB	T_W12,	11000010B, 10101000B
	DB	T_W12,	11111111B, 11111101B	;OR-NAND
	DB	T_W12,	11000011B, 10000001B
	DB	T_W12,	11111110B, 10111101B
	DB	T_W12,	11000011B, 11000001B
	DB	T_W12,	11100010B, 10100001B
	DB	T_W12,	11010010B, 10010001B
	DB	T_W1,	11010001B
	DB	T_W12,	11001010B, 10001001B
	DB	T_W12,	11000110B, 10000101B
	DB	T_W12,	11010111B, 11000001B
	DB	T_W12,	11101011B, 10000001B
	DB	T_W12,	11000011B, 11010101B
	DB	T_W12,	11000011B, 10101001B
	DB	T_W12,	10000010B, 10000010B	;AND
	DB	T_W1,	10000001B
	DB	T_W12,	10111110B, 11111110B
	DB	T_W12,	10111111B, 10111110B
	DB	T_W1,	10011110B
	DB	T_W1,	10101110B
	DB	T_W1,	10110110B
	DB	T_W1,	10111010B
	DB	T_W12,	10111110B, 10011110B
	DB	T_W12,	10111110B, 10101110B
	DB	T_W12,	10111110B, 10110110B
	DB	T_W12,	10111110B, 10111010B
	DB	T_W12,	10000011B, 10000011B	;NAND
	DB	T_W12,	10111111B, 11111111B
	DB	T_W12,	10111110B, 10111111B
	DB	T_W1,	10111101B
	DB	T_W1,	10011111B
	DB	T_W1,	10101111B
	DB	T_W1,	10110111B
	DB	T_W1,	10111011B
	DB	T_W12,	10111111B, 10011111B
	DB	T_W12,	10111111B, 10101111B
	DB	T_W12,	10111111B, 10110111B
	DB	T_W12,	10111111B, 10111011B
	DB	T_W12,	11000011B, 10000010B	;AND-OR
	DB	T_W12,	11111110B, 11111110B
	DB	T_W12,	11000010B, 10111110B
	DB	T_W12,	11000010B, 11000010B
	DB	T_W12,	11111110B, 10000010B
	DB	T_W12,	11000010B, 10000011B	;AND-NOR
	DB	T_W12,	11111111B, 11111111B
	DB	T_W12,	11000011B, 10111111B
	DB	T_W12,	11000011B, 11000011B
	DB	T_W12,	11111111B, 10000011B
	DB	T_KONEC

;8NAND
;4068			 N    _		  N
I4068TA:	;	ZCDCBAYX   XNYHGFEC
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000011B, 11100001B
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	11000011B, 11100001B
	DB	T_W12,	11100011B, 11100001B
	DB	T_W12,	11010011B, 11100001B
	DB	T_W12,	11001011B, 11100001B
	DB	T_W12,	11000111B, 11100001B
	DB	T_W12,	11000011B, 11110001B
	DB	T_W12,	11000011B, 11101001B
	DB	T_W12,	11000011B, 11100101B
	DB	T_W12,	11000011B, 11100011B
	DB	T_KONEC

;8NAND - AND
;4068			 N    _		  N
I4068T:		;	ZCDCBAYX   XNYHGFEC
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111111B, 11011111B
	DB	T_W12,	11000001B, 11100001B
	DB	T_W12,	11100001B, 11100001B
	DB	T_W12,	11010001B, 11100001B
	DB	T_W12,	11001001B, 11100001B
	DB	T_W12,	11000101B, 11100001B
	DB	T_W12,	11000001B, 11110001B
	DB	T_W12,	11000001B, 11101001B
	DB	T_W12,	11000001B, 11100101B
	DB	T_W12,	11000001B, 11100011B
	DB	T_KONEC

;4x 2OR
;4071			 222111      444333
I4071T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10001011B, 11101111B
	DB	T_W12,	10111101B, 11111000B
	DB	T_W12,	11011111B, 11000101B
	DB	T_W12,	11110001B, 11011110B
	DB	T_KONEC

;2x 4OR
;4072
I4072T:		;	ZXDCBAYX   XNYABCDX
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111111B, 11000001B
	DB	T_W12,	11011111B, 11110001B
	DB	T_W12,	11101111B, 11101001B
	DB	T_W12,	11110111B, 11100101B
	DB	T_W12,	11111011B, 11100011B
	DB	T_W12,	11000001B, 11111111B
	DB	T_W12,	11100011B, 11101111B
	DB	T_W12,	11010011B, 11110111B
	DB	T_W12,	11001011B, 11111011B
	DB	T_W12,	11000111B, 11111101B
	DB	T_KONEC

;3x 3AND
;4073			 111122      333322
I4073T:		;	ZYCBABAX   XNCBAYYC
	DB	T_VV2,	00111110B, 00111001B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000111B, 11100011B
	DB	T_W12,	10100001B, 11101001B
	DB	T_W12,	10010101B, 11110001B
	DB	T_W12,	10110011B, 11111101B
	DB	T_W12,	10001111B, 11000000B
	DB	T_W12,	10101001B, 11001000B
	DB	T_W12,	10011101B, 11010000B
	DB	T_W12,	11111011B, 11011000B
	DB	T_KONEC

;3x 3OR
;4075			 111122      333322
I4075T:		;	ZYCBABAX   XNCBAYYC
	DB	T_VV2,	00111110B, 00111001B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000111B, 11100111B
	DB	T_W12,	11100001B, 11101111B
	DB	T_W12,	11010101B, 11110111B
	DB	T_W12,	11110011B, 11111111B
	DB	T_W12,	11001111B, 11000010B
	DB	T_W12,	11101001B, 11001100B
	DB	T_W12,	11011101B, 11010110B
	DB	T_W12,	11111011B, 11011110B
	DB	T_KONEC

;4x K.O. D, TS		      __	 __
;			      10	 10
;4076			 C3210EE    M0123EE
I4076T:		;	ZPQQQQQQ   NRDDDDDD
	DB	T_VV2,	01000011B, 01111111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 11101000B
	DB	T_W12,	10111101B, 10101000B
	DB	T_W12,	11010100B, 10101000B
	DB	T_W12,	10111110B, 10010100B
	DB	T_W12,	11101000B, 10010100B
	DB	T_W12,	10111101B, 10011001B
	DB	T_W12,	11101000B, 10011001B
	DB	T_W12,	10111111B, 10100110B
	DB	T_W12,	11101000B, 10100110B
	DB	T_W12,	10111111B, 10011000B
	DB	T_W12,	11011000B, 10011000B
	DB	T_W12,	10011000B, 10100111B
	DB	T_W12,	11011000B, 10100111B
	DB	T_KONEC

;4x 2EX-NOR
;4077			 222111      444333
I4077T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10010011B, 11100111B
	DB	T_W12,	10100101B, 11111001B
	DB	T_W12,	11001111B, 11001010B
	DB	T_W12,	11111001B, 11010100B
	DB	T_KONEC

;8NOR
;4078			 N    _		  N
I4078TA:	;	ZCDCBAYX   XNYHGFEC
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000011B, 11100001B
	DB	T_GOTO
	DW	G4078T

;8NOR - OR
;4078			 N    _		  N
I4078T:		;	ZCDCBAYX   XNYHGFEC
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000001B, 11100001B
G4078T:	DB	T_W12,	11100011B, 11000001B
	DB	T_W12,	11010011B, 11000001B
	DB	T_W12,	11001011B, 11000001B
	DB	T_W12,	11000111B, 11000001B
	DB	T_W12,	11000011B, 11010001B
	DB	T_W12,	11000011B, 11001001B
	DB	T_W12,	11000011B, 11000101B
	DB	T_W12,	11000011B, 11000011B
	DB	T_W12,	11111111B, 11011111B
	DB	T_KONEC

;4x 2AND
;4081			 222111      444333
I4081T:		;	ZABYYBAX   XNABYYBA
	DB	T_VV2,	01100110B, 00110011B
	DB	T_NAP,	DIL14
	DB	T_W12,	10000011B, 11100111B
	DB	T_W12,	10100101B, 11111000B
	DB	T_W12,	11001111B, 11000001B
	DB	T_W12,	11110001B, 11010010B
	DB	T_KONEC

;2x 4AND
;4082
I4082T:		;	ZXDCBAYX   XNYABCDX
	DB	T_NZ2,	01000001B, 10000001B
	DB	T_VV2,	00111100B, 00011110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11111111B, 11000001B
	DB	T_W12,	11011101B, 11010001B
	DB	T_W12,	11101101B, 11001001B
	DB	T_W12,	11110101B, 11000101B
	DB	T_W12,	11111001B, 11000011B
	DB	T_W12,	11000001B, 11111111B
	DB	T_W12,	11100001B, 11001111B
	DB	T_W12,	11010001B, 11010111B
	DB	T_W12,	11001001B, 11011011B
	DB	T_W12,	11000101B, 11011101B
	DB	T_KONEC

;8bit. posuv. reg. se stradcem par. vystupem, TS
;			       S	 ,
;4094			 3210C T    O4567SS
I4094T:		;	ZQQQQPDR   NEQQQQQQ
	DB	T_vv2,	00000111B, 01000000B
	DB	T_NAP,	DIL16
	DB	T_O12,	10000001B, 11000000B
	DB	T_O1,	10000101B	;0
	DB	T_O1,	10000011B
	DB	T_O1,	10000111B	;10
	DB	T_O1,	10000001B
	DB	T_O1,	10000101B	;010
	DB	T_O1,	10000011B
	DB	T_O1,	10000111B	;1010
	DB	T_O1,	10000001B
	DB	T_O1,	10000101B	;01010
	DB	T_O1,	10000011B
	DB	T_O1,	10000111B	;101010
	DB	T_O1,	10000001B
	DB	T_O1,	10000101B	;0101010
	DB	T_O1,	10000011B
	DB	T_O1,	10000111B	;10101010 NASUNUT DEFINOVANY OBSAH
	DB	T_W12,	10101011B, 11101000B
	DB	T_W12,	11011111B, 11010101B	;11010101
	DB	T_W12,	11011001B, 11010111B
	DB	T_W12,	10110101B, 11101010B	;01101010
	DB	T_W12,	10110001B, 11101000B
	DB	T_W12,	11100101B, 11010101B	;00110101
	DB	T_W12,	11100011B, 11010111B
	DB	T_W12,	11001111B, 11101010B	;10011010
	DB	T_W12,	11001001B, 11101000B
	DB	T_W12,	10010101B, 11110101B	;01001101
	DB	T_W12,	10010011B, 11110111B
	DB	T_W12,	10101111B, 11011010B	;10100110
	DB	T_W12,	10101001B, 11011000B
	DB	T_W12,	11010101B, 11001101B	;01010011
	DB	T_W12,	11010011B, 11001111B
	DB	T_W12,	10101111B, 11100111B	;10101001
	DB	T_W12,	10101001B, 11100111B
	DB	T_W12,	11010101B, 11010010B	;01010100
	DB	T_W12,	11010011B, 11010000B
	DB	T_W12,	10101111B, 11101000B	;10101010
	DB	T_W12,	11111001B, 10111100B
	DB	T_W12,	11111101B, 10111101B	;01010101
	DB	T_W12,	11010010B, 11010111B
	DB	T_W12,	11010110B, 11010110B	;10101010
	DB	T_W12,	10101001B, 11101000B
	DB	T_W12,	11010101B, 11010101B	;01010101
	DB	T_W12,	11010011B, 11010111B
	DB	T_W12,	10101111B, 11101010B	;10101010
	DB	T_KONEC

;K.O. J-K s SR
;4095			 /321         C213
I4095T:		;	ZQJJJRXX   XNSPKKKQ
	DB	T_NZ2,	00000011B, 10000000B
	DB	T_VV2,	00111100B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11000111B, 11000000B	;A-RESET
	DB	T_W12,	10100011B, 11100001B	;A-SET
	DB	T_W12,	10111011B, 11000001B
	DB	T_W2,		   11010001B
	DB	T_W12,	10111011B, 11000001B	;S-SET
	DB	T_W12,	10000011B, 11001111B
	DB	T_W2,		   11011111B
	DB	T_W12,	11000011B, 11001110B	;S-RESET
	DB	T_W12,	11111011B, 11001110B
	DB	T_W2,		   11011110B
	DB	T_W12,	10111011B, 11001111B	;T
	DB	T_W2,		   11011111B
	DB	T_W12,	11111011B, 11001110B	;T
	DB	T_W12,	11101011B, 11000100B
	DB	T_W2,		   11010100B
	DB	T_W12,	11101011B, 11000100B	;NIC
	DB	T_W12,	11010011B, 11001010B
	DB	T_W2,		   11011010B
	DB	T_W12,	11010011B, 11001010B	;NIC
	DB	T_KONEC

;K.O. J-K s SR		  _		 _
;4096			 _321         C213
I4096T:		;	ZQJJJRXX   XNSPKKKQ
	DB	T_NZ2,	00000011B, 10000000B
	DB	T_VV2,	00111100B, 00111110B
	DB	T_NAP,	DIL14
	DB	T_W12,	11100111B, 11000010B	;A-RESET
	DB	T_W12,	10000011B, 11100011B	;A-SET
	DB	T_W12,	10011011B, 11000011B
	DB	T_W2,		   11010011B
	DB	T_W12,	10011011B, 11000011B	;S-SET
	DB	T_W12,	10100011B, 11001101B
	DB	T_W2,		   11011101B
	DB	T_W12,	11100011B, 11001100B	;S-RESET
	DB	T_W12,	11011011B, 11001100B
	DB	T_W2,		   11011100B
	DB	T_W12,	10011011B, 11001101B	;T
	DB	T_W2,		   11011101B
	DB	T_W12,	11011011B, 11001100B	;T
	DB	T_W12,	11001011B, 11000110B
	DB	T_W2,		   11010110B
	DB	T_W12,	11001011B, 11000110B	;NIC
	DB	T_W12,	11110011B, 11001000B
	DB	T_W2,		   11011000B
	DB	T_W12,	11110011B, 11001000B	;NIC
	DB	T_KONEC

;8bit. stradac (adresonatelna pamet)
;4099			 210W  7    6543210
I4099T:		;	ZAAADDRQ   NQQQQQQQ
	DB	T_VV2,	01111110B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101110B, 10000000B	;RESET
	DB	T_W12,	10000110B, 10000001B	;DEMULTIPLEXR
	DB	T_W12,	10010110B, 10000010B
	DB	T_W12,	10100110B, 10000100B
	DB	T_W12,	10110110B, 10001000B
	DB	T_W12,	11000110B, 10010000B
	DB	T_W12,	11010110B, 10100000B
	DB	T_W12,	11100110B, 11000000B
	DB	T_W12,	11110111B, 10000000B
	DB	T_W12,	10101110B, 10000000B	;RESET
	DB	T_W12,	10000100B, 10000001B	;ZAPIS 1
	DB	T_W12,	10001100B, 10000001B
	DB	T_W12,	10010100B, 10000011B
	DB	T_W12,	10011100B, 10000011B
	DB	T_W12,	10100100B, 10000111B
	DB	T_W12,	10101100B, 10000111B
	DB	T_W12,	10110100B, 10001111B
	DB	T_W12,	10111100B, 10001111B
	DB	T_W12,	11000100B, 10011111B
	DB	T_W12,	11001100B, 10011111B
	DB	T_W12,	11010100B, 10111111B
	DB	T_W12,	11011100B, 10111111B
	DB	T_W12,	11100100B, 11111111B
	DB	T_W12,	11101100B, 11111111B
	DB	T_W12,	11110101B, 11111111B
	DB	T_W12,	11111101B, 11111111B
	DB	T_W12,	10000001B, 11111110B	;ZAPIS 0
	DB	T_W12,	10001001B, 11111110B
	DB	T_W12,	10010001B, 11111100B
	DB	T_W12,	10011001B, 11111100B
	DB	T_W12,	10100001B, 11111000B
	DB	T_W12,	10101001B, 11111000B
	DB	T_W12,	10110001B, 11110000B
	DB	T_W12,	10111001B, 11110000B
	DB	T_W12,	11000001B, 11100000B
	DB	T_W12,	11001001B, 11100000B
	DB	T_W12,	11010001B, 11000000B
	DB	T_W12,	11011001B, 11000000B
	DB	T_W12,	11100001B, 10000000B
	DB	T_W12,	11101001B, 10000000B
	DB	T_W12,	11110000B, 10000000B
	DB	T_W12,	11111000B, 10000000B
	DB	T_KONEC

;dek. BIN/7seg. se stradac. ITRON SK
;			   ___
;4311			 03EBL21
I4311T: 	;	ZAALITAA   Nfgabcde
	DB	T_VV2,	01111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11010101B, 10000000B	;ZHASNUTO
	DB	T_W12,	10101010B, 11111111B	;TEST
	DB	T_W12,	10001100B, 11011111B	;0
	DB	T_W12,	11001100B, 10001100B	;1
	DB	T_W12,	10001101B, 10111011B	;2
	DB	T_W12,	11001101B, 10111110B	;3
	DB	T_W12,	10001110B, 11101100B	;4
	DB	T_W12,	11001110B, 11110110B	;5
	DB	T_W12,	10001111B, 11110111B	;6
	DB	T_W12,	11001111B, 10011100B	;7
	DB	T_W12,	10101100B, 11111111B	;8
	DB	T_W12,	11101100B, 11111100B	;9
	DB	T_W12,	10101101B, 11111101B	;10 - A
	DB	T_W12,	11101101B, 11100111B	;11 - b
	DB	T_W12,	10101110B, 11010011B	;12 - c
	DB	T_W12,	11101110B, 10101111B	;13 - d
	DB	T_W12,	10101111B, 11110011B	;14 - E
	DB	T_W12,	11101111B, 11110001B	;15 - F
	DB	T_W12,	10001111B, 11110111B	;6
	DB	T_O1,	10011111B		;ZACHIT
	DB	T_W12,	11111100B, 11110111B	;6 
	DB	T_W12,	11101100B, 11111100B	;9
	DB	T_O1,	11111100B		;ZACHIT
	DB	T_W12,	10011111B, 11111100B	;9
	DB	T_KONEC

;6x strob. invert. odelovac TS
;			    _	       _
;4502			 110E022    556E433
I4502T:		;	ZQDQODQD   NDQDIQDQ
	DB	T_VV2,	00101101B, 01011010B
	DB	T_NAP,	DIL16
	DB	T_W12,	10100101B, 10100101B
	DB	T_W12,	11010010B, 11010010B
	DB	T_W12,	11011010B, 10100101B
	DB	T_W12,	10100101B, 11011010B
	DB	T_KONEC

;dek. BCD/7 seg. se stradac. ITRON sK
;			   ___
;4511			 03EBL21
I4511T: 	;	ZAALITAA   Nfgabcde
	DB	T_VV2,	01111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101101B, 10000000B	;10
	DB	T_W12,	11101101B, 10000000B	;11
	DB	T_W12,	10101110B, 10000000B	;12
	DB	T_W12,	11101110B, 10000000B	;13
	DB	T_W12,	10101111B, 10000000B	;14
	DB	T_W12,	11101111B, 10000000B	;15
	DB	T_W12,	10001100B, 11011111B	;0
	DB	T_W12,	11001100B, 10001100B	;1
	DB	T_W12,	10001101B, 10111011B	;2
	DB	T_W12,	11001101B, 10111110B	;3
	DB	T_W12,	10001110B, 11101100B	;4
	DB	T_W12,	11001110B, 11110110B	;5
	DB	T_W12,	10001111B, 11100111B	;6
	DB	T_W12,	11001111B, 10011100B	;7
	DB	T_W12,	10101100B, 11111111B	;8
	DB	T_W12,	11101100B, 11111100B	;9
	DB	T_W12,	10001010B, 11111111B	;TEST
	DB	T_W12,	11100100B, 10000000B	;ZHASNUTO
	DB	T_W12,	10001111B, 11100111B	;6
	DB	T_W1,	10011111B
	DB	T_W12,	11011101B, 11100111B	;6 ZACHYT
	DB	T_W12,	11101100B, 11111100B	;9
	DB	T_W1,	11111100B
	DB	T_W12,	10111110B, 11111100B	;9 ZACHYT
	DB	T_KONEC

;vstup. multiplex TS		    _
;4512			 6543210    E 210_7
I4512T:		;	ZIIIIIII   NOQAAAEI
	DB	T_VV2,	01111111B, 01011111B
	DB	T_NAP,	DIL16
	DB	T_W12,	10101010B, 10000001B
	DB	T_W2,		   10100101B
	DB	T_W2,		   10001001B
	DB	T_W2,		   10101101B
	DB	T_W2,		   10010001B
	DB	T_W2,		   10110101B
	DB	T_W2,		   10011001B
	DB	T_W2,		   10111101B
	DB	T_W12,	11010101B, 10100000B
	DB	T_W2,		   10000100B
	DB	T_W2,		   10101000B
	DB	T_W2,		   10001100B
	DB	T_W2,		   10110000B
	DB	T_W2,		   10010100B
	DB	T_W2,		   10111000B
	DB	T_W2,		   10011100B
	DB	T_W12,	11111111B, 10010111B
	DB	T_W12,	10000000B, 11110110B
	DB	T_KONEC

;dekoder 1 z 16 se stradacem
;				   11  1111
;4515			 0213456   01894523    _32710E
I4515T:		;	ZQQQQQQQ   QQQQQQQQ   NEAAQAAL
	DB	T_VV3,	00000000B, 00000000B, 01110111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10111111B, 11111111B, 10001001B
	DB	T_W123,	11101111B, 11111111B, 10001011B
	DB	T_W123,	11011111B, 11111111B, 10001101B
	DB	T_W123,	11110111B, 11111111B, 10001111B
	DB	T_W123,	11111011B, 11111111B, 10011001B
	DB	T_W123,	11111101B, 11111111B, 10011011B
	DB	T_W123,	11111110B, 11111111B, 10011101B
	DB	T_W123,	11111111B, 11111111B, 10010111B
	DB	T_W123,	11111111B, 11011111B, 10101001B
	DB	T_W123,	11111111B, 11101111B, 10101011B
	DB	T_W123,	11111111B, 01111111B, 10101101B
	DB	T_W123,	11111111B, 10111111B, 10101111B
	DB	T_W123,	11111111B, 11111101B, 10111001B
	DB	T_W123,	11111111B, 11111110B, 10111011B
	DB	T_W123,	11111111B, 11110111B, 10111101B
	DB	T_W123,	11111111B, 11111011B, 10111111B
	DB	T_W123,	11111111B, 11111111B, 11101011B
	DB	T_W3,			      11101010B
	DB	T_W123,	11111111B, 11101111B, 10011100B
	DB	T_W123,	11111110B, 11111111B, 10011101B
	DB	T_W3,			      10011100B
	DB	T_W123,	11111110B, 11111111B, 10101010B
	DB	T_KONEC

;sync. vratny prog. BIN citac		 _
;			 _ _		 D
;4516			 T0C033P    C2211/M
I4516T:		;	ZCQEPPQL   NPQPPQUR
	DB	T_VV2,	00011101B, 01011011B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000001B, 10000011B	;RESET
	DB	T_W12,	11000100B, 10010010B
	DB	T_W12,	11010111B, 10110010B
	DB	T_W12,	11011010B, 10101010B
	DB	T_W12,	11101001B, 10001110B
	DB	T_W12,	11100000B, 10000110B
	DB	T_W12,	11011100B, 10011011B	;RESET
	DB	T_W12,	11010000B, 11000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	11010000B, 11000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	11010000B, 11000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	11100000B, 11000010B	;1
	DB	T_W2,		   10000010B
	DB	T_W12,	11000000B, 11000110B	;2
	DB	T_W2,		   10000110B
	DB	T_W12,	11100000B, 11000110B	;3
	DB	T_W2,		   10000110B
	DB	T_W12,	11000000B, 11100010B	;4
	DB	T_W2,		   10100010B
	DB	T_W12,	11100000B, 11100010B	;5
	DB	T_W2,		   10100010B
	DB	T_W12,	11000000B, 11100110B	;6
	DB	T_W2,		   10100110B
	DB	T_W12,	11100000B, 11100110B	;7
	DB	T_W2,		   10100110B
	DB	T_W12,	11000010B, 11000010B	;8
	DB	T_W2,		   10000010B
	DB	T_W12,	11100010B, 11000010B	;9
	DB	T_W2,		   10000010B
	DB	T_W12,	11000010B, 11000110B	;10
	DB	T_W2,		   10000110B
	DB	T_W12,	11100010B, 11000110B	;11
	DB	T_W2,		   10000110B
	DB	T_W12,	11000010B, 11100010B	;12
	DB	T_W2,		   10100010B
	DB	T_W12,	11100010B, 11100010B	;13
	DB	T_W2,		   10100010B
	DB	T_W12,	11000010B, 11100110B	;14
	DB	T_W2,		   10100110B
	DB	T_W12,	10100010B, 11100110B	;15
	DB	T_W2,		   10100110B
	DB	T_W12,	11000000B, 11000010B	;0
	DB	T_W2,		   10000010B
	DB	T_W12,	11100000B, 11000010B	;1
	DB	T_W2,		   10000000B
	DB	T_W12,	10000000B, 11000000B	;0
	DB	T_W2,		   10000000B
	DB	T_W12,	11100010B, 11100100B	;15
	DB	T_W2,		   10100100B
	DB	T_W12,	11000010B, 11100100B	;14
	DB	T_W2,		   10100100B
	DB	T_W12,	11100010B, 11100000B	;13
	DB	T_W2,		   10100000B
	DB	T_W12,	11000010B, 11100000B	;12
	DB	T_W2,		   10100000B
	DB	T_W12,	11100010B, 11000100B	;11
	DB	T_W2,		   10000100B
	DB	T_W12,	11000010B, 11000100B	;10
	DB	T_GOTO
	DW	G4029T

;2x BCD citac		      _		 _
;4518			 M3210CC    M3210CC
I4518T:		;	ZRQQQQPP   NRQQQQPP
	DB	T_GOSUB
	DW	G4518G
G4518T:	DB	T_W12,	10000000B, 10000011B	;0
	DB	T_W12,	10000010B, 10000010B
	DB	T_W12,	10000100B, 10000111B	;1
	DB	T_KONEC
;-------------------------------
;SPOLECNA CAST PRO 4518, 4520
G4518G:	DB	T_VV2,	01000011B, 01000011B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000010B, 11000010B
	DB	T_W12,	10000010B, 10000010B	;0
	DB	T_W12,	10000111B, 10000100B	;1
	DB	T_W12,	10000110B, 10000110B
	DB	T_W12,	10001011B, 10001000B	;2
	DB	T_W12,	10001010B, 10001010B
	DB	T_W12,	10001111B, 10001100B	;3
	DB	T_W12,	10001110B, 10001110B
	DB	T_W12,	10010011B, 10010000B	;4
	DB	T_W12,	10010010B, 10010010B
	DB	T_W12,	10010111B, 10010100B	;5
	DB	T_W12,	10010110B, 10010110B
	DB	T_W12,	10011011B, 10011000B	;6
	DB	T_W12,	10011010B, 10011010B
	DB	T_W12,	10011111B, 10011111B	;7
	DB	T_W12,	10011110B, 10011110B
	DB	T_W12,	10100000B, 10100011B	;8
	DB	T_W12,	10100010B, 10100010B
	DB	T_W12,	10100100B, 10100111B	;9
	DB	T_W12,	10100110B, 10100110B
	DB	T_RET

;2x BIN citac		      _		 _
;4520			 M3210CC    M3210CC
I4520T:		;	ZRQQQQPP   NRQQQQPP
	DB	T_GOSUB
	DW	G4518G
	DB	T_W12,	10101000B, 10101011B	;10
	DB	T_W12,	10101010B, 10101010B
	DB	T_W12,	10101100B, 10101111B	;11
	DB	T_W12,	10101110B, 10101110B
	DB	T_W12,	10110000B, 10110011B	;12
	DB	T_W12,	10110010B, 10110010B
	DB	T_W12,	10110100B, 10110111B	;13
	DB	T_W12,	10110110B, 10110110B
	DB	T_W12,	10111000B, 10111011B	;14
	DB	T_W12,	10111010B, 10111010B
	DB	T_W12,	10111100B, 10111111B	;15
	DB	T_W12,	10111110B, 10111110B
	DB	T_GOTO
	DW	G4518T

;12bit. rener. parity
;				       11
;4531			 0123456    78901
I4531T:		;	ZDDDDDDD   NDDDDDWQ
	DB	T_VV2,	01111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 10000000B
	DB	T_W12,	11111111B, 11111111B
	DB	T_W12,	10101010B, 10101010B
	DB	T_W12,	11010101B, 11010101B
	DB	T_W12,	11100110B, 10011000B
	DB	T_W12,	10011001B, 11100111B
	DB	T_KONEC

;8vstup. prioritni koder
;4532			 12E7654    EG32100
I4532T: 	;	ZQQIDDDD   NOSDDDDQ
	DB	T_VV2,	00011111B, 00011110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10001010B, 10010100B
	DB	T_W12,	10010000B, 11000000B
	DB	T_W12,	11111010B, 10110101B
	DB	T_W12,	11110101B, 10101010B
	DB	T_W12,	10110010B, 10110101B
	DB	T_W12,	10110001B, 10101010B
	DB	T_W12,	11010000B, 10110101B
	DB	T_W12,	11010000B, 10101010B
	DB	T_W12,	10010000B, 10100101B
	DB	T_W12,	10010000B, 10100010B
	DB	T_KONEC

;dek. BCD/7 seg. se stradac. LCD LED SK/A
;4543			 BP    L
I4543T:		;	ZIHADBCE   Nfgedcba
	DB	T_VV2,	01111111B, 00000000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000001B, 11011111B	;0 SK
	DB	T_W12,	10010001B, 10000110B	;1
	DB	T_W12,	10000101B, 10111011B	;2
	DB	T_W12,	10010101B, 10101111B	;3
	DB	T_W12,	10000011B, 11100110B	;4
	DB	T_W12,	10010011B, 11101101B	;5
	DB	T_W12,	10000111B, 11111101B	;6
	DB	T_W12,	10010111B, 10000111B	;7
	DB	T_W12,	10001001B, 11111111B	;8
	DB	T_W12,	10011001B, 11101111B	;9
	DB	T_W12,	10001101B, 10000000B	;10
	DB	T_W12,	10011101B, 10000000B	;11
	DB	T_W12,	10001011B, 10000000B	;12
	DB	T_W12,	10011011B, 10000000B	;13
	DB	T_W12,	10001111B, 10000000B	;14
	DB	T_W12,	10011111B, 10000000B	;15
	DB	T_W12,	10100001B, 10100000B	;0 SA
	DB	T_W12,	10110001B, 11111001B	;1
	DB	T_W12,	10100101B, 11000100B	;2
	DB	T_W12,	10110101B, 11010000B	;3
	DB	T_W12,	10100011B, 10011001B	;4
	DB	T_W12,	10110011B, 10010010B	;5
	DB	T_W12,	10100111B, 10000010B	;6
	DB	T_W12,	10110111B, 11111000B	;7
	DB	T_W12,	10101001B, 10000000B	;8
	DB	T_W12,	10111001B, 10010000B	;9
	DB	T_W12,	10101101B, 11111111B	;10
	DB	T_W12,	10111101B, 11111111B	;11
	DB	T_W12,	10101011B, 11111111B	;12
	DB	T_W12,	10111011B, 11111111B	;13
	DB	T_W12,	10101111B, 11111111B	;14
	DB	T_W12,	10111111B, 11111111B	;15
	DB	T_W12,	11010111B, 10000000B	;ZHASNUTO
	DB	T_W12,	11101011B, 11111111B
	DB	T_W12,	10000111B, 11111101B	;6 SK
	DB	T_O1,	10000110B
	DB	T_W12,	10011000B, 11111101B
	DB	T_W12,	10111001B, 10010000B	;9 SA
	DB	T_O1,	10111000B
	DB	T_W12,	10100110B, 10010000B
	DB	T_KONEC

;2x dekoder 1 ze 4 H
;4555			 321010_    _010123
I4555T:		;	ZQQQQAAE   NEAAQQQQ
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10001000B, 11100000B
	DB	T_W12,	10010010B, 10001000B
	DB	T_W12,	10100100B, 10100100B
	DB	T_W12,	11000110B, 10010010B
	DB	T_W12,	10000011B, 10110001B
	DB	T_KONEC

;2x dekoder 1 ze 4 L
;4556			 321010_    _010123
I4556T:		;	ZQQQQAAE   NEAAQQQQ
	DB	T_VV2,	00000111B, 01110000B
	DB	T_NAP,	DIL16
	DB	T_W12,	11110000B, 11101111B
	DB	T_W12,	11101010B, 10000111B
	DB	T_W12,	11011100B, 10101011B
	DB	T_W12,	10111110B, 10011101B
	DB	T_W12,	11111011B, 10111110B
	DB	T_KONEC

;paralerni BCD scitacka
;4560			 C332211    000123C
I4560T:		;	ZIBABABA   NABSSSSO
	DB	T_VV2,	01111111B, 01100000B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 10000000B	;0+0+0=0
	DB	T_W12,	11000000B, 10010000B	;0+0+1=1
	DB	T_W12,	10000110B, 10111100B	;4+3+0=7
	DB	T_W12,	11000110B, 10100010B	;4+3+1=8
	DB	T_W12,	10001101B, 11010001B	;7+4+0=11
	DB	T_W12,	11001101B, 11001001B	;7+4+1=12
	DB	T_W12,	10011000B, 10111001B	;8+5+0=13
	DB	T_W12,	10100101B, 10000101B	;6+8+0=14
	DB	T_W12,	11110000B, 11110011B	;9+9+1=19
	DB	T_KONEC

;4bit. komparator
;4585			 1=<>=22    33><001		     3210 3210 ><= ><=
I4585T:		;	ZAIIIQAB   NABQQBAB		     AAAA BBBB III QQQ
	DB	T_VV2,	01111011B, 01100111B	;	     3210 3210 ><= ><=
	DB	T_NAP,	DIL16		     	;	     AAAA BBBB III QQQ
	DB	T_W12,	10101010B, 11010101B	;A>B	     1100 0011 101 100
	DB	T_W12,	11100001B, 10101010B	;Ab - A=B   1010 1010 100 100
	DB	T_W12,	10100111B, 10000110B	;a=b - A=B   0101 0101 001 001
	DB	T_W12,	11010011B, 10001001B	;ab - A=B 1100 1100 111 011
	DB	T_W12,	11011011B, 11101001B	;a<>b - A=B  1110 1110 110 010
	DB	T_W12,	11000000B, 10000111B	;a..b - A=B  0011 0011 000 000
	DB	T_KONEC

;***********************
;* OSTATNI IO A 75XXX  *
;***********************

;4x vysilac/primac sbrnice (GPIB)
;MH8641			 DODBODB    BDOBDOD
I8641T:		;	ZB444333   N111222A
	DB	T_VV2,	01010010B, 00100101B
	DB	T_NAP,	DIL16
	DB	T_W12,	11001011B, 11001101B
	DB	T_W12,	11011001B, 11101000B
	DB	T_W12,	10001011B, 11001101B
	DB	T_W12,	10110001B, 10111000B
	DB	T_W12,	10001110B, 11000110B
	DB	T_W12,	11001011B, 11001101B
	DB	T_VV2,	01011011B, 01101101B
	DB	T_W12,	10110001B, 11100011B
	DB	T_W12,	11011011B, 10110111B
	DB	T_W12,	11100100B, 11001000B
	DB	T_W12,	10001110B, 10011101B
	DB	T_KONEC

;aproximacni registr 8bit.
;MHB1502		      _     _
;			  QQQQCD    QQQQQ_C
I1502T:		;	ZD3210C0   N77654SP
	DB	T_VV2,	01000000B, 00000011B
	DB	T_NAP,	DIL16
	DB	T_O12,	10000010B, 11000010B
	DB	T_O2,		   11000011B
	DB	T_O2,		   11000000B
	DB	T_W12,	10111110B, 11011111B	;VYCHOZI STAV
	DB	T_W12,	10111110B, 11011110B
	DB	T_W12,	11111111B, 10101111B
	DB	T_W12,	11111111B, 10101110B
	DB	T_W12,	10111110B, 10100111B
	DB	T_W12,	10111110B, 10100110B
	DB	T_W12,	11111111B, 10101011B
	DB	T_W12,	11111111B, 10101010B
	DB	T_W12,	10011110B, 10101011B
	DB	T_W12,	10011110B, 10101010B
	DB	T_W12,	11101111B, 10101011B
	DB	T_W12,	11101111B, 10101010B
	DB	T_W12,	10100110B, 10101011B
	DB	T_W12,	10100110B, 10101010B
	DB	T_W12,	11101011B, 10101011B
	DB	T_W12,	11101011B, 10101010B
	DB	T_W12,	10101000B, 10101011B
	DB	T_W12,	10101000B, 10101010B
	DB	T_W12,	11101001B, 10101011B
	DB	T_W12,	11101001B, 10101010B
	DB	T_W12,	11101001B, 10101011B
	DB	T_O12,	11000000B, 11000000B
	DB	T_W12,	11111111B, 11011111B	;VYCHOZI STAV
	DB	T_W12,	11111111B, 11011110B
	DB	T_W12,	10111110B, 11001111B
	DB	T_W12,	10111110B, 11001110B
	DB	T_W12,	11111111B, 11010111B
	DB	T_W12,	11111111B, 11010110B
	DB	T_W12,	10111110B, 11010011B
	DB	T_W12,	10111110B, 11010010B
	DB	T_W12,	11011111B, 11010111B
	DB	T_W12,	11011111B, 11010110B
	DB	T_W12,	10001110B, 11010111B
	DB	T_W12,	10001110B, 11010110B
	DB	T_W12,	11010111B, 11010111B
	DB	T_W12,	11010111B, 11010110B
	DB	T_W12,	10010010B, 11010111B
	DB	T_W12,	10010010B, 11010110B
	DB	T_W12,	11010101B, 11010111B
	DB	T_KONEC

;aproximacni registr 12bit.		       _
;MHB1504			   Q	       Q Q _
;			  NQQQQQ   1QQQQN_C    1N1QCD_
I1504T:		;	ZDC54321   09876CSP   N1C10C0E
	DB	T_VV3,	01000000B, 00000011B, 00000001B
	DB	T_NZ3,	00100000B, 00000100B, 00100000B
	DB	T_NAP,	DIL24
	DB	T_O123,	10100000B, 11000110B, 10100100B
	DB	T_O2,		   11000111B
	DB	T_O2,		   11000100B
	DB	T_W123,	10111111B, 11111111B, 11101100B ;VYCHOZI STAV
	DB	T_W123,	10111111B, 11111111B, 10111101B
	DB	T_W123,	11111111B, 11111110B, 10111101B
	DB	T_W123,	11111111B, 11111111B, 11101110B
	DB	T_W123,	10111111B, 11111110B, 11101110B
	DB	T_W123,	10111111B, 01111111B, 11101100B
	DB	T_W123,	11111111B, 01111110B, 11101100B
	DB	T_W123,	11111111B, 10111111B, 11101110B
	DB	T_W123,	10111111B, 10111110B, 11101110B
	DB	T_W123,	10111111B, 10011111B, 11101100B
	DB	T_W123,	11111111B, 10011110B, 11101100B
	DB	T_W123,	11111111B, 10101111B, 11101110B
	DB	T_W123,	10111111B, 10101110B, 11101110B
	DB	T_W123,	10111111B, 10100111B, 11101100B
	DB	T_W123,	11111111B, 10100110B, 11101100B
	DB	T_W123,	11101111B, 10101111B, 11101110B
	DB	T_W123,	10101111B, 10101110B, 11101110B
	DB	T_W123,	10100111B, 10101111B, 11101100B
	DB	T_W123,	11100111B, 10101110B, 11101100B
	DB	T_W123,	11101011B, 10101111B, 11101110B
	DB	T_W123,	10101011B, 10101110B, 11101110B
	DB	T_W123,	10101001B, 10101111B, 11101100B
	DB	T_W123,	11101001B, 10101110B, 11101100B
	DB	T_W123,	11101010B, 10101111B, 11101110B
	DB	T_W123,	10101010B, 10101110B, 11101110B
	DB	T_W123,	10101010B, 10101111B, 11100100B
	DB	T_W123,	11101010B, 10101110B, 11100100B
	DB	T_W123,	11101010B, 10101111B, 11101010B
	DB	T_W123,	10101010B, 10101110B, 11101010B
	DB	T_O123,	10100000B, 11000100B, 10100100B
	DB	T_W123,	10111111B, 11111111B, 11101100B ;VYCHOZI STAV
	DB	T_W123,	10111111B, 11111111B, 11101100B
	DB	T_W123,	11111111B, 11111110B, 11101100B
	DB	T_W123,	11111111B, 01111111B, 10111110B
	DB	T_W123,	10111111B, 01111110B, 10111110B
	DB	T_W123,	10111111B, 00111111B, 10111100B
	DB	T_W123,	11111111B, 00111110B, 10111100B
	DB	T_W123,	11111111B, 01011111B, 10111110B
	DB	T_W123,	10111111B, 01011110B, 10111110B
	DB	T_W123,	10111111B, 01001111B, 10111100B
	DB	T_W123,	11111111B, 01001110B, 10111100B
	DB	T_W123,	11111111B, 01010111B, 10111110B
	DB	T_W123,	10111111B, 01010110B, 10111110B
	DB	T_W123,	10101111B, 01010111B, 10111100B
	DB	T_W123,	11101111B, 01010110B, 10111100B
	DB	T_W123,	11110111B, 01010111B, 10111110B
	DB	T_W123,	10110111B, 01010110B, 10111110B
	DB	T_W123,	10110011B, 01010111B, 10111100B
	DB	T_W123,	11110011B, 01010110B, 10111100B
	DB	T_W123,	11110101B, 01010111B, 10111110B
	DB	T_W123,	10110101B, 01010110B, 10111110B
	DB	T_W123,	10110100B, 01010111B, 10111100B
	DB	T_W123,	11110100B, 01010110B, 10111100B
	DB	T_W123,	11110101B, 01010111B, 10110110B
	DB	T_W123,	10110101B, 01010110B, 10110110B
	DB	T_W123,	10110101B, 01010111B, 10110000B
	DB	T_W123,	11110101B, 01010110B, 10110000B
	DB	T_W123,	11110101B, 01010111B, 10110010B
	DB	T_W123,	10110101B, 01010110B, 10110010B
	DB	T_KONEC

;2X vysilac sbrnice (IBM 360/370) s R75123
;8T23, 75123		 1111111    2222222
I8T23T:		;	ZYFEDCBA   NFEDCBAY
	DB	T_VV2,	00111111B, 01111110B
	DB	T_NAP,	DIL16
	DB	T_W12,	10000000B, 11111111B
	DB	T_W12,	11110000B, 11000000B
	DB	T_W12,	11001111B, 10100000B
	DB	T_W12,	10000111B, 10001110B
	DB	T_W12,	10001011B, 10010110B
	DB	T_W12,	10001101B, 10011010B
	DB	T_W12,	10001110B, 10011100B
	DB	T_W12,	10010000B, 11100001B
	DB	T_W12,	10100000B, 10011111B
	DB	T_KONEC

;3x primac sbrnice (IBM 360/370)
;8T24, 75124		 2222211    1113333
I8T24T:		;	ZYBASRBA   NSRYASRY
	DB	T_VV2,	00111111B, 01101110B
	DB	T_NAP,	DIL16
	DB	T_W12,	11000011B, 11100001B
	DB	T_W12,	11000111B, 11001000B
	DB	T_W12,	10001011B, 10100100B
	DB	T_W12,	11001111B, 10001100B
	DB	T_W12,	11010010B, 11110011B
	DB	T_W12,	11010110B, 11001010B
	DB	T_W12,	10011010B, 10110111B
	DB	T_W12,	11011110B, 10011110B
	DB	T_W12,	11100001B, 11111110B
	DB	T_W12,	11100101B, 11000111B
	DB	T_W12,	10101001B, 10111010B
	DB	T_W12,	11101101B, 10010011B
	DB	T_W12,	10110000B, 11111100B
	DB	T_W12,	10110100B, 11000100B
	DB	T_W12,	10111000B, 10111000B
	DB	T_W12,	10111100B, 10010001B
	DB	T_KONEC

;4x vysilac/primac dat. sbrnice (GPIB)
;75160, 75163		 BBBBBBB   DDDDDDDP      DBT
I75160T:	;	Z8765432   2345678E   XXN11EXX
	DB	T_VV3,	00000000B, 11111111B, 00010100B	;D -> B
	DB	T_NAP,	DIL20
	DB	T_W123,	11111111B, 11111110B, 11111111B
	DB	T_W123,	11111111B, 11111111B, 11100111B
	DB	T_W123,	11111110B, 01111111B, 11111111B
	DB	T_W12,	11111101B, 10111111B
	DB	T_W12,	11111011B, 11011111B
	DB	T_W12,	11110111B, 11101111B
	DB	T_W12,	11101111B, 11110111B
	DB	T_W12,	11011111B, 11111011B
	DB	T_W12,	10111111B, 11111101B
	DB	T_W123,	10000000B, 00000001B, 11111111B
	DB	T_W123,	10000001B, 10000001B, 11100111B
	DB	T_W12,	10000010B, 01000001B
	DB	T_W12,	10000100B, 00100001B
	DB	T_W12,	10001000B, 00010001B
	DB	T_W12,	10010000B, 00001001B
	DB	T_W12,	10100000B, 00000101B
	DB	T_W12,	11000000B, 00000011B
	DB	T_VV3,	01111111B, 00000001B, 00001100B	;B -> D
	DB	T_W123,	11111111B, 11111111B, 11100011B
	DB	T_W123,	11111110B, 01111111B, 11111011B
	DB	T_W12,	11111101B, 10111111B
	DB	T_W12,	11111011B, 11011111B
	DB	T_W12,	11110111B, 11101111B
	DB	T_W12,	11101111B, 11110111B
	DB	T_W12,	11011111B, 11111011B
	DB	T_W12,	10111111B, 11111101B
	DB	T_W123,	10000000B, 00000001B, 11111011B
	DB	T_W123,	10000001B, 10000001B, 11100011B
	DB	T_W12,	10000010B, 01000001B
	DB	T_W12,	10000100B, 00100001B
	DB	T_W12,	10001000B, 00010001B
	DB	T_W12,	10010000B, 00001001B
	DB	T_W12,	10100000B, 00000101B
	DB	T_W12,	11000000B, 00000011B
	DB	T_KONEC

;4x vysilac/primac ridici sbrnice (pristroj GPIB)
;			   GPIB     I/O	      I/O\/GPIB
;			     NN     NN
;			 SAEDRDI   IDFDEAS       RR
;75161			 QTOAFAF   FARAOTQD      EET
I75161T:	;	ZRNIVDCC   CCDVINRC   XXNNNEXX
	DB	T_VV3,	00100111B, 00011011B, 00001100B
	DB	T_NAP,	DIL20
	DB	T_W123,	10101010B, 01010101B, 11111111B
	DB	T_W123,	11110101B, 10101111B, 11100111B
	DB	T_VV2,	00110111B, 00010011B
	DB	T_W12,	10001010B, 01010001B
	DB	T_W12,	11010101B, 10101011B
	DB	T_VV3,	01011000B, 11100101B, 00010100B
	DB	T_W123,	10101010B, 01010100B, 11111011B
	DB	T_W123,	11110101B, 10101110B, 11100011B
	DB	T_VV2,	01001000B, 11101101B
	DB	T_W12,	10001010B, 01010000B
	DB	T_W12,	11010101B, 10101010B
	DB	T_VV3,	00111001B, 01100011B, 00001100B
	DB	T_W123,	10000000B, 00000001B, 11100011B
	DB	T_W12,	11000000B, 00000011B
	DB	T_W12,	10100000B, 00000101B
	DB	T_W12,	10010000B, 00001001B
	DB	T_W12,	10001000B, 00010001B
	DB	T_W12,	10000100B, 00100001B
	DB	T_W12,	10000010B, 01000001B
	DB	T_W12,	10000001B, 10000001B
	DB	T_W123,	10000000B, 00000001B, 11111011B
	DB	T_VV3,	01000110B, 10011101B, 00010100B
	DB	T_W123,	11111111B, 11111110B, 11111111B
	DB	T_W123,	11111111B, 11111110B, 11100111B
	DB	T_W123,	11111110B, 01111110B, 11111111B
	DB	T_W12,	11111101B, 10111110B
	DB	T_W12,	11111011B, 11011110B
	DB	T_W12,	11110111B, 11101110B
	DB	T_W12,	11101111B, 11110110B
	DB	T_W12,	11011111B, 11111010B
	DB	T_W12,	10111111B, 11111100B
	DB	T_KONEC

;do GPIB
;R=1
;T=0

;H = vysoká úroveň, L = nízká úroveň, R = příjem, T = vysílání, X = irelevantní
;Směr přenosu dat je ze strany terminálu na stranu sběrnice a směr příjmu dat je
; ze strany sběrnice na stranu terminálu.
;Přenos dat je neinvertující v obou směrech.
;† ATN je normální transceiverový kanál, který funguje navíc jako interní ovládání
; směru nebo povolení hovoru pro EOI, kdykoli DC a TE
;vstupy jsou ve stejném stavu. Když jsou DC a TE v opačných stavech, kanál ATN funguje
; pouze jako nezávislý transceiver 

;4x vysilac/primac ridici sbrnice (radic GPIB)
;75162
I75162T:
	DB	T_NIC


;ZIF28

;        D   D   D   D           D   D   D   D
;        I   I   I   I           I   I   I   I
;        L   L   L   L           L   L   L   L
;        2   2   1   1           1   1   2   2 
;        4   0   6   4  ZIF 28   4   6   0   4
;        .   .   .   . +--\/--+  .   .   .   .
;(       .   .   .   . = 1  28=  .   .   .   .  P1-7)
;(PR-4   .   .   .   . = 2  27=  .   .   .   .  P3-7)
; P2-0   1   .   .   . = 3  26=  .   .   .  24  VCC
; P2-1   2   .   .   . = 4  25=  .   .   .  23  P2-6
; P2-2   3   1   .   . = 5  24=  .   .  20  22  P2-5/VCC
; P2-3   4   2   .   . = 6  23=  .   .  19  21  P2-4
; P0-O   5   3   1   . = 7  22=  .  16  18  20  P1-7/VCC
; P0-1   6   4   2   1 = 8  21= 14  15  17  19  P1-6/VCC
; P0-2   7   5   3   2 = 9  20= 13  14  16  18  P1-5
; P0-3   8   6   4   3 =10  19= 12  13  15  17  P1-4
; P0-4   9   7   5   4 =11  18= 11  12  14  16  P1-3
; P0-5  10   8   6   5 =12  17= 10  11  13  15  P1-2
; P0-6  11   9   7   6 =13  16=  9  10  12  14  P1-1
;  GND  12  10   8   7 =14  15=  8   9  11  13  P1-0
;                      +------+

;nasobicka 4x2 bitu			  C
;			     X		  N    Y
;			 SSSS-XX   _KKKKSS+    -YYXXCX
I25S05T:	;	Z3210101   P0123544   N10123N4
	DB	T_VV3,	00000111B, 11111000B, 01111111B
	DB	T_NAP,	DIL24
	DB	T_W123,	10000000B, 00000000B, 10000000B
	DB	T_W123, 11111111B, 11111111B, 11111111B
	DB	T_W123,	11011010B, 10101110B, 10001010B
	DB	T_W123,	11011010B, 01010000B, 11001010B
	DB	T_W123,	10101010B, 10101111B, 10101010B
	DB	T_W123,	10000010B, 01010011B, 11101010B
	DB	T_W123,	11111101B, 10101100B, 10010101B
	DB	T_W123,	10101010B, 10101001B, 10011010B
	DB	T_W123,	10000010B, 01010001B, 11011010B
	DB	T_W123,	10000010B, 10101001B, 10111010B
	DB	T_W123,	10101010B, 01010001B, 11111010B
	DB	T_W123,	11111101B, 11111110B, 10000101B
	DB	T_W123,	11001101B, 01111111B, 11000101B
	DB	T_W123,	10100101B, 11111001B, 10100101B
	DB	T_W123,	10100101B, 01111111B, 11100101B
	DB	T_W123,	10100101B, 11111111B, 10010101B
	DB	T_W123,	10100101B, 01111001B, 11010101B
	DB	T_W123,	11001101B, 11111111B, 10110101B
	DB	T_W123,	11110101B, 01111111B, 11110101B
	DB	T_W123,	11001010B, 11001110B, 10001001B
	DB	T_W123,	11011010B, 00110000B, 11001001B
	DB	T_W123,	10011010B, 11001111B, 10101001B
	DB	T_W123,	10000010B, 00110001B, 11101001B
	DB	T_W123,	10011010B, 11001111B, 10011001B
	DB	T_W123,	10000010B, 00110001B, 11011001B
	DB	T_W123,	11110010B, 11001110B, 10111001B
	DB	T_W123,	10101010B, 00110001B, 11111001B
	DB	T_W123,	10001101B, 10000000B, 10000110B
	DB	T_W123,	10011101B, 11000000B, 11001110B
	DB	T_W123,	11001101B, 11100000B, 10100110B
	DB	T_W123,	10010101B, 11110001B, 11100110B
	DB	T_W123,	10101101B, 11111001B, 10010110B
	DB	T_W123,	11101101B, 01110000B, 11010110B
	DB	T_W123,	10101101B, 01100000B, 10111110B
	DB	T_W123,	10001101B, 01000001B, 11110110B
	DB	T_W123,	11001101B, 00001110B, 10000111B
	DB	T_W123,	11011101B, 00011111B, 11001111B
	DB	T_W123,	11001101B, 00111111B, 10100111B
	DB	T_W123,	10101101B, 01111111B, 11100111B
	DB	T_W123,	10101101B, 11111111B, 10010111B
	DB	T_W123,	11001101B, 10111111B, 11010111B
	DB	T_W123,	11011101B, 10011111B, 10111111B
	DB	T_W123,	11000101B, 10001111B, 11110111B
	DB	T_KONEC

;*****************************
;* TESTY TESTERU IO - DTO-1  *
;*****************************
;Test prevazne BWP-1
ITEST1T:	;	76543210P1 76543210P2 76543210P3
	DB	T_VV3,	11111111B, 11111111B, 11111111B
	DB	T_NAP,	DIL24
	DB	T_W123,	11111111B, 11111111B, 11111111B
	DB	T_W123,	00000000B, 00000000B, 00000000B
	DB	T_W123,	01111111B, 11110111B, 11111110B
	DB	T_W123,	10111111B, 11111011B, 11111101B
	DB	T_W123,	11011111B, 11111101B, 11111011B
	DB	T_W123,	11101111B, 11111110B, 11110111B
	DB	T_W123,	11110111B, 11101111B, 11101111B
	DB	T_W123,	11111011B, 11011111B, 11011111B
	DB	T_W123,	11111101B, 10111111B, 10111111B
	DB	T_W123,	11111110B, 01111111B, 01111111B
	DB	T_W123,	00000000B, 00000000B, 00000000B
	DB	T_W123,	00010000B, 00000001B, 10000000B
	DB	T_W123,	00100000B, 00000010B, 01000000B
	DB	T_W123,	01000000B, 00000100B, 00100000B
	DB	T_W123,	10000000B, 00001000B, 00010000B
	DB	T_W123,	00001000B, 00010000B, 00001000B
	DB	T_W123,	00000100B, 00100000B, 00000100B
	DB	T_W123,	00000010B, 01000000B, 00000010B
	DB	T_W123,	00000001B, 10000000B, 00000001B
	DB	T_VV3,	00000000B, 00000000B, 00000000B
	DB	T_O123,	00000000B, 00000000B, 00000000B
	DB	T_I123,	11111111B, 11111111B, 11111111B
	DB	T_VV3,	00000001B, 10000000B, 00000001B
	DB	T_I123,	11111110B, 01111111B, 11111110B
	DB	T_VV3,	00000010B, 01000000B, 00000010B
	DB	T_I123,	11111101B, 10111111B, 11111101B
	DB	T_VV3,	00000100B, 00100000B, 00000100B
	DB	T_I123,	11111011B, 11011111B, 11111011B
	DB	T_VV3,	00001000B, 00010000B, 00001000B
	DB	T_I123,	11110111B, 11101111B, 11110111B
	DB	T_VV3,	00010000B, 00001000B, 10000000B
	DB	T_I123,	11101111B, 11110111B, 01111111B
	DB	T_VV3,	00100000B, 00000100B, 01000000B
	DB	T_I123,	11011111B, 11111011B, 10111111B
	DB	T_VV3,	01000000B, 00000010B, 00100000B
	DB	T_I123,	10111111B, 11111101B, 11011111B
	DB	T_VV3,	10000000B, 00000001B, 00010000B
	DB	T_I123,	01111111B, 11111110B, 11101111B
	DB	T_KONEC

;Test prevazne DTO-1 ZIF28 s R_TEST1
ITEST2T:
	DB	T_NAP,	DIL14
	DB	T_NAP,	DIL16
	DB	T_NAP,	DIL20
	DB	T_NAP,	DIL24
	DB	T_KONEC

;Test prevazne DTO-1 ZIF16 s R_TEST2
ITEST3T:
	DB	T_NAP,	DIL5_12
	DB	T_NAP,	DIL4_12
	DB	T_NAP,	DIL4_13
	DB	T_NAP,	DIL5_13
	DB	T_KONEC

DAT	EQU	$-SADYIO
DATK	EQU	$
;	DS	300H
	DB	'KONEC'
$KONEC	EQU	$
@KONEC	EQU	HIGH $KONEC*100H+100H+200H

	IFF	SYS		;MIKOS
	.DEPHASE
	IF	MIKOSD
	IF	@KONEC GT 0EFFFH
;	IF	$KONEC GT 0EFFFH
	.PRINTX 'PRO MIKOS/D PROGRAM DELSI NEZ EFFFH'
	ENDIF
	ENDIF
	ENDIF
	END

ÚVOD | Novinky | 8 Bitů | Příslušenství | Drobnosti | TTL | Kontakt


SAPI-1 | ONDRA | PMI-80 | PMD-85 | klony PMD-85 | klony SM50/40 | PETR | PLAN-80A | IQ151 | TNS | FK-1 | HVĚZDA | SP 830 | PCS 1-QR6000


ZPS | Technické prostředky | Programové vybavení | Dokumentace


8 bity / SAPI-1 / Programové vybavení / IOT / ASM



SAPI.cz - web o československých osmibitech, zejména SAPI-1. Provozuje EC1045 od roku 2011
Za korekce češtiny dekuji: MELSOFTovi, Silliconovi, Martinu Lukáškovi a NOSTALCOMPovi

Když začínám blbnout z 8bitů tak se chodím léčit mezi otaku.
Animefest.cz