                   SWI Specs

0 WriteC
  - R0

1 WriteS ( Not Implemented )

2 Write0
  - R0

  - R0

3 NewLine
  - No params

4 ReadC
  - R0
  - CF

5 CLI
  - R0

6 Byte ( Not Implemented )

7 Word ( Not Implemented )

8 File
  - [R0-5]
  - [R0-5]

  - [R0-5]

9 Args
  - [R0-2]
  - [R0-2]

  - [R0-2]

A BGet
  - R1

  - R0
  - CF

B BPut
  - R0
  - R1

C GBPB
  - [R0-6]
  - [R0-4]

  - [R0-4]

D Find
  - R0
  - R1
  - R2

  - R0

E ReadLine
  - R0
  - R1
  - R2
  - R3

  - R1
  - CF

F Control
  - R0
  - R1
  - R2
  - R3

  - R3
  - R2
  - R1
  - R0

10 GetEnv
  -

  - R2
  - R1
  - R0

11 Exit
  - R0
  - R1
  - R2

12 SetEnv
  - R0
  - R1
  - R4
  - R5
  - R6
  - R7

  - R7
  - R6
  - R5
  - R4
  - R1
  - R0

13 IntOn ( Not Implemented )

14 IntOff ( Not Implemented )

15 CallBack
  - R0
  - R1

  - R1
  - R0

16 EnterOS ( Not Implemented )

17 BreakPt
  - No params

18 BreakCtrl
  - R0
  - R1

  - R1
  - R0

19 UnusedSWI
  - R0

  - R0

1A UpdateMEMC
  - R0
  - R1

  - R0

1B SetCallBack
  - No params

1C Mouse
  -

  - R3
  - R2
  - R1
  - R0

1D Heap
  - [R0-3]

  - [R0-3]

1E Module
  - [R0-4]

  - [R1-3]

1F Claim
  - R0
  - R1
  - R2

20 Release
  - R0
  - R1
  - R2

21 ReadUnsigned
  - R0
  - R1
  - R2

  - R2
  - R1

22 GenerateEvent
  - [R0-9]

23 ReadVarVal
  - R0
  - R1
  - R2
  - R3
  - R4

  - R4
  - R3
  - R2

24 SetVarVal
  - R0
  - R1
  - R2
  - R3
  - R4

  - R4
  - R3

25 GSInit
  - R0
  - R2

  - R2
  - R1
  - R0

26 GSRead
  - R0
  - R2

  - R2
  - R1
  - R0
  - CF

27 GSTrans
  - R0
  - R1
  - R2

  - R2
  - R0
  - CF

28 BinaryToDecimal
  - R0
  - R1
  - R2

  - R2

29 FSControl
  - [R0-7]
  - [R0-7]

  - [R0-7]

2A ChangeDynamicArea
  - R0
  - R1

  - R1

2B GenerateError
  - R0

2C ReadEscapeState
  -

  - CF

2D EvaluateExpression
  - R0
  - R1
  - R2

  - R2
  - R1

2E SpriteOp
  - [R0-7]
  - [R0-7]

  - [R0-7]

2F ReadPalette
  - R0
  - R1

  - R3
  - R2

30 ServiceCall
  - R0
  - R1
  - R2
  - R3
  - R4

31 ReadVduVariables
  - R0
  - R1

32 ReadPoint
  - R0
  - R1

  - R4
  - R3
  - R2

33 UpCall
  - R0
  - R1
  - R2
  - R3

  - R0

34 CallAVector
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6
  - R7
  - R8
  - R9

35 ReadModeVariable
  - R0
  - R1

  - R2
  - CF

36 RemoveCursors
  - No params

37 RestoreCursors
  - No params

38 SWINumberToString
  - R0
  - R1
  - R2

39 SWINumberFromString
  - R1

  - R0

3A ValidateAddress
  - R0
  - R1

  - CF

3B CallAfter
  - R0
  - R1
  - R2

3C CallEvery
  - R0
  - R1
  - R2

3D RemoveTickerEvent
  - R0
  - R1

3E InstallKeyHandler
  - R0

  - R0

3F CheckModeValid
  - R0

  - R1
  - R0
  - CF

40 ChangeEnvironment
  - R0
  - R1
  - R2
  - R3

  - R3
  - R2
  - R1

41 ClaimScreenMemory
  - R0
  - R1

  - R2
  - R1
  - CF

42 ReadMonotonicTime
  -

  - R0

43 SubstituteArgs
  - R0
  - R1
  - R2
  - R3
  - R4

  - R2

44 PrettyPrint
  - R0
  - R1
  - R2

45 Plot
  - R0
  - R1
  - R2

46 WriteN
  - R0
  - R1

47 AddToVector ( Not implemented )

48 WriteEnv ( Not implemented )

49 ReadArgs
  - R0
  - R1
  - R2
  - R3

  - R3

4A ReadRAMFsLimits
  -

  - R1
  - R0

4B ClaimDeviceVector
  - R0
  - R1
  - R2

4C ReleaseDeviceVector
  - R0
  - R1
  - R2

4D DelinkApplication
  - R0
  - R1

  - R1

4E RelinkApplication
  - R0

4F HeapSort ( Not implemented )

50 ExitAndDie
  - R0
  - R1
  - R2
  - R3

51 ReadMemMapInfo
  -

  - R1
  - R0

52 ReadMemMapEntries
  - R0

53 SetMemMapEntries
  - R0

54 AddCallBack
  - R0
  - R1

55 ReadDefaultHandler
  - R0

  - R3
  - R2
  - R1

56 SetECFOrigin ( Not implemented )

57 SerialOp
  - R0
  - R1
  - R2

  - R2
  - R1
  - R0
  - CF

58 ReadSysInfo
  - R0

  - R0

59 Confirm
  -

  - R0
  - CF

5A ChangedBox
  - R0

  - R1
  - R0

5B CRC ( Not implemented )

5C ReadDynamicArea ( Not implemented )

5D PrintChar ( Not implemented )

C0 ConvertStandardDateAndTime
  - R0
  - R1
  - R2

  - R2
  - R1
  - R0

C1 ConvertDateAndTime
  - R0
  - R1
  - R2
  - R3

  - R2
  - R1
  - R0

               WIMPS

400C0 Initialise
  - R0
  - R1
  - R2

  - R1
  - R0

400C1 CreateWindow
  - R1

  - R0

400C2 CreateIcon
  - R1

  - R0

400C3 DeleteWindow
  - R1

400C4 DeleteIcon
  - R1

400C5 OpenWindow
  - R1

400C6 CloseWindow
  - R1

400C7 Poll
  - R0
  - R1

  - R0

400C8 RedrawWindow
  - R1

  - R0

400C9 UpdateWindow
  - R1

  - R0

400CA GetRectangle
  - R1

  - R0

400CB GetWindowState
  - R1

400CC GetWindowInfo
  - R1

400CD SetIconState
  - R1

400CE GetIconState
  - R1

400CF GetPointerInfo
  - R1

400D0 DragBox
  - R1

400D1 ForceRedraw
  - R0
  - R1
  - R2
  - R3
  - R4

400D2 SetCaretPosition
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5

400D3 GetCaretPosition
  - R1

400D4 CreateMenu
  - R1
  - R2
  - R3

400D5 DecodeMenu
  - R1
  - R2
  - R3

400D6 WhichIcon
  - R0
  - R1
  - R2
  - R3

400D7 SetExtent
  - R0
  - R1

400D8 SetPointerShape
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5

400D9 OpenTemplate
  - R1

400DA CloseTemplate
  - No params

400DB LoadTemplate
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

  - R6
  - R2

400DC ProcessKey
  - R0

  - R0

400DD CloseDown
  - R1
  - R0

400DE StartTask
  - R0

400DF ReportError
  - R0
  - R1
  - R2

  - R1

400E0 GetWindowOutline
  - R1

400E1 PollIdle
  - R0
  - R1
  - R2

  - R0

400E2 PlotIcon
  - R1

400E3 SetMode
  - R0

400E4 SetPalette
  - R1

400E5 ReadPalette
  - R1

400E6 SetColour
  - R0

400E7 SendMessage
  - R0
  - R1
  - R2
  - R3

  - R2

400E8 CreateSubMenu
  - R1
  - R2
  - R3

400E9 SpriteOp
  - [R0-7]

  - [R0-7]

400EA BaseOfSprites
  -

  - R1
  - R0

400EB BlockCopy
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

400EC SlotSize
  - R0
  - R1

  - R2
  - R1
  - R0

400ED ReadPixTrans
  - R0
  - R1
  - R2
  - R6
  - R7

400EE ClaimFreeMemory
  - R0
  - R1

  - R2
  - R1

400EF CommandWindow
  - R0

400F0 TextColour
  - R0

400F1 TransferBlock
  - R0
  - R1
  - R2
  - R3
  - R4

400F2 ReadSysInfo
  - R0

  - R0

400F3 SetFontColours
   - R1
   - R2

            FONT

40080 CacheAddr
  -

  - R2
  - R1
  - R0

40081 FindFont
  - R1
  - R2
  - R3
  - R4
  - R5

  - R0

40082 LoseFont
  - R0

40083 ReadDefn
  - R0
  - R1

  - R7
  - R6
  - R5
  - R4
  - R3
  - R2
  - R1

40084 ReadInfo
  - R0

  - R4
  - R3
  - R2
  - R1

40085 StringWidth
  - R1
  - R2
  - R3
  - R4
  - R5

  - R5
  - R4
  - R3
  - R2

40086 Paint
  - R1
  - R2
  - R3
  - R4

40087 Caret
  - R0
  - R1
  - R2
  - R3
  - R4

4088 ConverttoOS
  - R1
  - R2

  - R2
  - R1

40089 Converttopoints
  - R1
  - R2

  - R2
  - R1

4008A SetFont
  - R0

4008B CurrentFont
  -

  - R3
  - R2
  - R1
  - R0

4008C FutureFont
  -

  - R3
  - R2
  - R1
  - R0

4008D FindCaret
  - R1
  - R2
  - R3

  - R5
  - R4
  - R3
  - R2

4008E CharBBox
  - R0
  - R1
  - R2

  - R4
  - R3
  - R2
  - R1

4008F ReadScaleFactor
  -

  - R2
  - R1

40090 SetScaleFactor
  - R1
  - R2

40091 ListFonts
  - R1
  - R2
  - R3

  - R2

40092 SetFontColours
  - R0
  - R1
  - R2
  - R3

40093 SetPalette
  - R1
  - R2
  - R3
  - R4
  - R5

40094 ReadThresholds
  - R1

40095 SetThresholds
  - R1

40096 FindCaretJ
  - R1
  - R2
  - R3
  - R4
  - R5

  - R5
  - R4
  - R3
  - R2

40097 StringBBox
  - R1

  - R4
  - R3
  - R2
  - R1

40098 ReadColourTable ( Not implemented )

             SOUND

40140 Configure
  - R0
  - R1
  - R2
  - R3
  - R4

  - R4
  - R3
  - R2
  - R1
  - R0

40141 Enable
  - R0

  - R0

40142 Stereo
  - R0
  - R1

  - R1

40143 Speaker
  - R0

  - R0

40180 Volume
  - R0

  - R0

40181 SoundLog
  - R0

  - R0

40182 LogScale
  - R0

  - R0

40183 InstallVoice
  - R0
  - R1

  - R1
  - R0

40184 RemoveVoice
  - R1

  - R1
  - R0

40185 AttachVoice
  - R0
  - R1

  - R1
  - R0

40186 ControlPacked
  - R0
  - R1

40187 Tuning
  - R0

  - R0

40188 Pitch
  - R0

  - R0

40189 Control
  - R0
  - R1
  - R2
  - R3

4018A AttachNamedVoice
  - R0
  - R1

  - R0

4018B ReadControlBlock
  - R0
  - R1

  - R2
  - R0

4018C WriteControlBlock
  - R0
  - R1
  - R2

  - R2
  - R0

401C0 QInit
  - No params

401C1 QSchedule
  - R0
  - R1
  - R2
  - R3

  - R0

401C2 QRemove
  - R0

  - R3
  - R2
  - R1
  - R0

401C3 QFree
  -

  - R0

401C4 QSDispatch
  - No params

401C5 QTempo
  - R0

  - R0

401C6 QBeat
  - R0

  - R0

401C7 QInterface ( Not implemented )

           ADFS

40240 DiscOp
  - R1
  - R2
  - R3
  - R4

  - R0
  - R2
  - R3
  - R4

40241 HDC
  - R0
  - R1
  - R2
  - R3
  - R4

40242 Drives
  -

  - R2
  - R1
  - R0

40243 FreeSpace
  - R0

  - R1
  - R0

40244 Retries ( Not implemented )

40245 DescribeDisc ( Not implemented )

              PODULE

40280 ReadID
  - R3

  - R0

40281 ReadHeader
  - R2
  - R3

40282 EnumerateChunks
  - R0
  - R3

  - R4
  - R2
  - R1
  - R0

40283 ReadChunk
  - R0
  - R2
  - R3

40284 ReadBytes
  - R0
  - R1
  - R2
  - R3

40285 WriteBytes
  - R0
  - R1
  - R2
  - R3

40286 CallLoader
  - R0
  - R1
  - R2
  - R3

  - R2
  - R1
  - R0

40287 RawRead
  - R0
  - R1
  - R2
  - R3

40288 RawWrite
  - R0
  - R1
  - R2
  - R3

40289 HardwareAddress ( Not implemented )

            DEBUGGER

40380 Disassemble
  - R0

  - R2
  - R1

             HOURGLASS

406C0 On
  - No params

406C1 Off
  - No params

406C2 Smash
  - No params

406C3 Start
  - R0

40C64 Percentage
   - R0

406C5 LEDs
  - R0
  - R1

  - R0

               IIC

240 Control
  - R0
  - R1
  - R2

                DRAW

40700 ProcessPath
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6
  - R7

40701 ProcessPathFP
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6
  - R7

40702 Fill
   - R0
   - R1
   - R2
   - R3

40703 FillFP
   - R0
   - R1
   - R2
   - R3

40704 Stroke
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

40705 StrokeFP
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

40706 StrokePath
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

  - R0

40707 StrokePathFP
  - R0
  - R1
  - R2
  - R3
  - R4
  - R5
  - R6

  - R0

40708 FlattenPath
  - R0
  - R1
  - R2

  - R0

40709 FlattenPathFP
  - R0
  - R1
  - R2

  - R0

4070A TransformPath
  - R0
  - R1
  - R2
  - R3

  - R0

4070B TransformPathFP
  - R0
  - R1
  - R2
  - R3

  - R0
