home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / cbm / 3553 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.8 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!att-out!rutgers!cbmvax!fred
  2. From: fred@cbmvax.commodore.com (Fred Bowen)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: ROM call woes
  5. Message-ID: <34865@cbmvax.commodore.com>
  6. Date: 3 Sep 92 13:31:07 GMT
  7. References: <1992Sep1.135948.1@kosmos.wcc.govt.nz>
  8. Reply-To: fred@cbmvax.commodore.com (Fred Bowen)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 36
  11.  
  12. Article <1992Sep1.135948.1@kosmos.wcc.govt.nz> asks:
  13. >Are their any programming guru's out there?
  14. >
  15. >I have a C64 ML program which I am converting to run on a 128.
  16. >There are a number of calls to the 64 ROM area which I'm having trouble
  17. >finding equivalents for on the 128. Most of these involve string 
  18. >handling, which all my 128 books seem to skimp over.
  19. >
  20. >The addresses in the 64 are:
  21. >B475  ;reserve string
  22. >B6A3  ;free string
  23. >AD9E  ;eval expression
  24. >B79E  ;get parameter
  25. >
  26. >And a few others I think I have sourced okay. Any help would be really
  27. >appreciated - many thanks.
  28.  
  29.     $B475 (C64)    $8688 (C128)    Strini
  30.     $B6A3        $877E        FreStr
  31.     $AD9E        $AF96        FrmEvl
  32.     $B79E        $87F4        GetByt
  33.  
  34. I have not played with these is quite a while, so I can't guarantee that
  35. the register and MMU setups are exactly the same.  Keep in mind that some
  36. lower level BASIC routines expect a specific RAM bank to be in context
  37. already, and some will change the RAM bank.  Also, strings are stored in a
  38. slightly different way (C128 has backpointers for better garbage collection),
  39. but if you stick to using ROM routines for everything you'll have no problem.
  40. --
  41.  
  42. -- 
  43. Fred Bowen            uucp:    {uunet|rutgers|pyramid}!cbmvax!fred
  44.                 domain:    fred@cbmvax.commodore.com
  45.                 tele:    215 431-9100
  46.  
  47. Commodore Electronics, Ltd.,  1200 Wilson Drive,  West Chester,  PA,  19380
  48.