Author Topic: ORG: online Z80 IDE and assembler  (Read 53478 times)

0 Members and 3 Guests are viewing this topic.

Offline NeoCrisis

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 217
  • Rating: +14/-2
  • tihacker59
    • View Profile
Re: ORG: online Z80 IDE and assembler
« Reply #90 on: July 18, 2012, 02:04:01 pm »
well, here are the translations:

Création Archive ZIP
Ajout du fichier [FICHIER]
Fichier ZIP créé avec succès
Merci de vous connecter ou de vous inscrire pour stocker en ligne
Fichiers sauvegardés avec succès
Passe 1
Passe 2
Programme assemblé sans erreurs



TI-Planet moderator

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #91 on: July 18, 2012, 05:52:01 pm »
Thank you NeoCrisis!

All the translations except those for the manual have been added. The language system has been completely remade, so that even the build logs can be toggled between French and English (and there's a viable way to do it for the manual now too). It also means I can now easily add more languages, if there are any translators up to the task :)




Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #92 on: July 26, 2012, 01:25:43 am »
Didn't imagine these changes could possibly take this long, but they did.

First of all, I finally got around to fixing the Z80 highlighting engine. Up till now it didn't recognize strings or other data—it just saw a directive and said "everything else on this line is a string." Which is ridiculous, but I was lazy, and it's fixed now anyway :P

But more importantly, ORG now has autocompletion! That's one feature I've wanted to add since the beginning—along with syntax highlighting and automatic tabbing, it's pretty much why I use IDEs and code editors instead of Notepad. Plus Z80 assembly only has so many commands which means a decent engine could actually create suggestions for every single valid instruction. And ORG does. Every single Z80 instruction, documented and undocumented, appears in the suggestions box if you type its first few characters. It actually pulls all its data from my online Z80 reference, which means I could easily add, say, another pane on the right to act as a "quick reference" showing the number of clock cycles a command takes, its effects on flags, and so on. I guess that'll be the next thing to do.

The suggestions (autocomplete) box pops up automatically when you hit the spacebar, but you can also force it to come up by pressing Ctrl+Space (common keyboard shortcut for editors like Eclipse and Notepad++). It's based on the CodeMirror hinter function, which means if there's exactly one suggestion remaining, it'll automatically get entered instead of showing you the popup. I guess you could use that as a sanity check or to speed up coding somewhat. (It'll even jump to any undefined immediate values in the instruction—really proud of that ;D)

Update

New:
  • Autocompletion - type the first few characters of a Z80 instruction and choose from the popup
  • French translations of the manual (all of kindermoumoute's translations so far have been added)
Changed:
  • Syntax highlighting engine actually knows what strings are now
  • Manual contents load asynchronously (after the rest of the page loads)
Fixed:
  • EX (SP),HL and similar instructions weren't recognized
  • Errors on unknown instructions didn't give the correct message
« Last Edit: July 26, 2012, 03:13:28 am by Deep Thought »




Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: ORG: online Z80 IDE and assembler
« Reply #93 on: July 26, 2012, 07:52:21 am »
I've been getting good use out of this so far. I'll most likely be using it later today so I can check out the updates. :) Is there a way to disable the auto-complete if someone does not want to use it?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #94 on: July 26, 2012, 01:22:56 pm »
Not yet, but I know I should add a way to toggle it.




Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: ORG: online Z80 IDE and assembler
« Reply #95 on: July 26, 2012, 06:42:48 pm »
Now I have time to finish translation. :)
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #96 on: August 12, 2012, 01:43:51 am »
Update

Some major bug fixes.

New:
  • Compile option for "JavaScript popup" to give you a simple popup box allowing you to quickly copy some hex code instead of having to download and open a file (suggested by MGOS)
Fixed:
  • Saving files no longer worked after I messed up part of the script in my last site restore; fixed (reported by MGOS/jacobly)
  • IX/IY indirection in the form (IX) and (IY) now supported; used to only support (IX+n) or (IY+n) (reported by calc84maniac)
  • sra and srl were giving the wrong opcodes because of the old (wrong) TAB file I'd been using; fixed (reported by MGOS)

EDIT: kindermoumoute, I just translated "JavaScript popup" as "Popup avec JavaScript"—got a more elegant suggestion? :P
« Last Edit: August 12, 2012, 01:44:53 am by Deep Thought »




Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: ORG: online Z80 IDE and assembler
« Reply #97 on: August 12, 2012, 09:33:20 am »
I suggest you rename it : "Code hexadécimal (pop-up)", because it's more meaningful.

You should move it below "compiler en héxadécimal" and rename this last in "Code héxadécimal (*.txt)". ;)
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #98 on: August 12, 2012, 11:31:57 am »
That's probably a good idea for English too :P Didn't think of that.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ORG: online Z80 IDE and assembler
« Reply #99 on: August 13, 2012, 03:09:48 am »
Quote
[02:50:08]   harold   Guys, when DeepThought is back, can you guys let him know that im1 does not assemble in his online IDE?

In case people missed that or can't tell you.

EDIT:

Quote
[03:08:22]   jacobly   also jp (ix)
« Last Edit: August 13, 2012, 03:10:15 am by DJ_O »

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: ORG: online Z80 IDE and assembler
« Reply #100 on: September 07, 2012, 04:36:12 pm »
Hmm, I make a habit of using \ for repetitive code. For example:
Code: [Select]
rlca \ rlca \ rlca \ rlca
However, ORG seems to have an issue with it .__. Is it possible to modify it to use \ as a newline, or will it be a pain?

EDIT: Also, cool autocompletion!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #101 on: September 09, 2012, 01:43:10 am »
However, ORG seems to have an issue with it .__. Is it possible to modify it to use \ as a newline, or will it be a pain?
Did that and fixed some obscure bugs with #define in the process. (#define and #defcont were the only commands that allowed \ in place of newline, but \ is now a complete substitute for newline.)

EDIT: I can also add line numbers back in error messages now. They were taken out and replaced by the actual content of the line containing the error because of inconsistencies involving #define, but now that I've restructured my code I can add it back in.

Do you think I should display just the line number, just the line content, or both in the error message? I'm leaning toward line numbers so the messages aren't too long.
« Last Edit: September 09, 2012, 12:27:47 pm by Deep Thought »




Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: ORG: online Z80 IDE and assembler
« Reply #102 on: September 09, 2012, 02:19:47 am »
I think you can display the line number and the character number of the error, like in several compiler :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: ORG: online Z80 IDE and assembler
« Reply #103 on: September 09, 2012, 12:27:21 pm »
I don't know the character position myself because I parse the whole line at a time.
« Last Edit: September 09, 2012, 12:27:38 pm by Deep Thought »




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: ORG: online Z80 IDE and assembler
« Reply #104 on: September 09, 2012, 02:48:13 pm »
Yeah, I think line numbers should be fine :D Thanks!

EDIT: I very much enjoy that I can copy my code from my home computer to a flash drive and then get on a public computer when I am in town and continue programming. :) This is a great project, Deep Thought!