Guillaume Tello
2011-02-08 18:16:55 UTC
Hi,
I started writing a little monitor for TOS without the need of a script
interpretor or multitasking.
I named it SYSREC (system record), and here are the features:
- it runs a program with its command line
- records every system call Gemdos/Bios/Xbios/VDI/AES/LineA (you can
select what you want in this list)
- don't record other programs'calls 'in particular, doesn't record the
VDI calls from the AES)
- recording can start immediately or after a Alt+Help key press
- a second Alt+Help stops recording and so on.. (record, stop)
- at the end you get two files:
* the first with the mem copy of the recorded codes
* the second, a text file with functions names
I'm working on it, adding the use of a SYSREC.INF file containing the
settings, so you d'ont have to retype everything.
I'll put this on my page when it will be useable.
Another idea would be to keep track of the calling addresses displayed
as an offset from the TEXT start. This would ease patching programs when
they need some new features.
Guillaume.
As an example, here is the ouput for TSTSCR_E.PRG that tests the screen
encoding:
GEMDOS(074/$04A) : Mshrink
AES (010/$00A) : appl_init
AES (077/$04D) : graf_handle
XBIOS (004/$004) : Getrez
VDI (100/$064) : v_opnvwk
VDI (102/$066) : vq_extnd
VDI (123/$07B) : v_hide_c
AES (100/$064) : wind_create
AES (051/$033) : form_dial
AES (101/$065) : wind_open
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (109/$06D) : vro_cpyfm
AES (102/$066) : wind_close
AES (103/$067) : wind_delete
AES (051/$033) : form_dial
VDI (122/$07A) : v_show_c
AES (052/$034) : form_alert
GEMDOS(060/$03C) : Fcreate
GEMDOS(064/$040) : Fwrite
GEMDOS(062/$03E) : Fclose
VDI (101/$065) : v_clsvwk
AES (019/$013) : appl_exit
GEMDOS(000/$000) : Pterm0
I started writing a little monitor for TOS without the need of a script
interpretor or multitasking.
I named it SYSREC (system record), and here are the features:
- it runs a program with its command line
- records every system call Gemdos/Bios/Xbios/VDI/AES/LineA (you can
select what you want in this list)
- don't record other programs'calls 'in particular, doesn't record the
VDI calls from the AES)
- recording can start immediately or after a Alt+Help key press
- a second Alt+Help stops recording and so on.. (record, stop)
- at the end you get two files:
* the first with the mem copy of the recorded codes
* the second, a text file with functions names
I'm working on it, adding the use of a SYSREC.INF file containing the
settings, so you d'ont have to retype everything.
I'll put this on my page when it will be useable.
Another idea would be to keep track of the calling addresses displayed
as an offset from the TEXT start. This would ease patching programs when
they need some new features.
Guillaume.
As an example, here is the ouput for TSTSCR_E.PRG that tests the screen
encoding:
GEMDOS(074/$04A) : Mshrink
AES (010/$00A) : appl_init
AES (077/$04D) : graf_handle
XBIOS (004/$004) : Getrez
VDI (100/$064) : v_opnvwk
VDI (102/$066) : vq_extnd
VDI (123/$07B) : v_hide_c
AES (100/$064) : wind_create
AES (051/$033) : form_dial
AES (101/$065) : wind_open
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (014/$00E) : vs_color
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (020/$014) : vsm_color
VDI (007/$007) : v_pmarker
VDI (109/$06D) : vro_cpyfm
AES (102/$066) : wind_close
AES (103/$067) : wind_delete
AES (051/$033) : form_dial
VDI (122/$07A) : v_show_c
AES (052/$034) : form_alert
GEMDOS(060/$03C) : Fcreate
GEMDOS(064/$040) : Fwrite
GEMDOS(062/$03E) : Fclose
VDI (101/$065) : v_clsvwk
AES (019/$013) : appl_exit
GEMDOS(000/$000) : Pterm0