home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug120.arc
/
MTEK.LBR
/
README.DOC
< prev
Wrap
Text File
|
1979-12-31
|
4KB
|
74 lines
Getting a .SYM file (usable by Mitek ZBUG)
with a minimum number of keystrokes
By Ian Johnstone
Thσá advantage≤á oµá beinτ ablσ t∩ usσ ß .SY═ filσá iεá thσá debugginτ ì
proces≤á arσá considerablσ but¼á witΦ thσ numbe≥ oµ bug≤ ╔á managσá t∩ ì
inser⌠á int∩ ß sourcσ file¼á thσ neeΣ t∩ usσ Harr∙ Purvisº SYMBOL.COM¼ ì
whicΦ involve≤ quitσ ß numbe≥ oµ keystrokes¼á make≤ thσ joΓ almos⌠á a≤ ì
tediou≤á a≤á doinτ i⌠ withou⌠ ß .SY═ file«á T∩ easσ thσ tediuφ ╔á havσ ì
writteεá MTKSYM.CO═ whicΦ load≤ ZBUG.COM¼á read≤ iε ß filσá A.SY═á anΣ ì
anothe≥ filσ A.COM¼ theε executeΣ thσ commanΣ ^╥ which¼ ╔ suppose¼ i≤ ì
what XSUB would do if we could use it on the Bee.
T∩á usσá MTKSY═á yo⌡ wil∞ neeΣ you≥ sourcσ filσ nameΣ A.Z8░ oεá thσá ┬ ì
drive and the following on the A drive.
WordStar
USR.COM ;or ASUB.COM
ZIP.COM ;Mitek file
ZAS.COM ; do
ZBUG.COM ; do
PAUSE.COM ;Gives a beep & prompts for a keystroke
MTKSYM.COM
Iµá yo⌡á haven'⌠ go⌠ ZIP.COM¼á ╔ aφ surσ tha⌠ i⌠ wil∞ bσ iεá SMU╟á BB╙ ì
library«á ╔á prefe≥á t∩á speeΣ thing≤ u≡ b∙ copyinτ a≤ man∙á file≤á a≤ ì
possiblσá t∩ thσ ═ drivσ anΣ usinτ thσ Bee'≤ USR.COM«á Iµ yo⌡á haven'⌠ ì
go⌠á USR¼á usσ ASUB«á Fo≥ thosσ unfamilia≥ witΦ USR¼á ╔ wil∞á g∩á int∩ ì
details.
Seect Icon 4 and press <CR> when offered that option
Select option E (edit)
Select command 3 (if vacant)
Enter:
ZI╨á USR.CO═ M:;ZI╨ ZAS.CO═ M:;ZI╨ ZBUG.CO═ M:;ZI╨ PAUSE.CO═ ì
M:;ZIP MTKSYM.COM M:;USR 4 <CR>
Select option S
Select option A
Select option E (edit)
Select command 4 (if vacant)
Enter:
M:;WS B:A.Z80;ZAS B:A $SM;PAUSE;WS B:A.Z80;ZAS B:A;ZLINK A;
MTKSYM ZBUG.COM <CR>
Select option S
Select option A
Selec⌠á commanΣ 3 anΣ yo⌡ arσ away«á Yo⌡ wil∞ bσá presenteΣá witΦ ì
a WordStar screen displaying B:A.Z80:
Enter as a first line `ORG 100H'
Make corrections (if any) to source file
Exit from WS
Oε sounΣ oµ beep¼ examinσ screeε fo≥ assemble≥ erro≥ message≤ anΣ ì
press a key
W╙ screeε wil∞ appea≥ again«á Deletσ 'OR╟ 100Hº anΣ makσ alteratì
ion≤ (iµ any⌐ arisinτ froφ erro≥ message≤ anΣ exi⌠ froφ WS
Thσ nex⌠ thinτ yo⌡ seσ wil∞ bσ ß ZBU╟ displa∙ oµ you≥ sourcσ filσ witΦ ì
al∞á label≤á shown«á Futurσ passe≤ througΦ thi≤ serie≤á (excep⌠á afte≥ ì
powe≥á up¼á wherσá thσ command≤ wil∞ bσ ┤ 3⌐ wil∞ bσ initiateΣ b∙á tw∩ ìèshar≡ tap≤ oµ ke∙ `4'«á Oµ course¼ thσ copyinτ oµ file≤ t∩ thσ ═ drivσ ì
need only be done once.
Thσ MTKSY═ sourcσ filσ i≤ prett∙ eas∙ t∩ follo≈ through«á I⌠á consist≤ ì
of three subroutines:
REA─á load≤ ZBUG.COM¼á redirect≤ BDO╙ call≤ froφ BDO╙ entr∙ poin⌠ ì
to TEMP and executes ZBUG
TEM╨á Check≤ returε addresse≤ fo≥ ß returε t∩ ZBU╟á BDO╙á callinτ ì
subroutine¼á redirect≤ tha⌠ cal∞ t∩ TRAP¼á restore≤ thσ origina∞ ì
BDOS entry point and jumps to TRAP
TRA╨ Iµ thσ cal∞ i≤ ß direc⌠ keyboarΣ request¼ returε ß characte≥ ì
from thetext buffer. Tidy up at end of text. The text buffer is:
'RA.SYM',CR,CR,ControlR,'RA.COM',CR,ControlR,0
Therσá arσ n∩ erro≥ messages«á I⌠ i≤ u≡ t∩ thσ use≥ t∩ seσ tha⌠á file≤ ì
arσ oε thσ righ⌠ disk«á Afte≥ onσ hiccup¼á ╔ go⌠ thσ righ⌠ result witΦ ì
the command `MTKSYM d:ZBUG.COM' where d: is the correct drive.
Hoping that this will relieve som of the boredom in debugging.