home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / BASIC / POWBASIC / LIBRARY1 / EXAMP2.ZIP / PB090490 < prev    next >
Text File  |  1990-09-04  |  10KB  |  272 lines

  1. all
  2. H#: 63316 S12/SPECTRA Publishing
  3.     31-Aug-90  13:02:11
  4. Sb: pc-week
  5. Fm: Mike Burns 71551,1353
  6. To: Bob Zale 76304,1303 (X)
  7.  
  8. Bob,
  9.   I saw your comments in pc-week about Basic in general. I was
  10.  glad to see some other people realize the vast improvements in
  11.  the language that have been wrought by developers such as
  12.  yourself. Basic is an easy language to use to develop new systems
  13.  and as basic becomes more powerful, I find myself choosing
  14.  it more than C. It is possible to create powerful programs
  15.  with a low maintenance cost.
  16.  
  17.   Keep Up the good stuff ------   Mike
  18.  
  19.  
  20. Press <CR> for next or type CHOICES !
  21. H#: 63702 S12/SPECTRA Publishing
  22.     03-Sep-90  10:21:12
  23. Sb: #Peace and Quiet !
  24. Fm: Bob Zale: PowerBASIC R&D 76304,1303
  25. To: ALL
  26.  
  27. All you PowerBASIC users out there!  And prospective users, too!
  28.   It's getting far too peaceful around here.  Doesn't anyone have
  29.   a problem; a question; even a complaint?  It couldn't be possible
  30.   that PB is now totally bug-free, could it?  (I can dream, can't I?)
  31.   We may have to announce the new PowerBASIC version #2.10 a little
  32.   early, just to get some commotion around here!
  33.    Bob Zale (PowerBASIC R&D)
  34.  
  35. There are 3 Replies.
  36.  
  37. Press <CR> for next or type CHOICES !
  38. H#: 63738 S12/SPECTRA Publishing
  39.     03-Sep-90  14:02:00
  40. Sb: #63702-Peace and Quiet !
  41. Fm: Skene Moody 72657,1553
  42. To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
  43.  
  44. OK, hot dog, where's my equivalent to argc, argv[] ('C')/ParamCount, ParamStr
  45. (Pascal) equivalent in PowerBASIC? <gin>
  46.  
  47. -Skene-
  48.  
  49. Press <CR> for next or type CHOICES !
  50. H#: 63756 S12/SPECTRA Publishing
  51.     03-Sep-90  16:31:18
  52. Sb: #63702-#Peace and Quiet !
  53. Fm: JOHN E. SHIREY 75676,223
  54. To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
  55.  
  56. Bob:
  57.     I'm confused by all these patches to PowerBASIC.  I have an early version
  58. and am still plagued by compiler out of memory probems.
  59.  
  60. This is despite all attempts to alleviate the memory problem. I would
  61. appreciate a discussion of the version patches and how one might obtain them.
  62.                                       J.Shirey
  63.  
  64. There is 1 Reply.
  65.  
  66. Press <CR> for next or type CHOICES !
  67. H#: 63780 S12/SPECTRA Publishing
  68.     03-Sep-90  20:09:59
  69. Sb: #63756-Peace and Quiet !
  70. Fm: Barry Erick for Spectra 75300,214
  71. To: JOHN E. SHIREY 75676,223
  72.  
  73. The patches are in the library. For info on them, check out PBNews.Zip, which
  74. tells about them and other things. If you do not have PB 2.00b, then do this:
  75. Contact Spectra at 1030D East Duane Ave, Sunnyvale, CA, 94086, phone (408)
  76. 730-9291. Or, better yet, since you are (obviously) on CIS, send EMail to Tim
  77. at 71530,2640.
  78.    --- Barry
  79.  
  80.  
  81.  
  82.  
  83. Press <CR> for next or type CHOICES !
  84. H#: 63782 S12/SPECTRA Publishing
  85.     03-Sep-90  21:33:16
  86. Sb: #63702-Peace and Quiet !
  87. Fm: Rob Chandler 72537,1065
  88. To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
  89.  
  90. Hello bob & tim
  91. Nice to see you on compuserve.  I've been using powerbasic
  92. since the upgrade was first announced in TUG.  It's a terrific
  93. product & the support has been fantastic (thanks tim).
  94.  
  95. Keep up the good work
  96.  
  97. rob chandler
  98.  
  99.  
  100. Press <CR> for next or type CHOICES !
  101. H#: 63783 S12/SPECTRA Publishing
  102.     03-Sep-90  21:48:39
  103. Sb: #$Link & ^KP Questions
  104. Fm: Richard Kanarek 72371,111
  105. To: All
  106.  
  107. Howday! I'm having some trouble $linking assembly language rutiness into a PB
  108. program (it my first time trying, BTW) and I think its time to raise the white
  109. flag! Here's what I've done so far: (If you see any errors/mistakes please
  110. don't hesitate to say so!): On first attempt to test a section of both programs
  111. I... 1)Kept getting err 507 (Invalid $link file). Solution: I realized that the
  112. assmb language examples in the book weren't in standard segment just becuase
  113. you like standard segments! Replaced simplified segments, Error gone... 2) Kept
  114. getting 462 (Unidentified sub). After trial and error, discovered that while
  115. the `parameter options' list might be optional, the brackets () aren't! Error
  116. gone... 3) Test ran sample section of program- pgrm vomited on screen & crashed
  117. (nothing new for me there!) Attempted to debug using TD but was greated by "no
  118. symbol table" message. Recompling everything (PB & assembly language code) with
  119. `map file',`/zi',`/v' respectively but could not satisfy TD `symbol table'
  120. demand. Finaly inserted a beep & delay in PB code right before the call to the
  121. asmb. pgrm so that I could let it run in TD while being able to switch to
  122. `trace' mode before call. It apears that either ds & dx aren't being loaded
  123. with the right values or the data they are suposed to be pointing to is being
  124. written over. Searched through large areas of memory and was unable to find the
  125. text string that was suposed to be there! 5)Decided to write the experts @
  126. Spectra with there own software. Accidently hit <Prt Sc> and the computer
  127. locked up- after I had gotten 1/2 way through the letter and before I saved
  128. any! (You gents REALY must do something about this! Why does PB HATE printers
  129. so much!?! You know ^KP works no better!) Well, a sample of both programs
  130. follows this letter. If you (anyone) find the time, any sugestions will be very
  131. much appericated! Corially,Richard Kanarek
  132.  
  133. There are 2 Replies.
  134.  
  135. Press <CR> for next or type CHOICES !
  136. H#: 63784 S12/SPECTRA Publishing
  137.     03-Sep-90  21:51:27
  138. Sb: #63783-$Link & ^KP Questions
  139. Fm: Richard Kanarek 72371,111
  140. To: Richard Kanarek 72371,111 (X)
  141.  
  142. Power Basic Program (Edited- Acutally aprox. 1500 lines)
  143. $DEBUG MAP ON
  144. $error all on
  145. 'Lots of DIM & variable$=string statements
  146. ArmUpdate:
  147.         on timer(1) gosub update 'I trust these won't bother me?
  148.         timer on
  149. Armhelp:
  150.         key 15,CHR$(&H08, &H23)         '        "        "        "
  151.         on key(15) gosub Hlp
  152.         key(15) on
  153. declare SUB asmbinfo()
  154. mainscreen:
  155.         cls
  156.         ? "Several lines of print..."
  157.         call asmbinfo 'the offending call statement you've been
  158.                 'reading so much about!
  159.         'the program never goes farther than this, why should you!
  160.  
  161. Assembly Language rutines: (Edited, actual size aprox 1500 lines):
  162. .8086
  163. jumps
  164. LOCALS
  165. NOWARN RES
  166. DSEG segment BYTE
  167. ASSUME DS:DSEG
  168. ;=+=DATA [Start]=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  169. cr        equ        13
  170. lf        equ        10
  171. gen_info        db "File: ",??filename,"Date: ",??date," Time: ",??time
  172.                 db cr,lf,"(So I'll know what ver. is linked into any"
  173.                 db "*.exe pgrm this is included in.)",cr,lf,"$"
  174. ;P.S. I wasn't able to find the above when I used TD to search several
  175. ; areas of memory! Where did it go???
  176. ;---Lots more data...
  177.  
  178.     DSEG ends
  179. ;=+=DATA [End]=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  180. CSEG segment BYTE
  181. ASSUME CS:CSEG
  182. ;------Asmbinfo [Start]--------------------
  183. ;prints general information about the assembly code.
  184. ;++NOTE: To be called by a FAR call ONLY!!! (i.e. PB)
  185.         asmbinfo proc FAR
  186.         public asmbinfo
  187.         ;this section saves the register values to the stack
  188.         push ax
  189.         push bx
  190.         push cx
  191.         push dx
  192.         pushf
  193.         mov ax,DSEG        ;Do I need to initialize the DS reg???
  194.         mov ds,ax       ;I could be wrong but it didn't seem to
  195.                         ;help either way!
  196.         mov dx,OFFSET [gen_info]
  197.         mov ax,0900h
  198.         int 21h
  199.         ;this section restores register values from the stack.
  200.         popf
  201.         pop dx
  202.         pop cx
  203.         pop bx
  204.         pop ax
  205.         retf
  206.         asmbinfo endp
  207. ;------Asmbinfo [End]----------------------
  208.  
  209. Well, that wasn't so long, was it? Alright, it was. But think,
  210. when was the last time you got so much spaghetti for free! Eat
  211. carefully though- watch out for bugs!
  212. Thanks in advance,
  213. Richard Kanarek
  214.  
  215. Press <CR> for next or type CHOICES !
  216. H#: 63808 S12/SPECTRA Publishing
  217.     04-Sep-90  05:00:18
  218. Sb: #63783-$Link & ^KP Questions
  219. Fm: Barry Erick for Spectra 75300,214
  220. To: Richard Kanarek 72371,111
  221.  
  222. Richard,
  223.  The main problem is where youhave the initialized data. The data segment can
  224. only have uninitalized data in it and you have initialized data in it. If you
  225. just delete your data segment and move the assigments to the cseg, after the
  226. endp, for instance, but before a cseg ends, you'll be ok. Also, make ds point
  227. to that. One other thing, it is best to save bp and ds.
  228.  you'll see this error message in the next version of PB, and you'll be happy
  229. to be using td without the error message you saw.
  230.  Printing problems? ^KP not working? Both print screen and ^KP work here. But
  231. tell us more.
  232.  -- Barry
  233.  
  234.  
  235.  
  236.  
  237. Press <CR> for next or type CHOICES !
  238. H#: 63830 S12/SPECTRA Publishing
  239.     04-Sep-90  07:14:20
  240. Sb: Converting TP reals
  241. Fm: Joe Vest 74017,1672
  242. To: [F] ALL .
  243.  
  244. Anyone,
  245.   Does anyone have an algorithm for translating Turbo-Pascal six byte reals to
  246. PB? I have tried using the information about the mantissa level in the back of
  247. the TP manual, no luck.
  248.   Thanks for any help,
  249.   /joe/
  250.  
  251. Press <CR> for next or type CHOICES !
  252. HPC Vendor B ForumHSections Menu
  253.  
  254. Section names (#subjs/# msgs)
  255.  1 Quarterdeck  (72/165)
  256.  2 Primavera Systems  (1/2)
  257.  3 Korenthal Assocs.  (3/5)
  258.  4 Personics Corp.  (17/30)
  259.  5 Quicksoft  (4/7)
  260.  6 TurboPower Software  (53/179)
  261.  7 ChipSoft, Inc.  (2/2)
  262.  8 DacEasy  (8/13)
  263.  9 Vestronix  (1/1)
  264. 10 J.P. Software  (21/88)
  265. 11 PDC Prolog  (6/15)
  266. 12 SPECTRA Publishing  (4/10)
  267. HEnter choioce(s) or ALL !ff
  268.  
  269.  
  270. Exiting at 04-Sep-90  08:31:38
  271. Thank you for visiting PC Vendor B Forum
  272.