Hello, a while ago I thought about programming a text editor similar to Atom.
(KrytonIDE apparently has a lot of bugs and I can't download it ...)

At the moment I read out the program in bytes, and then have a pionter to a string: 18 would then point to "round ("

However, this is quite laborious and slow, so I was wondering if there might be a better way ...
Maybe you could help me with this example?

This is program A what I want to display
Code:
ClrHome
Disp "HI"


My program:

Code:
iTEXTEDIT
det(0)
sum(0)
sum(2,"A","r",5)
sum(16,1)→SIZE
Alloc(SIZE)→TXT
sum(5,TXT,SIZE,1,1)

det(18,TXT,5,5)
Pause
det(1)

Output: Any random chars and: *HI*

EDIT:
jacobly told me how to do it: I can use sum (17 to convert the byte 225 to "ClrHome"
Thank you! Very Happy
Do you know how to use sum(17 ?
I tried this, but the result is "Compare(" instead of "ClrHome"

Code:
iTEST
det(0)
1→LT→LS
225→A

det(17,sum(17,A,LT,LS))

Pause
det(1)


EDIT:
I got it; I need the pointer to the pointer for the 225

Code:
iTEST
det(0)
1→LT→LS
Alloc(1)→A
225→*{A}

det(17,sum(17,A,LT,LS))

Pause
det(1)
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement