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 ... 12 13 [14] 15 16 ... 24
196
TI Z80 / Re: Jade
« on: March 17, 2013, 09:13:53 am »
Re, xed.

I took a look at the source and i think something can be done here.
I just need more precisions :
Do you want asmdream to do its work silently (without displaying anything) ?
If yes, you'll have to handle the display of error messages by yourself (I can provide error data).
If no, what do you want it to display ?
Also, do you want the goto feature to be executed by asmdream or do you intend to code one yourself ?

197
TI Z80 / Re: Jade
« on: March 14, 2013, 09:39:02 am »
Hey Zedy...

Good to see you on my old mail box =]

About asmdream current status :
I'm actually thinking to redesign the whole thing.
I would like to code a text editor, compatible with text files (ANSI at least) written on a computer, and add it into the app.
Also, i'm probably gonna change the whole syntax so that asmdream can read sources and includes written for pc assemblers (no prgm editor anymore).
Maybe the assembler and the editor will both be included in a bigger project i'm thinking of (a shell actually).
So asmdream as you know it will be very different, but also a lot better.

About your request :
What asmdream does was not initially designed to be "called" from another code.
I mean, it would probably require some changes in the original source.
I'm not saying it's impossible, but it requires a bit of work on my side.
I'm gonna take a closer look at the source and see if that can be done without too much trouble...

Keep up the good work mate =]

198
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 14, 2012, 08:06:52 am »
1) Is there any way to use calls in a macro? That could be very helpful!

In asmdream, an address label is always local, which means it can only be refered to in the area where it was defined.
In other words, it's not possible to refer directly to an address label in a macro body, if the label was defined in the data|code area of your source.
The thing is, macro parameters are there to help you do that =]

For example, this won't work :

Code: [Select]
APPLE{
CALL JUICE < "undefined label" error there, since JUICE is not in the macro area.
}
prgmFRUIT
APPLE
JUICE
...

You have to use a macro parameter to be able to refer to JUICE, indirectly, like this :

Code: [Select]
APPLE(?){
CALL ?0
}
prgmFRUIT
APPLE(JUICE) < JUICE can be refered there, since it's in the same area.
JUICE
...

You can also use this method, if your code is compatible :

Code: [Select]
APPLE{
...
}
prgmFRUIT
CALL JUICE
JUICE
APPLE

You can also define address labels directly in a macro body (but won't then be able to refer to them in the data|code area of the source) :

Code: [Select]
APPLE{
CALL JUICE
JUICE
...
}
prgmFRUIT
APPLE

2) Would you be able to add these as math operations: *, /, and, or, xor, not( ?

Most of the missing operators are already in my todo list (see first post).
To be honest, that won't be for today, since i have to revise many routines to integrate those.

I won't probably add the / operator, since there could be conflicts with labels names (/ already used as a replacement for _).

Same thing goes for the not( token.
Indeed, that left parenthese bothers me, since parenthese tokens are already reserved for instructions & macros.
Anyway, you'll still have this option : -argument-1.

I ask these two because I wanted to make this macro:
Code: [Select]
Pxl-On(?,?{
 LD BC,?0+?1*256
 CALL GETPXLLOC
 OR (HL)
 LD (HL),a
}

I know u know but this piece of code is a good occasion for me to clarify for other potential users :

Only the following tokens are allowed in a macro name definition :
 numbers (0>9)
 uppercase letters (A>Z) < The first one must be one of these.
 space
 ,
 > (store)
 (
 )
 ? (special, defines a parameter)
 { (end of line only)
Unfortunately, i'm afraid allowing more tokens would slow down the macro parsing and i want to avoid that.

Also, LD (HL),a should be LD (HL),A.

Also, I made the outline of a snake game using Asmdream!

I'm definitely happy to see i'm not the only one testing asmdream.
That's a true honor my friend =]

199
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 13, 2012, 12:05:07 pm »
Weird...
Do you use a front panel usb port ?
Any other usb devices in trouble ?

200
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 13, 2012, 12:00:48 pm »
You're welcome Xedy =]
Btw, how naughty is your ti-connect ?

201
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 13, 2012, 11:57:18 am »
Wow, and on TICalc.org, too, it is ranked in the top 150 most downloaded for the past week, that is crazy! There must be thousands of programs on there for all types of TI calculators!

However, the ticalc.org download is outdated for now so i recommend downloading here.

202
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 13, 2012, 11:53:36 am »
Wow, very cool! Is the download in the first post?

Everything was updated =]

203
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 13, 2012, 11:47:29 am »
NEWS (screeny updated)

The assembling is now processed in 2 passes, instead of 3.
Includes are now detected automatically (no calls anymore).
Sources & includes names must now start with theta (overwriting security).
The destination name can not start with theta anymore (overwriting security).
The destination name is now displayed at the overwriting confirmation screen.
AsmPrgm was replaced by prgm (new syntax).
Refering to equate labels is now possible in initial program counter definition.
Destination data size security implemented (changeable maximum value).
Ascii arguments are now parsed properly (bug fix).
When using the goto feature, the cursor position is now properly set if there are word tokens in the line (bug fix).
The ram available for the destination data is now calculated properly (bug fix).
Some extra instructions have been optimized (thx calc84maniac).
Various code parts have been optimized.

Also, i added a to do list in the first post.

#####

As for the automatic detection, that sounds useful and all you would need to do is load the name for prgm Theta into OP1, check it, then use _FindAlphUp to check for other programs.

Coded =]
I used a custom routine (I always do that when i can).

Is there a way to include your own equate files made specifically for asmDream? If so, then I might be able to whip up a python script that converts .inc to a asmDream file (.txt to be converted to .8xp with a tokenizer), which the users could just send over to their calcs and then include like a normal include file.

Of course.
The compatible include format is detailed in asmdream.txt.
Don't hesitate to ask if you find something ambiguous =]

204
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 06, 2012, 04:26:50 am »
is there a way to bring over includes from the computer (.inc)?

No, and to tell the truth, i won't probably have the time to code that (That's why i included as much equates as possible.).

I mean allowing a different program to pass a source to your assembler.  If someone made a code editor, they would be able to place the program name in ram and call a routine in your app to compile it.

Not initially, but that's an interesting idea.
I'll take a look at that, and see if that could be compatible without altering too much code.

*****

I'm also thinking of adding those :

- symbolic arguments allowed in program counter definition
- a faster way to call all the includes :
Why not an automatic detection/inclusion of all unprotected programs starting with theta (then check header) ?
Some feedback would be quite appreciated about this idea =]

205
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 05, 2012, 06:15:46 pm »
What you mean ?
Adding some shell routines into the app ?

206
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 05, 2012, 05:56:03 pm »
You rock !
To tell the truth, i feel a bit ashamed to haven't found those by myself =S
Thx a lot =]

207
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 05, 2012, 03:33:59 pm »
NEWS

Fixed a few minor bugs.
The store token is now allowed in macro name definitions (Thx xeda112358).
Overwriting the destination program is now possible (Thx calc84maniac).
Added more extra loading instructions (XLD).
Added extra exchange instructions (XEX).

LIST OF CURRENT EXTRA INSTRUCTIONS (space>speed)

no requirements :

 XLD BC,DE
 XLD BC,HL
 XLD DE,BC
 XLD DE,HL
 XLD HL,BC
 XLD HL,DE

requires 1 available stack entry :

 XLD AF,BC
 XLD AF,DE
 XLD AF,HL
 XLD AF,IX
 XLD AF,IY
 XLD BC,AF
 XLD BC,IX
 XLD BC,IY
 XLD DE,AF
 XLD DE,IX
 XLD DE,IY
 XLD HL,AF
 XLD HL,IX
 XLD HL,IY
 XLD IX,AF
 XLD IX,BC
 XLD IX,DE
 XLD IX,HL
 XLD IX,IY
 XLD IY,AF
 XLD IY,BC
 XLD IY,DE
 XLD IY,HL
 XLD IY,IX

requires 2 available stack entries :

 XEX AF,BC
 XEX AF,DE
 XEX AF,HL
 XEX AF,IX
 XEX AF,IY
 XEX BC,DE
 XEX BC,HL
 XEX BC,IX
 XEX BC,IY
 XEX DE,IX
 XEX DE,IY
 XEX HL,IX
 XEX HL,IY
 XEX IX,IY

NEXT CHALLENGE

new operators :

*:multiplication
<<:logical bit shift left
>>:logical bit shift right
 and :bitwise and
 or :bitwise or
 xor :bitwise xor
[:left parenthese (calculation priority)
]:right parenthese (calculation priority)

208
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 01, 2012, 01:23:33 pm »
A "triggering" token is a nice idea i haven't even thought about...
Thx a lot for that suggestion.
Anyway, i'm definitely happy asmdream could have helped you that day =]

209
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 01, 2012, 09:58:22 am »
This seems pretty nice. Have you considered putting it in the Omni downloads in the future so it can be found easier here? :)

That would be a true honor =]
Maybe after the beta period ?

Accessing the LSB or MSB is sometimes useful in optimisations. For example, when I am computing the address to write a pixel to the graph buffer, I often do something that includes setting the 6th bit of C and loading 93h into B.

Optimization... of course.

*****

After having looked at it, i'm on my way to code :

logical bit shift left
logical bit shift right
bitwise and
bitwise or
bitwise xor
multiplication
possibility to automatically overwrite the destination program if it already exists

210
TI Z80 / Re: ASMDREAM - the TI-8X+ on-calc assembler
« on: January 01, 2012, 06:27:05 am »
Thx for feedback calc84maniac =]

For one thing, it seems like it would be really annoying to have to delete the assembled program manually each time I want to assemble it again.

That's an interesting point.
I guess adding some kind of overwriting (wih confirmation) feature shouldn't represent too much trouble.

And also, there are no bitshifting or bitwise operators... how am I supposed to split my labels into 2 bytes? D:

I'm actually thinking of adding those to the feature list (multiplication also if i can).
By curiosity, in which case would you need to access the lsb or msb of a label ?

Pages: 1 ... 12 13 [14] 15 16 ... 24