NAME NFXrom

; IDE Status Register:
; B7 = Busy     1=busy, 0=not busy
; B6 = Ready    1=ready for command, 0=not ready yet
; B5 = DF       1=fault occured inside drive
; B4 = DSC      1=seek complete
; B3 = DRQ      1=data request ready, 0=not ready to xfer yet
; B2 = CORR     1=correctable error occured
; B1 = IDX      vendor specific
; B0 = ERR      1=error occured

;the actual IDE commands used
CMD_RECAL   EQU &10
CMD_READ    EQU &20
CMD_WRITE   EQU &30
CMD_INIT    EQU &91
CMD_ID      EQU &EC
CMD_SPINUP  EQU &E0
CMD_SPINDN  EQU &E1

;Keyboard equates
SENSE1 EQU 5
SENSE2 EQU 6
DR EQU 5

CPMTOAM    EQU     &0046       ; top of available memory
TOAMPT  EQU     &F000          ; drivers sit above this point

INCLUDE sources.boot
INCLUDE sources.zmon40
INCLUDE sources.Main
INCLUDE sources.vdu40
INCLUDE sources.disc40
INCLUDE sources.net
INCLUDE sources.vectors40

END

