Using INCLUDE to add a text file in PBP3


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: Using INCLUDE to add a text file in PBP3

    But DATA stores the values in EEPROM - don't know if it matters in this case but it needs to be considered.
    The topic "Strings in codespace" has come up a couple of times, Darrel had some routines for it but his site is no longer available for apparent reasons. There's a repository somewhere on the forum, perhaps it's there. Anyway, here's the thread with the discussion around his code. There are other threads as well.

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Using INCLUDE to add a text file in PBP3

    has to be 18f device, org 0x.... start location in program memory..... quotes around text, spaces have to be added with dec 34, cr is dec 13
    that is text and decimals or hex numbers placed in memory at program time, accessed starting at the org location

    END
    ''==============TABLES============= ''!!! ADD 0,0,0 TO END
    ASM
    tbl1 org 0xA400
    db "HTTP/1.0 200 OK",13,"Content-Length: 800 ",13,13
    db "<html>",13,"<h1> PIC 18F...TT Server v1.0</h1>",13,"<input type=",34,"text",34," id=",34,"txt",34,">"
    db "<script type=",34,"text/javascript",34,">" ,13," var c=0;var t;var timer_is_on=0; "
    db "function timedCount(){document.getElementById('txt').value= c;c=c+1; "
    db "t=setTimeout(",34,"timedCount()",34,",1000);}func tion doTimer(){if (!timer_is_on){timer_is_on=1;timedCount();}} "
    db "</script><form method=",34,"get",34,">Project name: <input type=",34,"text",34," name=",34,"PIC",34," value=",34,"PIC18F2525 ",34," />"
    db "<br>select one: <select><option>Amps</option> "
    db "<option>Volts</option><option>Frequency</option> </select>"
    db "<input type=",34,"submit",34," value=",34,"Submit",34," /></form> "
    db "<body onLoad=",34,"doTimer()",34,"><p><b>Note: TEXT HERE </b><br><script type=",34,"text/vbscript",34,">"
    db "document.write(NOW & ",34," Hello World!",34,")</script><br></body></p> </html> "
    db "<style type=",34,"text/css",34,">body{background-color:#d0e4fe;}h1{color:red;} style> "
    db "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>< BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR ><BR> ",0,0,0
    db "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>< BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR ><BR> ",0,0,0
    ENDASM
    '''---------------------------------------------------------------
    Last edited by amgen; - 16th May 2016 at 19:01.

Similar Threads

  1. PBP3 to include 18F97J94?
    By fowardbias in forum PBP3
    Replies: 1
    Last Post: - 18th December 2013, 16:42
  2. Include File problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd March 2011, 17:44
  3. Can't seem to add AllDigital to the include files
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th November 2009, 04:21
  4. Include ASM file help
    By harryweb in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd May 2007, 20:22
  5. The ultimate include file
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th January 2007, 19:35

Members who have read this thread : 0

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

Posting Permissions

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