Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - the_mad_joob

Pages: 1 ... 14 15 [16] 17 18 ... 24
226
TI Z80 / Re: asmdream is waking up...
« on: December 24, 2011, 06:57:02 am »
Added a symbol for the current program counter value, since it was quite easy to implement (couldn't resist =]).

Main testing/debugging phase almost over.
The ultimate test will be a try at assembling a "complex" program, fat enough.

After that, i have to build a decent readme.
I can tell that part annoys me, A LOT.

227
TI Z80 / Re: asmdream is waking up...
« on: December 21, 2011, 03:05:11 pm »
Nope.
The only areas where i store data are : progtoedit, editcursor & edittail.

Also, the following bcalls were needed :
_newcontext
_dispeow
_cursorright
_mon

228
ASM / question of the day
« on: December 21, 2011, 07:15:01 am »
I have 2 asm programs :

prgmTEST1
bin size : 8192
oncalc size (bin+vat) : 8206
data : $BB,$6D,$C9,$FF*8189

prgmTEST2
bin size : 8193
oncalc size (bin+vat) : 8207
data : $BB,$6D,$C9,$FF*8190

The first one will run but not the second one (ERR:INVALID).

This is os 2.43 on real hardware (anyway, same behaviour on wabbit).
Also, i have about 16K of free ram before execution.

I thought the maximum was 8811 bytes.
Wtf ?

EDIT :
I searched on the web and found that 8192 is the maximum for nostub programs.
I didn't know that but now i do =]

229
TI Z80 / Re: the_mad_joob's ti8X+ include file
« on: December 21, 2011, 02:32:41 am »
*Update*

Addition :
   small character font equates (EDh-FFh)

Bugfix :
   PStat value is now calculated correctly by tasm.

Also, i've enhanced the standard application header macro to support multipage.
New syntax is :
   app_header(application_name,number_of_pages)

Have fun =]

230
TI Z80 / Re: asmdream is waking up...
« on: December 20, 2011, 03:10:59 pm »
Goto feature coded successfully :



Time has come for nasty bugs seeking.
After that, final optimization.
Beta imminent =]

231
TI Z80 / Re: asmdream is waking up...
« on: December 19, 2011, 10:41:45 pm »
Ah, you are looking for EOLs and whatnot? CPIR is definitely faster. To seek the end of a line all you would need to do is ld a,3Fh \ cpir. I am currently rewriting my search routine for a speed boost and to shed some size, too. You can similarly look for the starting byte of your search string and then check the bytes following. (That is what my rewrite looks like, anyway)

The only shitty thing is that once the matching byte has been found using CPIR, you also have to check the previous byte to be sure it's not part of a word token.
For example, $3F can also be the second half of a TVARSYS, T2BYTETOK, or T2BYTETOK2 token.
That additionnal check adds a little bit of time & space but is the way to go if you wanna ensure maximum compatibility (and avoid bad surprises).

An alternative method is to entirely forbid word tokens :
For each prgm that you intend to read, you first scan it entirely for word toks, and then return some kind of compatibility error if one was found.
Of course, that must be done only once for each prgm.
After that, you're free to use CPIR alone to find your shit.

Also, I now want to see if it would be easier to load pages into port 7... I just load the code into RAM (like TempSwapArea) if it needs to swap out the flashpage in port 6 and then swap back.

This is something i was planning for, when asmdream used to be a program.
Could allow faster comparison of data located on 2 different flash pages (one on port 6, the other on port 7).
But it's quite a complicated method, since you then need to use port 5 for accessing ram.
In other words, you only have 1 bank left to : run your code, access os ram locations and use the hardware stack.
I guess that's not worth it, since the flash swapping you wanted to avoid has now turned into a horrible ram swapping...

*****

News about the project :

Did some little optimization these days.
I finally found a way (thx to Quigibo) to code the goto feature properly, so i'm actually coding that part.

232
TI Z80 / Re: asmdream is waking up...
« on: December 15, 2011, 04:41:29 pm »
Great news =]

I can say using CPIR was a good idea :


233
TI Z80 / Re: asmdream is waking up...
« on: December 14, 2011, 11:05:46 pm »
Thx for your help man =]

I definitely like the RET PO (haven't even thought of it) but it's too bad i don't need it, since i have to deal with port 7, not 6 =[
Except from that, my code is quite similar, and i'm now doing some tests with CPIR, which i'm convinced can be faster for seeking EOLs.

Anyway, there's a place for you in the credits =]

234
TI Z80 / Re: asmdream is waking up...
« on: December 14, 2011, 08:33:29 pm »
Already heard this before but already heard the contrary...
Anyway, one of my goal with this app is to have the minimum limitations for the user (and that includes includes size).
Also, doing sbc $8000,cur_addr periodically won't hurt the whole speed that much (i think).

235
TI Z80 / Re: asmdream is waking up...
« on: December 14, 2011, 08:19:04 pm »
Thx =]

I intend to optimize my "next_line" routine.
For now, it checks for page boundary overflow for each token.
I'm thinking of calculating the last address of the page first, and then playing with CPIR to catch TENTER =]
Would be significantly faster i suppose...

236
TI Z80 / Re: asmdream is waking up...
« on: December 14, 2011, 08:04:01 pm »
Includes are ready guyz =]

Here is a little screeny to show how it looks like.
Also, it shows the assembling of a 1 byte program using the last equate of the last include.
Basically, that means the assembling speed you can see here is the time it takes for the algo to do the comparison with 75 KB of flash equates (2 times actually).
It's a bit slow, but i thought it would have been a lot more.
Hopefully, i have a few things in my mind to speed it up...
Anyway, the good point is that IT WORKS !!!

There u go :


237
TI Z80 / Re: asmdream is waking up...
« on: December 13, 2011, 07:31:46 pm »
A cake walk compared to everything i've done with my own hands...
Ok, i must confess, winhex helped me a lot =]

238
TI Z80 / Re: asmdream is waking up...
« on: December 13, 2011, 07:28:11 pm »
About capital letters, i did the same =]
In fact, the prog only has to convert these :

>
enter
{
:
^
}
(
?
)
.
,

=
/
space
_

239
TI Z80 / Re: asmdream is waking up...
« on: December 13, 2011, 07:22:12 pm »
Probably oncalc, since it's been a while since i last coded some x86 shit.

240
TI Z80 / Re: asmdream is waking up...
« on: December 13, 2011, 07:20:13 pm »
ascii to toks

Pages: 1 ... 14 15 [16] 17 18 ... 24