How to shoehorn MORE text into 2k or how to squeeze in the most bytes.


Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Feb 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: How to shoehorn MORE text into 2k or how to squeeze in the most bytes.

    Here's a slightly better version for #2



    Code:
    Print_ROM_127:   ' Call with zb = INTERNAL ROM_Memory_Location [byte]
      Do until AB > 128
        READ ZB, AB     BB = AB & $7F ' drop the upper bit, DEBUG does not allow any math functions during output.
        DEBUG BB     ' Debug like all the other printing commands does not allow any math operations
        ZB= ZB + 1   ' Increment through the string
      Loop
    return
    

    ==============================

    I've noticed that Debug and the other "Print" commands use 2 bytes per Char.

    Is there a way to do the above string "Peeking" in the program memory?
    Does Grasshopper need to explore
    PEEKCODE
    AND
    @ STRING_LOC DT "Text here"

    Stay tuned on this bat channel.
    Last edited by ofuzzy1; - 28th October 2011 at 04:49.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts