Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Deep Toaster on January 21, 2012, 12:10:56 am

Title: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 12:10:56 am
(http://clrhome.org/asm/bar.png) (http://clrhome.org/asm/)

What is ORG?

ORG is an online IDE (http://en.wikipedia.org/wiki/Integrated_development_environment) and assembler for Z80 projects, especially those for the TI-83 Plus–series calculators. Type your source code into the syntax-coloring editor, press Build, and download a fresh-baked program right out of the sidebar.

What can I do with it?

The ORG IDE lets you manage an entire project at a time, with as many individual text files as you want. The project source can be edited, assembled and linked (Build), zipped and downloaded (Download), BBify'd (http://omniurl.tk/9167/) (BBCode), and saved online (Save). The GUI features tabbed files, five syntax themes, and an activity log. Drag tabs around to rearrange them, double-click them to rename, and click the X to close.

How does the assembling work?

When you press Build, each file is sent to the server and saved temporarily. (It also implies the Save action if you're logged in.) The first file in the file list (the one with an orange bar on top) is the one that is parsed first, and its filename is converted into the program name. Other files are parsed when they are included with the #include directive (see the section on directives below). You are allowed to include any files you have created, as well as select files built in to ORG: ti83plus.inc. After a few seconds, the script should be done assembling your project. View the logs in the sidebar and click the download link to download your 8XP file.

What does the assembler support?

It's largely complete, but I'm still actively working on adding new features. Most of the features you'd expect to be available in a Z80 assembler—macros, conditional statements, include files, and so on—are already implemented. The syntax is similar to Spasm's (http://revsoft.tifreakware.net/phpBB3/viewforum.php?f=15). Here is a complete list of supported hash directives:
What's in a name?

ORG stands for "ORG's Really Great!" It's also a pun on the .org directive.

No other reason?

Nope.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 21, 2012, 12:30:18 am
This is funny how this comes up shortly after Iambian brought up the assembler name suggestion .orgASM/.org-ASM that I gave him a few years ago on IRC, because now I misread your topic title as that O.O

Anyway this is nice to see more online development tools for calcs. SOmetimes people may not want to go on ticalc.org/omni/cemetech archives and  install/download stuff.
Title: Re: ORG: online Z80 IDE and assembler
Post by: systwo on January 21, 2012, 01:11:04 am
Are you planning to make programs runnable online in the future? That would be great for me when I need to show other people asm programming.
Title: Re: ORG: online Z80 IDE and assembler
Post by: ZippyDee on January 21, 2012, 01:50:43 am
How would they run....there would have to be an online emulator as well.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 21, 2012, 01:53:30 am
^This. There used to be one on Netham45 server, but it was too bandwidth-intensive (every calc frame were generated on server side and then you downloaded them 10 times per second) and I think he had to host the ROMs himself, so he got rid of it.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Juju on January 21, 2012, 01:56:36 am
That's pretty cool :D Aren't the buttons rather big/small when you have a big/small window though?
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on January 21, 2012, 02:52:17 am
I played around with this a bit earlier. It is quite nice, and you've done an excellent job with it! =)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 09:55:39 am
How would they run....there would have to be an online emulator as well.
Buckeye's already ported WabbitEmu to JavaScript, and he's working on the bugs now.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 10:01:12 am
Wow, this is great! I am just curious... is there any possibility in the future to include these features:

-Compiling to an APP
-Making shared projects (so several members of a team could work on it)

That would raise the level of epicness in my book to astounding o.o
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 10:03:58 am
-Compiling to an APP
Planned
-Making shared projects (so several members of a team could work on it)
Planned
That would raise the level of epicness in my book to astounding o.o
It might take a while (definitely after finals), but I'm going to change the way projects are saved. Currently, they're saved by email (so each person can have only one project saved online), but I'll make it more like SourceCoder's project system someday, where each person can host multiple projects and share them with others.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 10:06:05 am
This is still cool o.o Is there also some way where I can make very specific names? Like I know when I was making Grammer, for a while in development it was called GRAMMER until I figured out how to use a Brass command to change it to Grammer.

EDIT: Also, BatLib uses weird symbols
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 10:15:21 am
This is still cool o.o Is there also some way where I can make very specific names? Like I know when I was making Grammer, for a while in development it was called GRAMMER until I figured out how to use a Brass command to change it to Grammer.
You mean lowercase names? I think I'll have programs names always be uppercase and app names be whatever the file name is. Not sure about symbols yet; currently it doesn't even support _ XD
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 10:16:00 am
Yes, that would be great! Also, how do I go about changing the name of a project?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 10:19:33 am
It's the filename on the first tab (the one with a yellow bar). Change it by double-clicking on the tab.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 10:21:30 am
Awesome, thank you much! Now I can get to work :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 10:34:25 am
I've fixed the issue (not really a bug) where .org could only take a single constant value and no expressions and added the .block directive. Both directives can now take an expression like any instruction except that they don't allow forward-referencing.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 12:02:59 pm
UPDATE: Added .end, .fill, .echo, #if, and #elseif directives.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 12:39:59 pm
Wow, cool o.o

EDIT: Also, is there some way to make it so people can give links to their sources for others to modify?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 12:46:50 pm
EDIT: Also, is there some way to make it so people can give links to their sources for others to modify?
Well, once I get sharing working, which might take a few weeks.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 12:49:17 pm
Ah, right. I also realised that I can save the sources to a .zip folder. Also, this is a lot better than using Notepad like I normally do o.o
Title: Re: ORG: online Z80 IDE and assembler
Post by: thepenguin77 on January 21, 2012, 02:41:32 pm
Well, I had a few problems with text input...

(http://img.removedfromgame.com/imgs/tabs_off.png)

I typed this with my eyes closed so that I wouldn't try to correct what I was doing. The problem that I had was that the IDE doesn't really handle tabs correctly. The way I type my code is, [Enter][Tab][instruction][argument][,][space][argument]. If you type that key sequence, you'll see exactly what the problem is.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 21, 2012, 02:45:47 pm
Ah, well all you should need to do is press [tab][instruction][space][argument][,][argument]
Then from there, you just press Enter and the tab stays :) Are you accustomed to using some kind of IDE where you don't need to use a space between instruction and argument?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 03:06:56 pm
Also, this is a lot better than using Notepad like I normally do o.o
Notepad is second only to Microsoft Word in terms of worst editor for code :P

And I added a little logo, which doubles as a userbar:

(http://clrhome.org/asm/orgbar.png)

EDIT:
I typed this with my eyes closed so that I wouldn't try to correct what I was doing. The problem that I had was that the IDE doesn't really handle tabs correctly. The way I type my code is, [Enter][Tab][instruction][argument][,][space][argument]. If you type that key sequence, you'll see exactly what the problem is.
Like most code editors, it keeps tabs so you don't have to type them again. I think there's an option to turn it off, but I personally like the feature (probably because I'm used to Notepad++ and other code editors).
Title: Re: ORG: online Z80 IDE and assembler
Post by: Eeems on January 21, 2012, 09:37:52 pm
How would they run....there would have to be an online emulator as well.
Buckeye's already ported WabbitEmu to JavaScript, and he's working on the bugs now.
I also have the basis for an emulator in javascript as well :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 21, 2012, 10:08:11 pm
If either of you provide a way for passing files programmatically by URL, I could link this to it :)
This is funny how this comes up shortly after Iambian brought up the assembler name suggestion .orgASM/.org-ASM that I gave him a few years ago on IRC, because now I misread your topic title as that O.O
Take a look at the URL <_<
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 21, 2012, 11:25:58 pm
Lol I just noticed that part :P
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 22, 2012, 10:53:43 am
UPDATE: Added more options: "Build 8XP," which generates a ordinary protected program; "Build 8XV," which generates an appvar (such as for Axioms); "Get hex," which creates a plain text file with hex tokens in the form you'd type into a AsmPrgm program; "Get BBCode," which sends it to the BBify'r; and "Pastebin," which creates a pastebin.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 22, 2012, 10:58:48 am
Wow, this is great! Thank you much for the .8xv, pastebin, and hex versions! There is currently somebody in my e-mail correspondence and I believe systwo on Omnimaga that would love the hex option!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Eeems on January 22, 2012, 12:41:52 pm
What about building apps?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 22, 2012, 01:21:14 pm
Definitely planned, and I'm looking into the app file format right now.

EDIT: Added a help tab.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Yeong on January 22, 2012, 02:02:39 pm
online assembler? Yay I don't have to set up mah computer for asm compiling anymore XD
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 24, 2012, 09:18:52 am
Thanks to BrandonW, I'm learning the file format of 8XK files (applications). ORG now generates nearly-valid HEX files (unsigned apps), and in a few days I should be able to make it produce valid apps :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on January 24, 2012, 09:27:08 am
Wow! Very nice work Deep! :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 24, 2012, 02:11:56 pm
Yes, awesome!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 26, 2012, 06:41:51 pm
I fixed a ton of bugs, then spent four days trying to write my own signer with three different algorithms, all of which almost worked, and then gave up and used RabbitSign :P

At least it works. ORG can now generate signed one-page apps. I'll be working on two-page apps and getting one of those failed signing routines working over the next few days.

A file app.inc is provided to make app-making easier, with a single macro defpage(page,name) defined, which inserts an app header for page page of an app called name. Since I haven't gotten around to making it support multi-page apps yet, page should be 0 for now.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 26, 2012, 07:26:12 pm
Awesome! I'll have to give it a try at some point ! I am going to be pretty preoccupied with other life influences for a while, though XD
Title: Re: ORG: online Z80 IDE and assembler
Post by: Michael_Lee on January 26, 2012, 09:45:02 pm
Wow, this looks really cool.  I don't have the technical skill to really give this a thorough run, but I do have one suggestion -- try adding an option to change the font size?  It's a tad too big for me.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 26, 2012, 09:58:17 pm
I should probably get rid of the automatic resizing and add a text size option...

EDIT: Whoa, topic 12345!
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on January 26, 2012, 10:43:09 pm
I'm really liking this deep. It's really cool that you're creating such a fully featured editor that's available online. =)  It's quite convinent. It's great for those that can't install software or aren't at home or just have trouble installing things. ^^
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 26, 2012, 11:37:10 pm
Exactly that ^ This program would get a 10/10 for convenience if I were to rate it :D And it would get a 9.5/10 for how easy and intuitive it is to use :D (Compared to a normal assembler, I would rate it at about a 12/20 for the two).

EDIT: grammar
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 27, 2012, 12:10:25 pm
Thanks :)

And two new changes:
Title: Re: ORG: online Z80 IDE and assembler
Post by: Scipi on January 27, 2012, 12:38:13 pm
Something I would like to suggest, though I don't know how feasible this is, is to add real time collaboration like in a Google Doc. I think it would help with big projects as well as be used for teaching methods, etc, etc.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 27, 2012, 12:55:04 pm
I might do that, but I'll have to change the setup of the projects first.
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on March 07, 2012, 03:07:44 pm
I like it !
Is it possible to make it compatible with asm for TI-83 and more ?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on March 26, 2012, 03:37:30 pm
I think that is a good idea... maybe you could have .inc files for the other z80 calcs and for shells for the calcs.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on March 26, 2012, 06:07:07 pm
Yeah it would be nice to see 83 compatibility, since a lot of French people got a 83 (AKA 82 Stats.Fr) nowadays.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on April 15, 2012, 10:14:01 pm
I haven't done it yet, though it shouldn't be hard at all. It'll be added at some point.

A couple of updates: updated CodeMirror to fix that annoying Tab problem and completely redesigned the interface. Hope you guys like it :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on April 16, 2012, 10:37:11 am
I think I broke it D: I am using Chrome...
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on April 16, 2012, 10:44:12 am
Nah, I just did something very stupid in an update and didn't bother to check if it worked or not :P Should be fixed now. Sorry!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on April 16, 2012, 10:48:41 am
Is it supposed to have all the tabs?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on April 16, 2012, 03:34:29 pm
Nope, and I guess I hadn't fixed it.

Now it should be good.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on April 16, 2012, 09:01:10 pm
Woo, this is indeed nicer to use :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: mdr1 on April 27, 2012, 06:55:42 am
Really good project !!
It is very usefull and the graphics are beautiful. :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: blue_bear_94 on May 09, 2012, 08:36:16 pm
Perfect! I have a way to compile Z80 assembly now!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 04, 2012, 11:18:49 pm
Update

No TI-83 support yet (I'll get to it eventually), but there's some new stuff here.

New:Changed:
The "Programmer's API" is really a system that's been in place since the beginning, but I've never gotten around to releasing it until now.

If you have your own project (web-based or otherwise, though it makes more sense for webapps), you can chain it to the ORG assembler by doing an HTTP POST. Instructions and sample code in both JavaScript and PHP can be found in the help section.
Title: Re: ORG: online Z80 IDE and assembler
Post by: blue_bear_94 on June 05, 2012, 08:48:41 am
What about saving to/loading from z80 files from your computer?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 05, 2012, 03:46:36 pm
You can save your Z80 files by clicking Export, which lets you download all your files as a ZIP.

There is no way to load yet except to copy/paste the code into the editor, but I'm planning a Load button between Save and Build that will let you upload files from your computer or load a template file.
Title: Re: ORG: online Z80 IDE and assembler
Post by: mdr1 on June 06, 2012, 04:38:55 am
Hello ! Cool to know that 83 are now supported !
Will you include the possibility of doing an OS ?
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on June 06, 2012, 04:52:17 am
I think you misread that as it says:
No TI-83 support yet (I'll get to it eventually), but there's some new stuff here.

Also, why wouldn't you be able to create an OS with this? I was under the impression any assembler would work.
Title: Re: ORG: online Z80 IDE and assembler
Post by: blue_bear_94 on June 06, 2012, 10:49:06 am
Couldn't you just build a binary?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 06, 2012, 04:03:05 pm
That's true, but it wouldn't be an OS file. I'll think about it.

And finally...

Update

New:
EDIT: I can't find any documentation on programming for the STATS.fr. If someone points me to some info I could add that in as well. Thanks!
Title: Re: ORG: online Z80 IDE and assembler
Post by: mdr1 on June 07, 2012, 11:31:36 am
TI-82 STATS ?
I think it's like TI-83...
Title: Re: ORG: online Z80 IDE and assembler
Post by: chickendude on June 07, 2012, 12:20:47 pm
I'm pretty sure it's just a French localised version of the 83.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Matrefeytontias on June 07, 2012, 01:01:56 pm
Yeah, that's it, the Ti-82 stats is the French version of the Ti-83, so it's exactly the same hex, even for the adresses.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 07, 2012, 02:18:52 pm
So all the ROM call addresses and such would be the same?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on June 08, 2012, 07:05:14 am
yep :) pretty much anything that works on the TI-83 will work on the TI-82 STATS. These updates are awesome !
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on June 08, 2012, 10:16:29 am
Nice work Deep! =)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 09, 2012, 04:59:25 pm
Thanks!

I'm going to work on the Load action soon. What I'm planning are a couple of generic templates (TI-83 Plus program, TI-83 program, TI-83 Plus app, and Axiom) as well as a file upload form.

But I don't know what sort of files it should accept. I'm not ready to write a disassembler yet, so no binaries for now. I'm thinking of having it both read and export Mimas programs. Anything else?

EDIT: Minor update—the title bar now shows the name of the current tab, and tabs whose content has been modified without saving have a * in front of their names.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 29, 2012, 02:40:17 am
Lots of updates today!

Update

New:Changed:Fixed:
For uploading files, you can either select individual source files (as many as you want) or even an entire ZIP archive—like the ones generated by Export.

Enjoy :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on June 29, 2012, 02:56:58 am
Glad this is still progressing. :) (Also how is the hosting quality so far? I wonder where it's hosted, cuz I remember it was down often on a previous host)
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on June 29, 2012, 08:48:46 am
Do you think ORG could disassemble asm prog ? :)

EDIT : It it possible to add multi languages interface (I see you have french skills ::)). ==> I'm willing to help you if you wish. ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 29, 2012, 11:10:44 am
Glad this is still progressing. :) (Also how is the hosting quality so far? I wonder where it's hosted, cuz I remember it was down often on a previous host)
It's on Juju's server. There are occasionally issues with the server running out of memory, but all in all it's much better than the free hosts I've used, and I'm grateful to him for providing the hosting :)
Do you think ORG could disassemble asm prog ? :)
That's something I've been considering too. I think I'll first work on some templates, and then when I have time I'll make a disassembler. It'll all go under the Open control.
EDIT : It it possible to add multi languages interface (I see you have french skills ::)). ==> I'm willing to help you if you wish. ;)
That's a great idea, and it'd be great if you could help me ;D
Title: Re: ORG: online Z80 IDE and assembler
Post by: blue_bear_94 on June 29, 2012, 12:07:25 pm
Can we use backslashes in place of new lines?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 29, 2012, 04:50:12 pm
Now you can. (In strings.)

And here are some more updates.

Update

New:Changed:Fixed:
I actually wanted to create a template for apps, but I couldn't figure out how I would make an app with ORG. (I think I might have broken something :P)
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on June 29, 2012, 05:26:28 pm
I post here translation :
Spoiler For Spoiler:
Source : "; Affiche la chaîne de caractère"

Title "Un IDE [asm] z80 en ligne"
[asm] as you want.

Button (in order) : "Enregistrer", "Ouvrir", "Compiler", "Exporter".

Save mouse on button : "Enregistrer le source en ligne"

Open menu : "Importer un fichier source"

Build menu : "Compiler en binaire", "Compiler en programme (8XP)", "Compiler en programme (83P)", "Compiler en application (8XK)", "Compiler en appvar (8XV)", "Compiler en hexadécimal", I don't understand the last O_o

Export menu : "Exporter dans un zip", "Coloriser la syntaxe en BBcode", "Pastebin"

The ORG project copyright © 2012 Deep Thought : "Projet ORG copyright © 2012 Deep Thought"
Interface powered by jQuery and CodeMirror : "Interface générée par jQuery et CodeMirror"
Apps signing by RabbitSign, licensed under the GPL : "Applications signées via RabbitSign, Sous license GPL"
See the help section for terms of use : "Voir l'aide pour les conditions d'utilisation"
Creating folder : "Création d'un dossier"
Storing file hello_z80 : "Sauvegarde du fichier hello_z80"
Files saved successfully : "Fichiers enregistrés avec succès"
Pass one : "Première étape"
Pass two : "Deuxième étape"
Program assembled with no errors (download) : "Programme assemblé sans erreur (Téléchargement)"

Help : "Aide"

Help :
- Title : "L'IDE asm ORG"
- What is ORG ?
"Qu'est ce que ORG ?
ORG est un IDE (http://fr.wikipedia.org/wiki/Environnement_de_d%C3%A9veloppement_int%C3%A9gr%C3%A9) en ligne pour les projets assembleur z80, plus spécialement pour les calculatrices TI-83/83+ et les ZX Spectrum. Ecrivez votre code source dans l'éditeur avec coloration syntaxique, compilez, et téléchargez votre programme fraîchement compilé directement à partir de la console (à droite de l'écran)."

The editor (NB : syntax-coloring = syntax-highlighting in french, I don't repeat it here) :
"L'éditeur
ORG dispose d'onglets permettant de gérer autant de fichiers sources que vous en avez besoin. Ces fichiers peuvent faire partie d'un ou plusieurs projet différents selon vos souhaits.

Vous pouvez renommer les fichiers en double cliquant sur l'onglet de ce dernier. Si vous avez plusieurs fichiers, une croix vous permettra de fermer les onglets plus facilement. L'onglet tout à droite vous permet d'ajouter un fichier source vide à votre projet. Notez bien que l'onglet tout à gauche, avec une ligne bleu sur le dessus, est le fichier qui va être lancé pour la compilation. Les autres fichiers peuvent être inclus lors de la compilation (voir ci-dessous les indications pour inclure des fichiers).

Tell me what you think about this first translation (et je ne suis pas contre avoir l'avis d'autres francophones qui passent par là). I don't have time to finish it during the week.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 29, 2012, 05:43:53 pm
Thank you for the translations! I'll put them in once I figure out a reasonable way to switch back and forth between languages.

EDIT: Done, at least for the controls. Click the round Fr/En button to switch between languages. I'll work on making the log output in French as well.
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on July 01, 2012, 05:59:45 pm
"The next three items build your source into a TI-83 Plus–series program, appvar, or app, respectively"
Hm.. I see TI-83 btw. ;)

Nice, now The control panel :
Spoiler For Spoiler:
Le panneau de contrôle
A droite de l'éditeur se trouve le panneau de contrôle ainsi que la console d'erreur. Vous pouvez sauvegarder vos fichiers en ligne (Enregistrer), charger un fichier ou un modèle (Ouvrir), assembler et compiler (Compiler), et télécharger vos fichiers (Exporter).

Le bouton "Ouvrir" permet de sélectionner un fichier sur votre ordinateur pour l'ouvrir avec ORG. Cela peut être un ou plusieurs fichiers source ou une archive ZIP contenant les fichiers sources (telle que celles générées via le bouton "Exporter"). Il y a aussi des modèles disponible via le menu déroulant en cliquant sur la flèche.

Par défaut le bouton "Compiler" compile votre programme dans un fichier binaire (.bin). Le menu déroulant via la flèche permet de choisir les options de compilation. Les questions options qui suivent permettent de compiler respectivement pour : un programme TI-83+/84, un programme TI-83/82.stats(.fr), une application ou une appvar. L'option suivante, "compiler en hexadécimal", permet de créer un fichier texte (.txt) contenant le code assembleur natif que vous pouvez réécrire sur votre calculatrice. Enfin, la dernière option permet de créer un fichier d'auto-chargement tape pour les émulateurs de ZX Spectrum. Voir si dessous pour plus d'informations sur les différents formats.

De même, vous pouvez trouver plus d'options d'exportation en cliquant sur le menu déroulant :
  • "Exporter dans un ZIP" (par défaut) créé une archive au format ZIP contenant tous les fichiers du projet que vous pouvez télécharger.
  • "Coloriser en BBCode" convertit votre code source en BBCode pour les forums via BBify'r (http://clrhome.org/bbify/).
  • "Pastebin" copie l'onglet sélectionné sur un lien pastebin (http://pastebin.com/).
Next tomorrow. ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 02, 2012, 12:32:01 am
Thanks so much! I haven't added the translations for the manual yet, but I'll do it soon.

Update

New:Fixed:
Title: Re: ORG: online Z80 IDE and assembler
Post by: alberthrocks on July 02, 2012, 10:27:12 am
Wow, this is amazing! O_O The interface has improved dramatically from before... you are definitely an expert with that :P
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on July 02, 2012, 06:43:09 pm
The log console :
Spoiler For Spoiler:
La console d'erreur :
La console d'erreur permet d'afficher les erreurs et autres informations transmis par le serveur après une action. Elle va également afficher les liens vers les fichiers compilés ou exportés.

Assembling Projects (Compilation des projets)
How does assembling work?
Spoiler For Spoiler:
Comment la compilation fonctionne ?
Lorsque vous appuyer sur le bouton "Compiler", tous les fichiers sont envoyés au serveur et sauvegardés temporairement (si vous êtes connecté sur votre profil, cela revient à appuyer sur le bouton "Sauvegarder"). Le premier fichier de la liste (celui qui est ouvert dans l'onglet de gauche) sera le premier à être analysé. Le nom de ce dernier fichier sera utilisé pour le programme compilé. Les autres fichiers seront analysés si le premier programme les a inclus avec la commande #include "nomdufichier.z80" (voir ci dessous).

Après quelques secondes, le script devrait avoir assemblé votre projet. En regardant la console d'erreur vous apercevrez un lien pour télécharger le programme compilé. Ce lien n'est valable que 24 heures.

Assembler directives :
Spoiler For Spoiler:
Directives assembleur
ORG est très complet, mais il est toujours en développement. La plupart des fonctionnalités que vous attendez de l'assembleur z80 (macros, instructions conditionnelles, inclusion de fichiers, etc.) sont déjà implémentées.
La syntaxe est similaire à Spasm's. Voici une liste complète des directives supportées avec un exemple de syntaxe :
#include "nomdufichier" ou #include <nomdufichier>
#define variable ou #define variable valeur ou #define macro(passed, arguments) lignes \ de \ code
#defcont \ plus de \ lignes \ de \ code
#if expression
#ifdef variable
#ifndef variable
#elseif expression
#elseifdef variable
#elseifndef variable
#else
#endif
.org pointeur
.echo expression
.end
.block octet
.fill octets ou .fill octets, valeur
.defs octets ou .ds octets ou .defs octets, valeur ou .ds octets, valeur
.db data ou .byte data ou .defb data ou .defm data ou .dm data
.dw data ou .word data ou .defw data

Include files :
Spoiler For Spoiler:
Ajouter des fichiers
Comme toute commande de préprocesseur, #include peut être utilisé à partir de n'importe quel fichier source. Cependant vous être limité qu'à deux inclusions imbriqués, le troisième fichier inclus ne pourra pas utiliser la directive #include.

Vous êtes autorisé d'ajouter tous les fichiers que vous avez créé, ainsi que tous les modèles universelles, soit les fichiers :
ti83plus.inc (la principale bibliothèque d'assimilation pour les séries TI-83+, incluant les assimilations non documentées)
mirage.inc (inclus la bibliothèque Ion et Mirage OS)
dcs.inc (inclus la bibliothèque ion, Mirage OS et Doors CS)
app.inc (les macros pour compiler en application ; voir ci dessous)
ti83.inc (la principale bibliothèque pour la série TI-83)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 02, 2012, 08:07:26 pm
Wow, this is amazing! O_O The interface has improved dramatically from before... you are definitely an expert with that :P
Thanks :)

Update

New:Fixed:
Also kindermoumoute, thanks again for working on these translations—I realize they're very long and pretty technical. Here's a list of all the possible errors generated by ORG:
Error parsing line (line "{LINE}" in {FILE})
Unknown instruction or directive $words[1] (line "{LINE}" in {FILE})
Too many files deep (line "{LINE}" in {FILE})
Missing or invalid arguments for $words[1] (line "{LINE}" in {FILE})
Equate or label $words[1] has already been defined (line "{LINE}" in {FILE})
Included filename $byte is invalid (line "{LINE}" in {FILE})
Either missing or extra #endif (line "{LINE}" in {FILE})
Nonexistent file {FILE}
Unmatched parenthesis (line "{LINE}" in {FILE})
Target of $word[1] out of range (line "{LINE}" in {FILE})
Reference to undefined equate $word (line "{LINE}" in {FILE})
Math syntax error (line "{LINE}" in {FILE})
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on July 02, 2012, 08:35:28 pm
Respectively :
Erreur de compilation (ligne "{LINE}" dans {FILE})
L'instruction ou la directive $words[1] est inconnue (ligne "{LINE}" dans {FILE})
Trop de fichiers inclus imbriqués (ligne "{LINE}" dans {FILE})
Argument manquant ou invalide pour $words[1] (ligne "{LINE}" dans {FILE})
Mauvais label pour assimilation, $words[1] est déjà défini (ligne "{LINE}" dans {FILE})
Le fichier inclus $byte est invalide (ligne "{LINE}" dans {FILE})
#endif manquant ou en surnombre (ligne "{LINE}" dans {FILE})
Fichier manquant {FILE}
Parenthèse manquante (ligne "{LINE}" dans {FILE})
Cible $word[1] non trouvée (ligne "{LINE}" dans {FILE})
Assimilation de $word non définie (ligne "{LINE}" dans {FILE})
Erreur de syntaxe mathématique (ligne "{LINE}" dans {FILE})

PS : Unmatched parenthesis = missing parenthesis ?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 03, 2012, 02:01:57 am
Quote from: kindermoumoute
PS : Unmatched parenthesis = missing parenthesis ?
Either missing or extra (like the line with #endif).
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on July 03, 2012, 11:51:55 am
Wow, thisis really awesome ! This is a very impressive job!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Matrefeytontias on July 03, 2012, 12:02:31 pm
Erm ... I think that :

Reference to undefined equate $word (line "{LINE}" in {FILE})

would be traduced in :

Symbole $word non défini (ligne "{LINE}" dans {FILE})

EDIT : Unmatched parenthesis (line "{LINE}" in {FILE}) -> Mauvais nombre de parenthèses (ligne "{LINE}" dans {FILE})

Target of $word[1] out of range (line "{LINE}" in {FILE}) -> Cible de $word[1] hors limites (ligne "{LINE}" dans {FILE})

Equate or label $words[1] has already been defined (line "{LINE}" in {FILE}) -> Symbole ou label $words[1] déjà défini (ligne "{LINE}" dans {FILE})

:)
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on July 03, 2012, 05:39:07 pm
@Matrefeytontias : à partir de demain je serais complètement déconnecté d'internet, du moins pas assez pour traduire le reste de ORG. Est ce que tu peux prendre le relais (surtout que tu connais l'asm). ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Matrefeytontias on July 04, 2012, 05:31:22 am
@kinder pas de problème, j'assure ;)

@DeepThought since kinder won't be able to carry on the traducing, I'll replace him :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 05, 2012, 11:19:32 pm
@DeepThought since kinder won't be able to carry on the traducing, I'll replace him :)
Thank you too :) I'll put in kindermoumoute's translations so far when I get the chance.

Update

New:Fixed:
That's right—if you're using a modern browser (and no, IFE9 does not count), you can drag-and-drop any number of source files from your computer directly onto the editor!
Title: Re: ORG: online Z80 IDE and assembler
Post by: blue_bear_94 on July 06, 2012, 09:35:12 am
Are you planning on adding additional languages for the interface?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 18, 2012, 01:15:41 pm
Probably not, unless there's a lot of demand for it. (The way I have it set up handles two languages nicely.)

I've added kindermoumoute and Matrefeytontias's translation for the error messages, and I'm thinking about the best way to toggle the documentation language.

And here are some more strings I need translated if either of you have the time, from the status messages shown when an action starts:
Creating ZipArchive
Adding file {FILE}
Zip file created successfully (download)
Please log in or register to save online
Creating folder
Storing file {FILE}
Files saved successfully
Pass one
Pass two
Program assembled with no errors/n errors (download)
Penguins unite
Title: Re: ORG: online Z80 IDE and assembler
Post by: NeoCrisis 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
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster 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 :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster 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 (http://ourl.ca/8186/150864/), 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:Changed:Fixed:
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 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?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 26, 2012, 01:22:56 pm
Not yet, but I know I should add a way to toggle it.
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute on July 26, 2012, 06:42:48 pm
Now I have time to finish translation. :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on August 12, 2012, 01:43:51 am
Update

Some major bug fixes.

New:Fixed:
EDIT: kindermoumoute, I just translated "JavaScript popup" as "Popup avec JavaScript"—got a more elegant suggestion? :P
Title: Re: ORG: online Z80 IDE and assembler
Post by: kindermoumoute 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)". ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on August 12, 2012, 11:31:57 am
That's probably a good idea for English too :P Didn't think of that.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga 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)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 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!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster 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.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Matrefeytontias 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 :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster 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.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 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!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on September 09, 2012, 03:04:01 pm
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!
Or you could paste it from your home computer into ORG and save it and eliminate the need for the flash drive ;D
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on September 09, 2012, 04:16:27 pm
The internet doesn't work yet at home. We are in an apartment that is supposed to have wireless, but the landlords have had issues. We are waiting to be all wired up, now XD
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on September 09, 2012, 04:18:48 pm
That sucks. A home without Internet :(
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 04, 2012, 03:56:04 pm
Some suggestions/bugs:
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on October 04, 2012, 06:16:23 pm
I copied and pasted my program code to ORG and I got a bazillion errors like this:

Quote
"Reference to undefined equate HL (line "          ld d,(hl) " in Grammer_z80)"

Any ideas why? Also, another feature that might be good is to return the output size of an app or program, that way we can figure out how much room we have left  ;D
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 05, 2012, 01:58:53 am
Some suggestions/bugs:
  • With default zoom, the line numbers, the code and the cursor aren't aligned properly (In Chrome and Opera). Changing the zoom will fix it, but has to be set back on other sites, so please fix this:
    (http://img.removedfromgame.com/imgs/0-ORG%20linenumbers.jpg)
Seems to be a new WebKit quirk (I've noticed several of those lately). The editor library I'm using is several versions out of date though. Maybe they fixed it there—I'll try updating sometime.
  • The undocumented instructions are in the drop down menus, but give errors when compiling. (Make them usable)
Good point. I'll fix that soon.
  • What about making the highlight color a bit darker, you can barely see it when viewing the screen from a slight different angle. Or a setup like most IDEs have with all the font properties and color settings ^-^
Maybe. I need to add a decent preferences system anyway.
  • How about adding the number of cycles each line takes and a calculator to multiply blocks of code with how often the part runs and giving a total sum. That would be awesome to improve and optimize stuff.
Maybe. I would have to change how the programs are parsed in order for that to work dynamically. I have all the data for size and cycles, though.
I copied and pasted my program code to ORG and I got a bazillion errors like this:
Quote
"Reference to undefined equate HL (line "          ld d,(hl) " in Grammer_z80)"
Fixed.
Any ideas why?
\ for newlines wasn't working properly (I didn't strip out all the bad whitespace).
Also, another feature that might be good is to return the output size of an app or program, that way we can figure out how much room we have left  ;D
It's been planned for a while, and should be fairly simple to add. I just keep forgetting about it :/

Thanks for all the suggestions and comments everyone! It really helps.
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 05, 2012, 08:22:30 am
Maybe. I would have to change how the programs are parsed in order for that to work dynamically. I have all the data for size and cycles, though.

It doesn't need to be dynamically. Maybe just a button to show/refresh the cycle calculator and one to hide it. When you click the show button, another column will appear next to the text field for the code (parallel scrolling) and you can select the loops to multiply. At the bottom the total sum is displayed.

EDIT something like this:
(http://img.removedfromgame.com/imgs/IDE.bmp)
I used the average number of cycles.
Title: Re: ORG: online Z80 IDE and assembler
Post by: shmibs on October 05, 2012, 10:06:50 am
it seems like it would be simpler and more intuitive to have the calculations be in the same column as the code is already. the cycle count could just be displayed to the right of the line number and the total calculations over on the right side where all the rest of the system messages are.
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 05, 2012, 10:14:13 am
it seems like it would be simpler and more intuitive to have the calculations be in the same column as the code is already. the cycle count could just be displayed to the right of the line number and the total calculations over on the right side where all the rest of the system messages are.

Yeah, also great idea.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 06, 2012, 01:25:58 am
Update

Output now includes the size of the program/app in bytes.

I updated CodeMirror (the editor library). No luck fixing the cursor bug :/ I'll look more closely at it later.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on October 06, 2012, 08:03:28 am
It seems that there is still a bug with creating apps?
Quote
Pass one
Pass two
Total size: 16113 bytes
Warning: file_get_contents(/home/deepthought/public_html/asm/lQbmwR.8xk): failed to open stream: No such file or directory in /home/deepthought/public_html/asm/index.php on line 994 Warning: unlink(/home/deepthought/public_html/asm/lQbmwR.8xk): No such file or directory in /home/deepthought/public_html/asm/index.php on line 996
Program assembled with no errors (download)
The total size looks right, but when I download it, it is a zero byte file.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 06, 2012, 01:58:26 pm
It seems that there is still a bug with creating apps?
Quote
Pass one
Pass two
Total size: 16113 bytes
Warning: file_get_contents(/home/deepthought/public_html/asm/lQbmwR.8xk): failed to open stream: No such file or directory in /home/deepthought/public_html/asm/index.php on line 994 Warning: unlink(/home/deepthought/public_html/asm/lQbmwR.8xk): No such file or directory in /home/deepthought/public_html/asm/index.php on line 996
Program assembled with no errors (download)
The total size looks right, but when I download it, it is a zero byte file.
Fixed. It should now work as long as your app structure is correct, and will give you a warning and a binary dump otherwise.
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 06, 2012, 02:09:10 pm
What about the undocumented instructions?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 06, 2012, 02:10:16 pm
What about the undocumented instructions?
Which ones specifically? SLL, SLIA and a few others were all there.

EDIT: Oh, I see, it's the IXH (and related) stuff. I'll work on that when I get back to it.
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 06, 2012, 02:17:27 pm
Yeah, for example is
Code: [Select]
ld ixh,d
ld ixl,e
6 cycles faster than
Code: [Select]
push de
pop ix

Edit: with hl it doesn't work
:)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 06, 2012, 02:23:53 pm
Neither of those instructions exist, even as undocumented ones.

The IX and IY instructions are basically HL instructions with a $DD or $FD in front that causes the next instruction to operate on an index register instead of HL, which means you can never use an index register and HL in the same operation.

On the other hand, ORG currently lacks all the IXH/IXL/IYH/IYL instructions.
Title: Re: ORG: online Z80 IDE and assembler
Post by: MGOS on October 06, 2012, 02:38:29 pm
Oh, I forgot about that, say it was DE instead.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 06, 2012, 09:58:21 pm
Fixed.

Turns out HX/HY/LX/LY worked, but I forgot to throw in I** as alternatives :P
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on October 12, 2012, 11:16:47 pm
  • With default zoom, the line numbers, the code and the cursor aren't aligned properly (In Chrome and Opera). Changing the zoom will fix it, but has to be set back on other sites, so please fix this:
    (http://img.removedfromgame.com/imgs/0-ORG%20linenumbers.jpg)
Seems it magically fixed itself. I have no idea what happened O.O

Haven't tested in Opera though.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on October 13, 2012, 09:11:01 am
It might have been a bug in Chrome.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on December 03, 2012, 04:11:53 pm
The bug came back, and I realized that it's because the editor lib I'm using hates it when I change the line height, so I reset it to one.

It doesn't look as good, but at least it's not buggy.

Xeda reported another bug where the editor keeps scrolling to the top in Chrome, but I can't reproduce it—has anyone else noticed that?
Title: Re: ORG: online Z80 IDE and assembler
Post by: epic7 on December 03, 2012, 04:13:22 pm
Well, the alignment of the cursor hasn't been working well for me.
I haven't noticed scrolling to the top, though
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on December 03, 2012, 04:57:19 pm
It occurs when I have a long piece of code (so it all doesn't fit on the screen). I can use the arrow keys to move the cursor, but if I try to click and drag the scrolly bar (for the code, not the page) or if I click the arrows to move it down, or anything like that, it scrolls back up, automatically. I have the latest version of Chrome, by the way. I reset a few things (like the cache, via instructions from Deep Thought), but that still didn't help.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on December 03, 2012, 05:29:56 pm
Well, the alignment of the cursor hasn't been working well for me.
Even after the update?
Title: Re: ORG: online Z80 IDE and assembler
Post by: epic7 on December 03, 2012, 05:46:52 pm
That was happening as of last week
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on December 03, 2012, 09:55:54 pm
I just fixed it earlier today:
It doesn't look as good, but at least it's not buggy.

EDIT: There seems to be another bug where the asterisk next to the file name (which shows whether a file is saved) gets toggled on and off repeatedly, but I can't figure out when it happens because it doesn't happen all the time. If you notice that bug, please tell me what happened that triggered it :)

EDIT2: Fixed that bug.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on December 04, 2012, 09:04:24 am
Wooh, vijfhoek noticed earlier that the bug I was reporting happened when the zoom was not at default. I remember when the cursor bug was introduced, zooming made the cursor bug go away. I did not even realise that I was still zoomed out, but zooming back in fixed the scrolly bug.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on December 04, 2012, 09:49:22 am
Glad it works now :) Though I do wish it would allow for zooming in.

EDIT: Zooming in does work for me.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 12, 2013, 05:31:26 pm
This code seems to be throwing ORG off:
Code: [Select]
     xor a \ ld b,a \ sbc a,ixl \ ld ixl,a
     ld a,b \ sbc a,ixh \ ld ixh,a
     ld a,b \ sbc a,l \ ld l,a
     ld a,b \ sbc a,h \ ld h,a
     ld a,b \ sbc a,e \ ld e,a
     ld a,b \ sbc a,d \ ld d,a
Specifically it is the sbc a,l and sbc a,h that it is seeing as an unrecognised instruction. is it because of how you handled index registers? The opcodes for those are 8Dh and 8Ch, respectively.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 12, 2013, 09:11:21 pm
Specifically it is the sbc a,l and sbc a,h that it is seeing as an unrecognised instruction. is it because of how you handled index registers? The opcodes for those are 8Dh and 8Ch, respectively.
Nope, I accidentally them completely for some reason :P

I should really organize the opcode table in a reasonable format. Right now they're in a roughly random order, and as a result the two instructions you mentioned (and possibly others) were left out. (By the way, they should be 9Dh and 9Ch.)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 12, 2013, 09:30:34 pm
Oh, psh, thanks XD I gave the instructions for adc a,* X.X
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on February 13, 2013, 11:27:26 pm
After ClrHome's server move, there was a bug causing ORG to handle strings the wrong way, which meant that any program using include files like ti83plus.inc or with a string (basically every program) wouldn't assemble correctly. Turns out the free host I'm on has an old version of PHP with a bug that actually got fixed sometime in the release cycle.

Anyway, that's been dealt with, so ORG should be working fine now :)

(Thanks to Xeda for reporting that bug. A long time ago, sorry...)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on February 14, 2013, 06:21:31 am
That's good news! It wasn't too big of a deal for me since I don't use many equates, but I know how useful include files are.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on March 30, 2013, 01:41:30 am
Couple of updates.

Controls moved to the bottom. Doesn't sound that big, but it allows you to keep building your programs without having to scroll up past the logs every time. (Was annoying for me.)

More assembler bug fixes. I somehow had code dividing by zero in there O.o

Another facelift. Hope it looks better. The new background was actually supposed to look like recycled paper, but ... didn't turn out that way.

Fixed example code (templates). Thanks to Kerm for pointing this out.

As always, please throw me those bug reports!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on March 31, 2013, 11:26:40 am
I am not sure if this is a problem that was introduced or something else, but when I compile the code and click 'download', I am redirected to http://clrhome.org/lib/404.php

The first time I did this, I lost my code (but I remembered it all, so I recovered it quickly).

EDIT: Actually, it seems to be doing the same for quite a few in-site links.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Keoni29 on March 31, 2013, 11:29:36 am
Why does it mess with my capslock?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on March 31, 2013, 11:45:58 am
I am not sure if this is a problem that was introduced or something else, but when I compile the code and click 'download', I am redirected to http://clrhome.org/lib/404.php
I temporarily moved the site to a different server. Should be back now.
Why does it mess with my capslock?
I didn't know that was possible O.o What exactly is happening?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on June 29, 2013, 06:58:49 pm
Major update: App support! ORG now has its own signer so it can now generate valid apps.

After this the assembler is going to be rewritten from scratch, which is going to definitely going to take a while. But if you have any suggestions or requests, now's a great time to make them—I can bake them straight into the new ORG!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Sorunome on June 29, 2013, 07:00:34 pm
Wow, that is pretty cool!
Now, if I start doing assembly, I know which IDE i will use for sure :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on June 30, 2013, 12:19:01 am
Very nice Deep Thought! :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on July 04, 2013, 01:31:40 am
Good to hear about APP support :)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 13, 2013, 09:00:15 pm
More updates!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 22, 2013, 07:20:08 pm
Finally fixed the scroll wheel bug. Sorry it took that long, especially since I'd made the same fix to IES months ago x.x
Title: Re: ORG: online Z80 IDE and assembler
Post by: mdr1 on July 24, 2013, 05:07:53 pm
I used the online editor a bit, and it is really good. Bien joué !
I have a suggestion: why not do an off-line version so that we don't need to connect to compile asm?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 24, 2013, 05:19:23 pm
I used the online editor a bit, and it is really good. Bien joué !
I have a suggestion: why not do an off-line version so that we don't need to connect to compile asm?
The actual compiler is PHP, not JavaScript, so it requires a webserver with PHP installed to run.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on July 24, 2013, 08:34:17 pm
Isn't there a program to run PHP code (or install an Apache server) directly from your computer?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on July 24, 2013, 11:13:38 pm
Isn't there a program to run PHP code (or install an Apache server) directly from your computer?
That would be the PHP interpreter, which is basically used on web servers.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Sorunome on July 25, 2013, 07:13:23 am
also known as php-cgi

but yeah, you'd have to install php then......../me wants a php compiler :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: ganpom on January 13, 2014, 07:36:32 pm
The Ide Appears to be down because it has reached cpu usage of the server.
http://error404.000webhost.com/cpu-limit-reached.html
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 13, 2014, 10:21:35 pm
Should be back now.
Title: Re: ORG: online Z80 IDE and assembler
Post by: ganpom on January 13, 2014, 10:26:40 pm
Thanks!
Title: Re: ORG: online Z80 IDE and assembler
Post by: Eeems on January 13, 2014, 11:49:17 pm
Down again.
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 14, 2014, 01:41:10 pm
And he said 000webhost was good :P (but again it could be an ORG ASM IDE bug or coding mishap)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Keoni29 on January 14, 2014, 01:57:32 pm
I totally read ORGASM IDE bug x.x
Title: Re: ORG: online Z80 IDE and assembler
Post by: Sorunome on January 14, 2014, 02:27:35 pm
I totally read ORGASM IDE bug x.x
oh you :P



Anyways, maybe you should switch to some payed hosting :P
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on January 14, 2014, 05:49:25 pm
@Keoni: Oh my, O.O I see how you could make that mistake... XD
Title: Re: ORG: online Z80 IDE and assembler
Post by: chickendude on January 14, 2014, 07:28:51 pm
I've been playing around with Pixelscape the last couple hours, i hope all my sprites/tilemaps aren't lost  :-\
Title: Re: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 14, 2014, 07:35:10 pm
I bet they're fine. Just 000webhost being dumb again.
Title: Re: ORG: online Z80 IDE and assembler
Post by: chickendude on January 14, 2014, 07:44:23 pm
I just copied/pasted the map and all the sprites into a text file just to be sure :D
Title: Re: ORG: online Z80 IDE and assembler
Post by: ganpom on January 15, 2014, 07:31:42 pm
It keeps going down =[
Title: Re: ORG: online Z80 IDE and assembler
Post by: Lunar Fire on January 15, 2014, 09:01:26 pm
The free 000webhost limits the number of requests you can receive before temporarily blocking your web site. In other words, if you get too much traffic they temporarily disable you.

I don't know if it's a tactic to prioritize paying customers, or just one to make you switch to paid hosting, but either way you can't expect a free web host to give you that much bandwith, disk space and cpu usage for free.

Deep Thought, you might have to paid hosting, or use a second web host to cool off a bit of the traffic from 000. Or leave it as is, it's your choice after all.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 17, 2014, 05:56:22 pm
I will be purchasing a paid hosting plan very soon, just need a few days to get things set up. Hoping to have everything running smoothly by next week :)

By the way, I'm taking donations for ClrHome and its apps:

(https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ti%2e42%2eplus%40gmail%2ecom&lc=US&item_name=ClrHome%20Donations&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest)

Currently it's used for hosting and domain costs, but I'm planning an event in the future as well ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 17, 2014, 11:14:09 pm
I'm planning an event in the future as well ;)

Financing a Wacky Fun Random Numbar Generator v2.01337 Online Edition LAN party? O.O
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 26, 2014, 07:38:55 am
ClrHome got deactivated by 000webhost for excessive CPU usage, will be back as soon as they reactivate and let me download my data.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Xeda112358 on January 26, 2014, 08:21:08 am
Is that due to things like me using ORG a few dozen times in a short period of time to generate and download files?
Title: Re: ORG: online Z80 IDE and assembler
Post by: TIfanx1999 on January 26, 2014, 09:06:50 am
ClrHome got deactivated by 000webhost for excessive CPU usage, will be back as soon as they reactivate and let me download my data.

Hmm... I wonder what was causing all the CPU usage? ??? You said you're switching hosting shortly though anyways right?
Title: Re: ORG: online Z80 IDE and assembler
Post by: Sorunome on January 26, 2014, 09:59:36 am
Meh, you should really switch to some paid hosting, you'll get better features ;)
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 26, 2014, 04:32:00 pm
I just ordered a month of shared hosting—the site will be back as soon as they unsuspend my free account.
Title: Re: ORG: online Z80 IDE and assembler
Post by: Deep Toaster on January 27, 2014, 03:43:24 pm
It's back!

Server also seems to be significantly faster. ORG (which is normally a pretty heavy load) took about half a second O.O
Title: Re: ORG: online Z80 IDE and assembler
Post by: DJ Omnimaga on January 28, 2014, 12:28:41 am
Nice to hear, but watch out, since even if Omni had 1and1 paid shared hosting, their unlimited everything plans were not really unlimited. When I started using too many resources they told me I might need to switch to a VPS or dedicated server soon, so if they feel you use too many resources they might still suspend you even with a paid plan.