Author Topic: asmdream is waking up...  (Read 22692 times)

0 Members and 9 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: asmdream is waking up...
« Reply #60 on: June 20, 2011, 02:39:25 pm »
The OS has error messages in the form of B_JUMP routines. You call bjump on them, handing control back to the OS, and after the user selects Quit or Goto you're out of the program. I wouldn't recommend using it though -- might even be simpler to just write your own error message. ERR:SYNTAX isn't really informative anyway :P




Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #61 on: June 20, 2011, 03:46:54 pm »
Thx for reply =]

Already knew about the b_jump routines.
Qwerty.55 already adviced me to use the JError one.
The problem is, that it seems to be just an error displayer and nothing else.
What i need to do is, after exiting, forcing the system to point to a specific token in a specific prgm.
I know it's possible, since it's one of DCS features.

*****

Progress has moved to 75%.
It's official, address labels are now fully interpreted by the algo =]
I'm on my way to complete the macro features and i'm sure it's gonna be quite a pain, since i have to deal with parameters.
Once this part completed, the rest will be a cake walk...
« Last Edit: June 20, 2011, 04:02:57 pm by the_mad_joob »

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: asmdream is waking up...
« Reply #62 on: June 20, 2011, 06:15:07 pm »
Thx for reply =]

Already knew about the b_jump routines.
Qwerty.55 already adviced me to use the JError one.
The problem is, that it seems to be just an error displayer and nothing else.
What i need to do is, after exiting, forcing the system to point to a specific token in a specific prgm.
I know it's possible, since it's one of DCS features.

Yeah, the JError routines basically just display the error messages. If you want it to jump to a specific location in a program, you need to find that location yourself, open up the edit buffer, load the program in, and set up the edit pointers to point to that location.
« Last Edit: June 20, 2011, 06:15:14 pm by Deep Thought »




Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #63 on: June 21, 2011, 03:34:55 am »
Just what i needed to know.
Informations are now copied inside my brain =]
I'll try to manage this using the edit buffer.
I knew it was a good choice when i decided to keep, a long time ago, that undocumented EDITBUF.PDF.

Thx again =]

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #64 on: June 22, 2011, 07:20:25 pm »
progress : 80% (6357 bytes)

left to do before initial release :
- variables initialisation
- automatic differentiation of executable or read-only data
- main loop (compatible with pass 1 & 2)
- final size check before writing
- goto on errors handling (automatic unarchiving if enough free ram to do so)
- z80 include prgm (progress : 95%)
- 8X+ include prgms (progress : 0%)
- code testing & optimizing
- readme file
« Last Edit: June 24, 2011, 12:41:17 pm by the_mad_joob »

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #65 on: June 29, 2011, 09:53:52 am »
progress : 85% (code : about 8K bytes)

left to do before initial release :
- main loop > 99% > currently practicing bugs genocide
- final size check before writing > 0%
- goto on errors handling > 0%
- z80 ops compatible include prgm > 99% > last ascii to token conversions
- 8X+ equates compatible include prgm(s) > 0%
- overall testing > 0%
- optimizing if necessary > 0%
- readme file > 0%

Screenies soon to come =]
« Last Edit: June 29, 2011, 09:54:43 am by the_mad_joob »

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #66 on: July 01, 2011, 09:21:04 am »
Prgms are assembled correctly and all the features seem to work as intended.
I'm facing one problem now : the whole process becomes really slow when huge prgms are included in the source.
Looks like the optimization part is gonna be more than just optimization =[

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #67 on: July 06, 2011, 10:51:39 am »
A quick screeny, just to show that a simple program can be generated successfully.
As you can see, the process is quite slow for now.
That is due to the huge size of the prgm which includes z80 ops (around 16K).
I'm actually working on it and hope i'll find a way to speed it up.

There u go :

« Last Edit: July 06, 2011, 10:51:58 am by the_mad_joob »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: asmdream is waking up...
« Reply #68 on: July 13, 2011, 09:24:32 am »
Hey, this is pretty cool. I actually like the fact that it uses the built in program editor. Keep up the good work. ^^

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: asmdream is waking up...
« Reply #69 on: July 13, 2011, 09:41:13 am »
Wow, this is awesome.  Nice work, the_mad_joob. :D

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: asmdream is waking up...
« Reply #70 on: July 13, 2011, 09:42:22 am »
This is amazing ! This is one reason why I gave up ASM: not on-calc.
With ASMdream, I wouldn't have given up (maybe)!
« Last Edit: July 13, 2011, 09:43:24 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: asmdream is waking up...
« Reply #71 on: July 13, 2011, 09:52:46 am »
This is amazing ! This is one reason why I gave up ASM: not on-calc.
With ASMdream, I wouldn't have given up (maybe)!
* ZTrumpet looks at Mimas...
http://ourl.ca/7269

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: asmdream is waking up...
« Reply #72 on: July 13, 2011, 10:16:43 am »
* ZTrumpet looks at Mimas...
http://ourl.ca/7269
I didn't know about it, but it is too late, now, :-\ I've given up.
Thanks anyway.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #73 on: July 13, 2011, 05:52:09 pm »
Hey guys...

It's good to have some support, since i haven't seen some for a while, so thx again =]

What i'm doing these days :
- prgm to app converting (1 page), to free up as much ram as possible
- optimizing in favor of speed
- making it compatible with all 83+|83+SE|84+|84+SE devices

Also, looks like i found a way to increase speed by internally indexing the reading of system includes.
Add to that automatic switching to 15mhz and it should be fast enough.

Offline the_mad_joob

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 346
  • Rating: +47/-0
    • View Profile
Re: asmdream is waking up...
« Reply #74 on: July 29, 2011, 08:05:21 am »
Some little news for those interested in this not-so-dead project :

The conversion of my source from prgm to app is going good.
However, it requires a lot more rigour, since i have to handle memory swapping in bank b (the price to pay to be able to read archived prgms).

Also, decided to abandon the idea of treating z80 ops as macros (which was working, but definitely too slowly).
Instead, they're gonna be hard-coded, following an horrible (but lot more efficient) algorithm i'm about to give birth.
Anyway, the way i'm making it, the whole thing will fit in a 1-page app.

While i was dealing with z80 ops, i noticed some errors in the well-known undocumented z80 table provided by joe wingbermuehle (tasm compatible).
I'm posting the thing here, since i thought creating a dedicated topic was, let's say, too much :

replace :
OUT   F,(C)   71ED   2   NOP   1
by :
OUT   (C),F   71ED   2   NOP   1

replace :
DEC   IYH   24FD   2   NOP   1
by :
DEC   IYH   25FD   2   NOP   1
This one is especially dedicated to those who never found the origin of the bug in their source =]

Nothing thick to show for now, except maybe my new splash :

« Last Edit: July 29, 2011, 08:54:21 am by the_mad_joob »