?pathlinks? – Rev 1120
Rev 1007 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
| ?url?
; LAST UPDATE: 01.11.2023 savelij
;==================ЧТЕНИЕ СО СМУК ВИНТА=======================
RD_HDD_SMUC PUSH BC
PUSH DE
CALL SETSREG
EX AF,AF'
LD B,HIGH (PS_1F7)
LD A,0x20
CALL SOUTPRT
HDSRDM2 CALL SINPRT
AND 0x88
CP 8
JR NZ,HDSRDM2
EX AF,AF'
HDSRDM1 PUSH AF
LD DE,PS_PORT_RW
LD A,0x40
RDCSSC1 EX AF,AF'
LD B,D
CALL SINPRT
LD (HL),A
INC HL
LD B,E
CALL SINPRT
LD (HL),A
INC HL
LD B,D
CALL SINPRT
LD (HL),A
INC HL
LD B,E
CALL SINPRT
LD (HL),A
INC HL
LD B,D
CALL SINPRT
LD (HL),A
INC HL
LD B,E
CALL SINPRT
LD (HL),A
INC HL
LD B,D
CALL SINPRT
LD (HL),A
INC HL
LD B,E
CALL SINPRT
LD (HL),A
INC HL
EX AF,AF'
DEC A
JR NZ,RDCSSC1
LD B,HIGH (PS_1F7)
HDSRDM3 CALL SINPRT
AND 0x80
JR NZ,HDSRDM3
POP AF
DEC A
JR NZ,HDSRDM1
POP DE
POP BC
RET
SETSREG PUSH DE
LD D,B
LD E,C
EX AF,AF'
LD A,(MAS_SLA)
OR D
LD BC,PS_1F6
CALL SOUTPRT
LD B,HIGH (PS_1F5)
LD A,E
CALL SOUTPRT
POP DE
LD B,HIGH (PS_1F4)
LD A,D
CALL SOUTPRT
LD B,HIGH (PS_1F3)
LD A,E
CALL SOUTPRT
LD B,HIGH (PS_1F2)
EX AF,AF'
SOUTPRT PUSH HL
LD HL,0x3FF0
EX (SP),HL
JP 0x3D2F
SINPRT PUSH HL
LD HL,0x3FF3
EX (SP),HL
JP 0x3D2F
;==================ЧТЕНИЕ СО СМУК ВИНТА=======================