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

0 Members and 2 Guests are viewing this topic.

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 #105 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
« Last Edit: September 09, 2012, 03:04:29 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 #106 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

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 #107 on: September 09, 2012, 04:18:48 pm »
That sucks. A home without Internet :(




Offline MGOS

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +95/-0
    • View Profile
Re: ORG: online Z80 IDE and assembler
« Reply #108 on: October 04, 2012, 03:56:04 pm »
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:
  • The undocumented instructions are in the drop down menus, but give errors when compiling. (Make them usable)
  • 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 ^-^
  • 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.
« Last Edit: October 04, 2012, 05:30:48 pm by MGOS »

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 #109 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

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 #110 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:
    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.
    « Last Edit: October 05, 2012, 02:34:42 am by Deep Thought »




    Offline MGOS

    • LV6 Super Member (Next: 500)
    • ******
    • Posts: 336
    • Rating: +95/-0
      • View Profile
    Re: ORG: online Z80 IDE and assembler
    « Reply #111 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:

    I used the average number of cycles.
    « Last Edit: October 05, 2012, 08:45:56 am by MGOS »

    Offline shmibs

    • しらす丼
    • Administrator
    • LV11 Super Veteran (Next: 3000)
    • ***********
    • Posts: 2132
    • Rating: +281/-3
    • try to be ok, ok?
      • View Profile
      • shmibbles.me
    Re: ORG: online Z80 IDE and assembler
    « Reply #112 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.
    « Last Edit: October 05, 2012, 10:09:05 am by shmibs »

    Offline MGOS

    • LV6 Super Member (Next: 500)
    • ******
    • Posts: 336
    • Rating: +95/-0
      • View Profile
    Re: ORG: online Z80 IDE and assembler
    « Reply #113 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.

    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 #114 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.
    « Last Edit: October 06, 2012, 01:26:03 am 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 #115 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.

    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 #116 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.




    Offline MGOS

    • LV6 Super Member (Next: 500)
    • ******
    • Posts: 336
    • Rating: +95/-0
      • View Profile
    Re: ORG: online Z80 IDE and assembler
    « Reply #117 on: October 06, 2012, 02:09:10 pm »
    What about the undocumented instructions?

    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 #118 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.
    « Last Edit: October 06, 2012, 02:11:43 pm by Deep Thought »




    Offline MGOS

    • LV6 Super Member (Next: 500)
    • ******
    • Posts: 336
    • Rating: +95/-0
      • View Profile
    Re: ORG: online Z80 IDE and assembler
    « Reply #119 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
    :)
    « Last Edit: October 06, 2012, 02:40:02 pm by MGOS »