Announcement

Collapse
No announcement yet.

POKE & PEEK

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • POKE & PEEK

    Hi

    When I programmed on my Commadore 64, years ago I would determine
    the end of the program and then POKE the characters numbers into
    the memory above the end of the program. Is there anyway to deter-
    mine the end of a PowerBASIC program so I can do the samething?
    Then when I wanted to write the letter I would PEEK the memory and
    put it onto paper.

    ------------------

  • #2
    This is not a meaningful technique with PB/DOS, which already gives
    you access to all available DOS-arena memory, and then some. Just use
    strings or a string array.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      See MEMSET and ENDMEM in the PB-DOS help file, although these are usually used to allow OTHER programs to use high memory, with POKEd subroutines usually stored in your own address space, as Mr. Hanlin suggests..

      MCM


      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment

      Working...
      X