modem works equates (from Modem Works Technical Reference Manual) and OMM

This commit is contained in:
Kelvin Sherlock 2015-06-17 17:39:39 -04:00
parent 9000d3a69d
commit 6dac43bc22
8 changed files with 188 additions and 0 deletions

View File

@ -0,0 +1,23 @@
**************************************************
***
*** ConsoleTool.equ
***
CT_ID equ $7463 ;Console Tool ("ct") ID
CTOpen equ 0
CTClose equ 1
CTReset equ 2
CTControl equ 3
CTStatus equ 4
CTGetXY equ 5
CTWriteChar equ 6
CTWriteBuffer equ 7
CTTestChar equ 8
CTReadChar equ 9
CTFlushInQ equ 10
CTShowCursor equ 11
CTHideCursor equ 12
CTSetBellAttr equ 13
CTSetTermcap equ 14
CTGotoXY equ 15

26
ModemWorks/ModemTool.equ Normal file
View File

@ -0,0 +1,26 @@
************************************************************
***
*** ModemTool.equ
***
MT_ID equ $746d ;Modem Tool ('mt') ID
InitModem equ 0
ModemExit equ 1
IsOnline equ 2
HasMNP equ 3
DialNumber equ 4
SetBusy equ 5
HandleConnect equ 6
AnswerLine equ 7
HangUp equ 8
IsRinging equ 9
SetMNP equ 10
OrigAnsLine equ 11
ResetModem equ 12
SetSpeaker equ 13
GetMode equ 14
ModemType equ 15
ConnectSpeed equ 16
SetModem equ 17
SetModemSpeed equ 18

56
ModemWorks/OMM.equ Normal file
View File

@ -0,0 +1,56 @@
**********************************************************************
***
*** omm.asm Object Module Manager interface constants
*** Copyright (C) 1990 Morgan Davis Group
***
*------------------------------*
* Loader Constants *
*------------------------------*
OMMVEC equ $3f8 ;user vector
OMM_ID equ 0 ;index of object module mgr module
OMM_HEADER equ 16 ;size of OMM header
*------------------------------*
* Messages Types *
*------------------------------*
MSG_INIT equ 0 ;initialize module
MSG_QUIT equ 1 ;quit (shutdown) module
MSG_AMPR equ 2 ;execute ampersand service routine
MSG_USER equ 3 ;user (non-applesoft) service request
MSG_REL1 equ 4 ;alert module before relocation
MSG_REL2 equ 5 ;alert module after relocation
MSG_KILL equ 6 ;death notice (sent before actual death)
MSG_DIED equ 7 ;obituary (sent after death)
MSG_BORN equ 8 ;birth notice
MSG_IDLE equ 9 ;idle event for module
MSG_INFO equ 10 ;get modules info string
MSG_NEXT equ 11
*------------------------------*
* OMM control errors *
*------------------------------*
LER_NOERR equ 0 ;no error
LER_CNIMP equ 1 ;control class not implemented
LER_FNIMP equ 2 ;user control function not implemented
LER_SIGNF equ 3 ;signature not found
*------------------------------*
* OMM User Function Codes *
*------------------------------*
OMM_GETID equ 0 ;get module index by signature (into X)
OMM_XOAMP equ 1 ;execute original ampersand handler
OMM_FREE equ 2 ;free a module whose index is at A1
OMM_PUTWORD equ 3 ;put word at A1 into numeric var
OMM_PUTSTR equ 4 ;put string into string var (lowtr = descrip)
OMM_GETSTR equ 5 ;get string var's descriptor into lowtr
OMM_PADDEC equ 6 ;print decimal word (lowtr: width, low, high)
OMM_C2PSTR equ 7 ;copy C to P-string (lowtr = desc, a1 = targ)
OMM_COUNT equ 8 ;get count of modules
OMM_GETINFO equ 9 ;get module's info string
OMM_NEXT equ 10

37
ModemWorks/PortTool.equ Normal file
View File

@ -0,0 +1,37 @@
**************************************************
***
*** PortTool.equ
***
PT_ID equ $7470 ;Port Tool ("pt") ID
SerOpen equ 0
SerClose equ 1
SerReset equ 2
SerSendBreak equ 3
SerSetDTR equ 4
SerClearDTR equ 5
SerSetPortBits equ 6
SerSetSpeed equ 7
SerGetSpeed equ 8
SerGetDCD equ 9
SerWriteChar equ 10
SerWriteBuffer equ 11
SerReadChar equ 12
SerReadBuffer equ 13
SerFlushInQ equ 14
SerGetInQ equ 15
SerGetInBuf equ 16
SerSetInBuf equ 17
SerSetFlow equ 18
SerAddCompVec equ 19
SerDelCompVec equ 20
SerClearCompVec equ 21
SerAddSearch equ 22
SerDelSearch equ 23
SerClearSearch equ 26
SerGetSearch equ 24
SerShowSearch equ 25
SerGetTimedByte equ 27
SerOutBuffering equ 28
SerSetDCD equ 29

View File

@ -0,0 +1,13 @@
**************************************************
***
*** PrinterTool.equ
***
LT_ID equ $746C ;Printer Tool ("lt") ID
LTOpen equ 0
LTClose equ 1
LTReset equ 2
LTControl equ 3
LTWriteChar equ 5
LTWriteBuffer equ 6

View File

@ -0,0 +1,8 @@
**************************************************
***
*** ReceiveTool.equ
***
RT_ID equ $7472 ;Receive Tool ("rt") ID
RTTransfer equ 0

8
ModemWorks/SendTool.equ Normal file
View File

@ -0,0 +1,8 @@
**************************************************
***
*** SendTool.equ
***
ST_ID equ $7473 ;Send Tool ("st") ID
STTransfer equ 0

View File

@ -0,0 +1,17 @@
**************************************************
***
*** TimeTool.equ
***
TT_ID equ $7474 ;Time Tool ("tt") ID
Ticker equ 0
GetTicks equ 1
CountDown equ 2
WaitTicks equ 3
WaitSeconds equ 4
SetCounter equ 5
GetTimeStr equ 6
FastCPU equ 7
SlowCPU equ 8