Author Topic: edit8X+  (Read 7855 times)

0 Members and 1 Guest are viewing this topic.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
edit8X+
« on: April 12, 2013, 07:21:56 am »
A new project on its way...

edit8X+ will mainly be a text viewer|editor.
The main idea is to be able to read text imported from a computer.
I know that doesn't sound very original, but i really wanted to code my own.
Also, i might use it later for a larger purpose.
A challenge will be to make the code OS-independant (avoiding system routines when possible).

*****

PLANNED FEATURES :

compatibility with as many models as possible
The default large font will be used but the characters order will match :
 ASCII printable characters (full compatibility)
 ISO-8859-1 printable characters (partial compatibility)
 CP-1252 printable characters (partial compatibility)
block selection , cut , copy , paste
undo
compatibility with the tab control character
compatibility with different versions of the enter control character :
 $0A
 $0D
 $0D,$0A
temporary system & extra ram usage during edition
view-only mode for archived files too large to be edited (if unsufficient free ram)
new , save as , save
backspace (maybe)
horizontal scrolling
...

*****

WHAT'S DONE FOR NOW :

The font :

242 printable characters
153 of them are compatible with notepad (instead of 92 in the original system font).
The other 89 are specific to the calculator (I needed them for another project).

11 undefined characters (dedicated sprite)

The 3 remaining slots are used for control chars (tab & enter).

*****

Any suggestions are welcome =]

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: edit8X+
« Reply #1 on: April 12, 2013, 07:39:10 am »
Sounding cool ! Now we'll have a decent text editor for our calcs. :3

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #2 on: April 13, 2013, 12:12:31 pm »
disp_char routine coded =]

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: edit8X+
« Reply #3 on: April 13, 2013, 12:13:57 pm »
wait, for the calculator? Nice idea!
I hope it'll turn out well :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: edit8X+
« Reply #4 on: April 13, 2013, 12:41:26 pm »
I can provide a backspace routine from cmdOS if you want, it's OS-independant :)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #5 on: April 13, 2013, 02:14:55 pm »
You mean like I could do .txt.8xp? or rename a .txt to .8xp?
Extraordinary!!!! :D
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #6 on: April 14, 2013, 08:05:27 am »
I can provide a backspace routine from cmdOS if you want, it's OS-independant :)
I'm far from that part but thanks a lot for the proposition =]
I'll think of it if i encounter difficulties.

You mean like I could do .txt.8xp? or rename a .txt to .8xp?
I'm not totally sure which variable type i'm gonna use but i'll probably go for the 8xv format.
But yeah, the file will have to be converted to that format before sending it to the calc (not just renamed).
A converter should be included.

Unfortunately, files won't be larger than 65535 bytes, due to VAT limitations.
The converter will automatically split the file if necessary.
« Last Edit: April 14, 2013, 08:10:04 am by the_mad_joob »

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #7 on: April 19, 2013, 10:44:19 am »
Handling tab seems to be harder than expected...

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: edit8X+
« Reply #8 on: April 19, 2013, 12:53:03 pm »
If you are keeping track of character coordinates, you could try to make 'tab' work by adding, say, 4 to the coordinate, then use AND %11111100 to mask out the lower bits. Or, for 8 or 16 (like if you are doing it by pixel), you could add 8 or 16 and mask with AND %11111000 or AND %11110000 respectively. That will make sure that it aligns properly :)

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #9 on: April 19, 2013, 06:19:56 pm »
Well I'll be waiting for it. Maybe the best type is Application for variables.
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #10 on: April 20, 2013, 02:22:39 am »
I'm actually designing the view mode algorithm.
Is it true that an archived file cannot cross a sector or is it just rumors ?
If yes, that would compromise the handling of large files...
« Last Edit: April 20, 2013, 02:23:11 am by the_mad_joob »

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: edit8X+
« Reply #11 on: April 20, 2013, 02:39:31 am »
It is true: archived files cannot cross sector boundaries.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #12 on: April 20, 2013, 03:16:58 am »
Hmm...
I assume the reason for that is the way how swapping is performed by the OS or something.
Or maybe ti coders were too lazy to handle the sector status byte.

I'm still curious to see what happens when sending a 65535 long variable.
I'll check that out.
« Last Edit: April 20, 2013, 03:19:13 am by the_mad_joob »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: edit8X+
« Reply #13 on: April 20, 2013, 10:01:28 am »
the_mad_joob as far as I know, you can't. I've tried it with many programs and utilities, the maximum, even if sending directly to archive, is however much USER RAM you have left.
Keep trying.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: edit8X+
« Reply #14 on: April 20, 2013, 12:30:22 pm »
That definitely sucks =[
I guess the only way to support very large files would be to handle them as applications.
Unfortunately, that implies some space wasting.

Anyway, if i decide to do so, i have an idea :
Defining a special header that automatically calls edit8x+ when the app is executed.
What you think ?