home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
maclib
/
z80ext.lib
< prev
next >
Wrap
Text File
|
1994-07-13
|
3KB
|
293 lines
;
;
; THESE ARE UNDOCUMENTED Z80 CODES. THEY ALLOW 8-BIT
; OPERATIONS WITH THE IX AND IY REGISTERS.
; OTHER CODES ALLOW A SHIFT-LEFT-AND-SET-LSB OPERATION
; TO ANY REGISTER
;
XX EQU 0DDH
YY EQU 0FDH
;
MOVAHX MACRO
DB XX
MOV A,H
ENDM
MOVBHX MACRO
DB XX
MOV B,H
ENDM
MOVCHX MACRO
DB XX
MOV C,H
ENDM
MOVDHX MACRO
DB XX
MOV D,H
ENDM
MOVEHX MACRO
DB XX
MOV E,H
ENDM
MOVLHX MACRO
DB XX
MOV L,H
ENDM
MOVALX MACRO
DB XX
MOV A,L
ENDM
MOVBLX MACRO
DB XX
MOV B,L
ENDM
MOVCLX MACRO
DB XX
MOV C,L
ENDM
MOVDLX MACRO
DB XX
MOV D,L
ENDM
MOVELX MACRO
DB XX
MOV E,L
ENDM
MOVHLX MACRO
DB XX
MOV H,L
ENDM
;
MOVAHY MACRO
DB YY
MOV A,H
ENDM
MOVBHY MACRO
DB YY
MOV B,H
ENDM
MOVCHY MACRO
DB YY
MOV C,H
ENDM
MOVDHY MACRO
DB YY
MOV D,H
ENDM
MOVEHY MACRO
DB YY
MOV E,H
ENDM
MOVLHY MACRO
DB YY
MOV L,H
ENDM
MOVALY MACRO
DB YY
MOV A,L
ENDM
MOVBLY MACRO
DB YY
MOV B,L
ENDM
MOVCLY MACRO
DB YY
MOV C,L
ENDM
MOVDLY MACRO
DB YY
MOV D,L
ENDM
MOVELY MACRO
DB YY
MOV E,L
ENDM
MOVHLY MACRO
DB YY
MOV H,L
ENDM
;
MVIHX MACRO ?NN
DB XX
MVI H,?NN
ENDM
MVILX MACRO ?NN
DB XX
MVI L,?NN
ENDM
MVIHY MACRO ?NN
DB YY
MVI H,?NN
ENDM
MVILY MACRO ?NN
DB YY
MVI L,?NN
ENDM
;
ADDHX MACRO
DB XX
ADD H
ENDM
ADDLX MACRO
DB XX
ADD L
ENDM
ADCHX MACRO
DB XX
ADC H
ENDM
ADCLX MACRO
DB XX
ADC L
ENDM
SUBHX MACRO
DB XX
SUB H
ENDM
SUBLX MACRO
DB XX
SUB L
ENDM
SBBHX MACRO
DB XX
SBB H
ENDM
SBBLX MACRO
DB XX
SBB L
ENDM
ANAHX MACRO
DB XX
ANA H
ENDM
ANALX MACRO
DB XX
ANA L
ENDM
XRAHX MACRO
DB XX
XRA H
ENDM
XRALX MACRO
DB XX
XRA L
ENDM
ORAHX MACRO
DB XX
ORA H
ENDM
ORALX MACRO
DB XX
ORA L
ENDM
CMPHX MACRO
DB XX
CMP H
ENDM
CMPLX MACRO
DB XX
CMP L
ENDM
;
ADDHY MACRO
DB YY
ADD H
ENDM
ADDLY MACRO
DB YY
ADD L
ENDM
ADCHY MACRO
DB YY
ADC H
ENDM
ADCLY MACRO
DB YY
ADC L
ENDM
SUBHY MACRO
DB YY
SUB H
ENDM
SUBLY MACRO
DB YY
SUB L
ENDM
SBBHY MACRO
DB YY
SBB H
ENDM
SBBLY MACRO
DB YY
SBB L
ENDM
ANAHY MACRO
DB YY
ANA H
ENDM
ANALY MACRO
DB YY
ANA L
ENDM
YRAHY MACRO
DB YY
YRA H
ENDM
YRALY MACRO
DB YY
YRA L
ENDM
ORAHY MACRO
DB YY
ORA H
ENDM
ORALY MACRO
DB YY
ORA L
ENDM
CMPHY MACRO
DB YY
CMP H
ENDM
CMPLY MACRO
DB YY
CMP L
ENDM
;
INRHX MACRO
DB XX
INR H
ENDM
INRLX MACRO
DB XX
INR L
ENDM
INRHY MACRO
DB YY
INR H
ENDM
INRLY MACRO
DB YY
INR L
ENDM
;
DCRHX MACRO
DB XX
DCR H
ENDM
DCRLX MACRO
DB XX
DCR L
ENDM
DCRHY MACRO
DB YY
DCR H
ENDM
DCRLY MACRO
DB YY
DCR L
ENDM
;
SLAS MACRO ?R
DB 0CBH,30H + ?R
ENDM