About
Docs
Files
Support
Index

Essentials
AutoDocs
Library functions
Cooperate
Process mastering
Debug
Own debugging kit
FGE
Smart modeid pick
Loader
Shared lib. loader
Macros
Helper macros
Structs
All the structures
Logs
Library changelogs
Tools
Progs baked inside

Tools
amiscreen0.3
ansifilter0.1
auto2guide0.1
ccfilter0.1
chipset0.1
cputype0.1
device640.1
dupfilter0.1
expandlogs0.1
findsm0.2
fmpp0.1
fsmount0.1
genanim0.3
gensymtab0.1
hashlab0.4
ktm0.6
linkpoint0.1
logo2ilbm0.1
lpradio0.1
lzwpack0.1
minism0.2
mkheader0.1
modeidctrl0.1
mss0.6
multisum0.3
newterm0.2
numconv0.1
palhack1.1
patmat0.1
pfr0.2
playamitape0.1
qdbflags0.1
qfill0.1
resmodinit0.2
sadctrl0.2
saveassign0.1
setanim0.2
systime0.1
tokendump0.1
uassign0.1
viewlogo0.1
waitback0.4
wrapmount0.1



S
A
D
C
T
R
L

sadctrl-0.2
------------

---

This CLI tool allows to control  SAD/RPC/RII and to change baud rate of the
built-in serial port such that debug  tools can output way faster than just
at 9600 bps. Of course 'qdev' debug support also falls under this category.

---

NEWS:

   [09-Nov-2012]  0.2   * Added RII handling in case redirection is already
                          active.

---

NOTES:

[*]
Requires  68020(no FPU)+, OS2.04(theoretically)+,  4+ kilos of free memory.

[*]
Please  note that  SAD cannot take advantage of different baud rate because
it calls  'RawIOInit()'  directly which  always sets  the  speed to 9600...
Fortunately  all other programs have to call  the replacement, so they will
do their output according to current data rate.

[*]
At least 'qdev's  'txt_debugprintf()' calls 'RawIOInit()' before each batch
of text. To  forbid it from doing  this call 'sadctrl' with no arguments or
pass 0 so RII will be disabled. RII pokes SERPER hardware register!

[*]
If  you use  built-in serial port  as a network adapter  then this tool can
really help in  eliminating data interferences caused by software that does
emit  debug  information. See  second  template in  'USAGE'. It  is  always
possible to start serial redirector such as 'sashimi' afterwards so nothing
is lost.

[*]
First time launch creates 'sadctrl.resource' in memory and also causes code
segment to be associated with that resource.

---

HELP:

   > sadctrl ?

     BAUD/N,DS=DISSAD/S,ES=ENASAD/S,DR=DISRPC/S,ER=ENARPC/S



   BAUD/N       -  Data rate of direct, built-in serial port broadcast. The
                   actual  possible rate is anything ranging form 112 to as
                   much as  292000. Passing  0 while  going  to enable  RPC
                   ('RawPutChar()') will  cause  RII('RawIOInit()')  to  be
                   disabled!

   DS=DISSAD/S  -  Disable  SAD(kernel mini debugger) or  anything that did
                   patch 'Debug()' function.

   ES=ENASAD/S  -  The opposite of the above. Be sure not to pass this when
                   external debugger was unloaded!

   DR=DISRPC/S  -  Disable RPC completly. This can even turn off redirected
                   output  so be careful not to pass this arg. when 'sushi'
                   or 'sashimi' are running.

   ER=ENARPC/S  -  The opposite of the above. If baud rate is not specified
                   or if it  is not 0 at the  time when RPC is disabled and
                   it is going to be enabled the RII will be enabled.

---

USAGE:

   ; Let the data travel at standard 230400 bps
   sadctrl 230400

   ; Discard all output on built-in serial port
   sadctrl ds dr

   ; Activate RII that will keep an eye on baud
   sadctrl dr er

---
megacz
    











No more fear cus pure HTML is here!
Copyright (C) 2013-2014 by Burnt Chip Dominators