home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
LIB
/
BREAKP.ZIP
/
BreakPt
/
BreakPHlp
next >
Wrap
Text File
|
1996-07-06
|
3KB
|
90 lines
BreakPt
Thomas Leonard
Needs RISCOS 3
2.01 (06-Jul-1996)
Brief
~~~~~
This is a programmer's utility which intercepts calls to the SWI OS_BreakPt.
It offers several advantages over the standard call:
Å Logging of as many calls as memory allows
Å Log displayed in a window on the desktop
Å Log can be saved to disk
Å BreakPt can be set to:
Always quit your program when called (like the standard call)
Always return control to your program when called
Return a definable number of times, then quit
Conditions
~~~~~~~~~~
This program is FREEWARE, so you can copy it and pass it around as much as
you like.
There is no warranty, but please report any bugs you find (it's been very
reliable while I've been using it).
How to use it
~~~~~~~~~~~~~
Put BreakPt in your startup sequence along with the other wimp tasks (ie
load it after the desktop - it's not a proper module task).
Now when you call OS_BreakPt your program will quit without displaying the
usual message, but upon returning to the desktop a window will open showing
the register dump. The first line shows regs R0 to R7 from left to right, the
second shows R8-R15. The NCV and Z flags, if set, are shown by letters beside
the log entry.
You can change the way BreakPt returns using a star command:
*BreakPt_ExitAfter <number>
Where <number> is zero to always return (never call OS_Exit), one to always
call OS_Exit or any other positive number for the number of calls which can
be made before BreakPt calls OS_Exit.
You can put this in your boot sequence too!
BreakPt has three other star commands:
*BreakPt_Open Opens the log window
*BreakPt_Close Closes the log window
*BreakPt_Clear Clears the log, freeing all memory used
*BreakPt_Save <pathname> Dumps the whole log as a text file
If you click select or adjust over the log window, it does *BreakV_Click.
You can use Set Alias$BreakV_Click to make BreakPt close, save or clear its
log.
Only call OS_BreakPt from user mode.
If you click menu over the log BreakPt brings up its menu, which may be
quicker than using the star commands.
History
~~~~~~~
Changes from version 1.00
The buffer size no longer has to be specified on loading the module, but
claims memory as needed.
Regs R4-R7 and R8-R11 are shaded to make it easier to find the right reg.
R15 flags CVN and Z are now shown as letters beside the log entry.
Removed menus in favour of calling star commands.
Changes from version 2.00
Put menu back in so you don't need to use Director.
How to improve it
~~~~~~~~~~~~~~~~~
Write to me with suggestions, bug reports, praise, money, or just to tell
me that you use the module and didn't find any bugs.
BBS : Tal at Furzefield Hq
01494 681711
Mail: Thomas Leonard
48 Copthall Lane
Chalfont St. Peter
Bucks
SL9 ODJ