Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Eeems on January 29, 2010, 04:41:29 pm

Title: ADE ASM Dev set
Post by: Eeems on January 29, 2010, 04:41:29 pm
here is a little package I made to make assembly easier
it includes Spasm2, ti83Plus.inc, and a bat file to make assembling easier.
tell me what you think
Title: Re: ASM Dev set
Post by: ztrumpet on January 29, 2010, 05:10:04 pm
Is this what you used with Hunt v1.08b?  It was incredebly easy to compile, and I was thinking about using it for my Asm stuff.  Now you released it!  It's a lot easier. :)
Title: Re: ASM Dev set
Post by: calc84maniac on January 29, 2010, 05:10:54 pm
here is a little package I made to make assembly easier
it includes Spasm2, ti83Plus.inc, and a bat file to make assembling easier.
tell me what you think
Cool! :)
Just a note, looking at the batch file, it appears to only take *.asm files. Maybe it would be good to include *.z80 too.
Title: Re: ASM Dev set
Post by: Eeems on January 29, 2010, 05:38:50 pm
yeah it was what I used with HUNT, although the batch file is a little different, this one makes it easier to assemble any file you want, with HUNT it's specific to the file.

calc84, yeah I just noticed that, here replace the batch file with this:
Quote
@echo off & setLocal EnableDELAYedExpansion

set N=
for /f "tokens=* delims= " %%a in ('dir/b *.asm *.z80') do (
set /a N+=1
set v!N!=%%a
echo !N! %%a
)
echo.
set /p F=Assemble file:
set /p S=Assemble to:
set s=%S%.8xp
call spasm.exe !v%F%! %S%
pause
Title: Re: ASM Dev set
Post by: Galandros on January 29, 2010, 05:47:23 pm
I was going to do that too. Although I use z80asmide, I though using with batch will be nice too.
Maybe I can do a bash version. (for linux users) If someone would like to set up spasm on linux, ask me, I think I know everything needed to make it work. I have done it one time. ;)
Title: Re: ASM Dev set
Post by: Eeems on January 31, 2010, 02:19:18 am
Ok some updates on this. I've decided to make this into a full fleged IDE. I have already started code on it. So far I have been able to read/write to a file, and I will add in assembling later. I have also completed the basic UI.

I'm writing this with the XUL framework, which means that it can be an addon to firefox (and other mozzilla projects) or it can be run seperate. I am developing it as a seperate file package.

What this will include:tell me what you think :)
Title: Re: ASM Dev set
Post by: DJ Omnimaga on January 31, 2010, 02:29:54 am
Mhmm interesting this should ease up developpement for coders. If this include Spasm2 I assume you are gonna ask Spencer's permission first, right? (unless it has a license allowing it to be distributed)
Title: Re: ASM Dev set
Post by: Eeems on January 31, 2010, 02:37:18 am
Yeah, and hopefully this will be easier to use then wabbitcode (this will be more lightweight).
I think I will...I kind of forgot to check x.x
Title: Re: ASM Dev set
Post by: Galandros on January 31, 2010, 09:21:44 am
Seems cool. It doesn't bring anything new but can be give practise. Still can be handy for someone.
PindurTI could be used, it can be somewhat controlled by shell commands. See in WikiTI or if there is documentation from Patay Gergeley.

btw I will try XUL after I finish most of other web related stuff. I am curious to see all the cool things. How do run it without Firefox?
Title: Re: ASM Dev set
Post by: ztrumpet on January 31, 2010, 10:45:25 am
Sounds cool!  I think this will be a lot easier than what I'm using now:  Tasm and Command Prompt :P
Title: Re: ASM Dev set
Post by: Eeems on January 31, 2010, 12:23:55 pm
Hmm, PindurTI eh? I'll have to look into that.
To run it without firefox requires the XUL runner, which I will package with it.
I was wondering, is there any way to do syntax highlighting using JavaScript and textboxes?
Title: Re: ASM Dev set
Post by: DJ Omnimaga on January 31, 2010, 01:30:02 pm
Isn't PTI site down now, tho? It has been a few years since the author was last seen in the TI community. I have a build in the archives, though.
Title: Re: ASM Dev set
Post by: Galandros on January 31, 2010, 02:04:01 pm
Hmm, PindurTI eh? I'll have to look into that.
To run it without firefox requires the XUL runner, which I will package with it.
I was wondering, is there any way to do syntax highlighting using JavaScript and textboxes?
I saw it done. Try to find on some WYSIWYG editor.

Isn't PTI site down now, tho? It has been a few years since the author was last seen in the TI community. I have a build in the archives, though.
The site has moved. The author changed the links in the WikiTI. That is why I know this.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on January 31, 2010, 02:23:32 pm
Ooh ok, good to know then

I am not even sure if Omnimaga has the very very latest build. It might be one or two earlier, altough there might not be much differences.
Title: Re: ASM Dev set
Post by: Eeems on January 31, 2010, 04:47:34 pm
Ah ok, I'll search it up when I can, cant work on it today though.
Hmm, I'll have to see what I can do with it.
Title: Re: ASM Dev set
Post by: Builderboy on January 31, 2010, 07:37:07 pm
Hmmm, i keep getting "Couldn't open input file".  Am i missing some things or just doing it wrong?
Title: Re: ASM Dev set
Post by: Eeems on January 31, 2010, 11:31:51 pm
What are you doing?
Make sure you enter the number coresponding with the file in the first one. 
Title: Re: ASM Dev set
Post by: Builderboy on January 31, 2010, 11:38:26 pm
Oooooh i get it now.  Here i was typing in the file name :P
Title: Re: ASM Dev set
Post by: Eeems on February 01, 2010, 12:43:23 am
Lol :p well I was trying to make it easier ten that ;p
how are you liking it so far?
Title: Re: ASM Dev set
Post by: Builderboy on February 01, 2010, 01:01:37 am
Very very easy to compile, much nicer than tasm and command prompt :)
Title: Re: ASM Dev set
Post by: Eeems on February 01, 2010, 02:03:37 am
Yay! For even quicker compiling, just make a batch file and put this in.
Code: [Select]
spasm.exe <sourcefile> <outputfile>which is pretty much like running it in a command prompt, but quicker. I used that method for hunt. 
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 01, 2010, 02:12:06 am
So you just drag/drop the file(s), right?
Title: Re: ASM Dev set
Post by: Eeems on February 01, 2010, 02:23:01 am
No, I don't know how to set up that, but you run tw bat, and it will lust the .asm and .z80 files, you enter the number next to it, then input the desired name for te outupt .8xp and then it will compile.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 01, 2010, 02:40:36 am
aah ok, thganks for claryfing
Title: Re: ASM Dev set
Post by: Eeems on February 01, 2010, 03:35:09 am
Np, lol, wow, stupid ipod auto correct fails x.x how did the word lust get in there?
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 01, 2010, 03:48:16 am
Which part of your posts do you mean?
Title: Re: ASM Dev set
Post by: Galandros on February 01, 2010, 03:58:48 am
No, I don't know how to set up that, but you run tw bat, and it will lust the .asm and .z80 files, you enter the number next to it, then input the desired name for te outupt .8xp and then it will compile.
It is easy. See calcmaniac84 batch for the TiBoySE.
Basically the files dropped into the batch go to the %1 %2, %3, etc. variables. The last file selected is the %1, I think.
Title: Re: ASM Dev set
Post by: Eeems on February 02, 2010, 08:05:12 pm
Ok, so I can't seem to get syntax highlighting to be viable (you can do it, just you can't do anything with the text after x.x) but I was able to get saving, saving as, and opening to work :D I'll upload a trial soon (probably in computers class or tomorrow)
I am currently working on running the assembler through it, which is, as far as I can tell, possible, but it is a little confusing. Stupid JavaScript.
Title: Re: ASM Dev set
Post by: Galandros on February 03, 2010, 04:40:29 am
Ok, so I can't seem to get syntax highlighting to be viable (you can do it, just you can't do anything with the text after x.x)
I saw a syntax highlighting viable editor. It is possible. I tried to see the technique to give you hints but I didn't understand how it was done.
I will search for other WYSIWYG editor in JavaScript and try again.

EDIT: it is complicated to do the highlighter... The most complicated JavaScript, HTML and CSS I have seen.
They use iframes that kinda replace the textarea. They catch keypresses with JavaScript.
I don't know how this 2 things are used together to get the highlight.
Title: Re: ASM Dev set
Post by: Eeems on February 03, 2010, 09:40:53 am
Well I know how to do syntax highlighting, but I can't save it after I'm done due to how it is done.
Title: Re: ASM Dev set
Post by: Eeems on February 03, 2010, 07:54:57 pm
ok, here is the package so far, just extract it and run run.bat
sorry linux/mac users, this wont work with your system :/

currently supports:http://future_history.freehostia.com/Files/asmdevset.zip

EDIT: I have created a google code project page, due to the filesize...
Download: http://asmdevset.googlecode.com/files/ASMIDEv1.0.1b.zip
Project Page: http://code.google.com/p/asmdevset/

EDIT2: updated link, new version has an executable in the asmdevset folder to run it. It also has wabbitemu support :D

EDIT3: woops, re-uploaded it without the wabbit ROM's x.x
I changed the UI to add a Run button that includes the Run and compile commands. Run will compile the file, and then send it to wabbitemu. Assemble will just assemble it.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 04, 2010, 12:12:38 am
Nice, before uploading to archives, you should ask Spencer's and Buckeye's permission if you can redistribute WabbitEmu, tho, especially that it's not finished.
Title: Re: ASM Dev set
Post by: Eeems on February 04, 2010, 12:17:07 am
Yeah, I got permission for spasm, and I'm waiting on the reply for wabbit. Also, it's too soon for putting it in the archives, I need to finish more functions, and at least add a help popup.
Title: Re: ASM Dev set
Post by: Eeems on February 04, 2010, 11:05:56 pm
Ok, so I have permission to include wabbit as well. I'll try to upload a new version tomorrow.
I have added a help dialogue (more of an about)
I might add automatic updates soon (I'll have to figure it out x.x) luckily google code gives tue SHASH1 or whatever it is called that the updated needs, so it will be easy to integrate that as the update host.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 05, 2010, 02:51:59 am
Cool to hear :)
Title: Re: ASM Dev set
Post by: Galandros on February 05, 2010, 10:12:59 am
XUL runner is really nice. I will start using it too.

@Eeems
You can use Firefox already to run the package

Just provide something like this in a batch file:
firefox.exe -app path\to\application.ini

A version with this would be great instead of bundle the XUL runner that is a bit bulky.
Title: Re: ASM Dev set
Post by: Eeems on February 05, 2010, 04:12:02 pm
I would run it from firefox, but it doesn't allow for some of the commands I use (like the open/save as). Also, I have converted my batch file to a .exe so it can have an icon, and it doesn't have that stupid black window...
I could release the standalone version, and then a XULrunner version so that if you have XULrunner already installed you can just run if from that.
Also, anybody found the Easter eggs yet?

EDIT: uploaded the new version btw.
Title: Re: ASM Dev set
Post by: ztrumpet on February 05, 2010, 04:53:46 pm
Eeems, if I type 'S' 'I' 'N' 'E' and them '2' '3' does it clear my computer's memory?  (No I havn't found any Easter Eggs, as I havn't needed to assemble anything. :( I really need to assemble my Hello World Program or something to see how cool yours is. :) )
Title: Re: ASM Dev set
Post by: Galandros on February 05, 2010, 05:09:25 pm
Too bad it can't be run from Firefox. :(

I noticed the executable program. I suspected it was a batch file converted because I have seen some batch to exe converters but never tried to use.
Title: Re: ASM Dev set
Post by: Eeems on February 05, 2010, 06:05:40 pm
@ztrumpet: lol no :p but try pressing ctrl-= something might just come up ;)
@Galadros: yeah :/ it kind of sucks. Yeah, I actually will be making an install file sometime soon so you can setup it with shortcuts to the executable and setup wabbit/spasm (like wether to include it in the installation, or to specify where it is installed (for wabbit I will try to include ROM setup as well (like which ROM to include (it will copy in and then save it with a certain name)))
oh yeah, if anyone has any interesting icons they want to suggest just let me know (currently I am using a modified wabbitemu one)
Title: Re: ASM Dev set
Post by: Eeems on February 06, 2010, 12:32:50 am
Ok I just uploaded v1.1b which includes some small updates, and I fixed the Run option, so it actually works x.x (it was  calling the wrong program x.x)
http://code.google.com/p/asmdevset/downloads/list will always contain the most recent uploads so just check in every so often, I'll try to implement a check for updates command soon so I can just change that up and such.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 06, 2010, 01:38:37 am
As this is coming from Omnimaga, I am a bit scared of the easter egg for some reason *thinks about what happened when he tried Tribal's RPG Maker z80*
Title: Re: ASM Dev set
Post by: Eeems on February 06, 2010, 02:07:10 am
Lol :p don't worry, nothing that bad happens, btw, what happened?
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 06, 2010, 02:11:53 am
   |
   |
   V
<insert a rickroll there...not...didn't want to leave it on because it would slow down the page too much and isn't Randomness forum... but yeah I got rickroll'd :P>

Minus the video :P
Title: Re: ASM Dev set
Post by: Eeems on February 06, 2010, 02:17:42 am
Ah lol :p
well whatever you do in mine, don't press ctrl-= ;p
that's theonly one I'm giving away.
Title: Re: ASM Dev set
Post by: Eeems on February 06, 2010, 10:39:59 pm
Well I uploaded another version, I made some changes to the UI and help command opens up the wiki, which I haven't done anything with yet. And Source under the help dropdown opens the source page, nothing there either. 
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 07, 2010, 02:52:15 am
wow there seems to be a lot of files in there x.x

You might want to make sure install instructions are pretty clear once major versions comes out
Title: Re: ASM Dev set
Post by: Eeems on February 07, 2010, 12:13:25 pm
Yeah. Actually most of the files are xul runner, and a few of them are the actual application. So, when I make an installer it will install it and make a shortcut and etc, just like normal ones do so running it should be easy
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 07, 2010, 03:00:19 pm
What do you need to run first, though?
Title: Re: ASM Dev set
Post by: Eeems on February 07, 2010, 03:36:04 pm
You just need to run ASMDEVSET.exe an it will work no installation is needed yet.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 07, 2010, 07:53:39 pm
It does nothing...
Title: Re: ASM Dev set
Post by: Eeems on February 07, 2010, 09:05:21 pm
Hmm, yeah strange. How about one of the older versions? It's not working for me either.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 07, 2010, 09:30:55 pm
Maybe it's dependent on some specific windows files or stuff. Btw I run Windows XP Home SP2 in french
Title: Re: ASM Dev set
Post by: Eeems on February 07, 2010, 09:32:49 pm
Hmm, I don't know. It was working yesterday but it wouldn't run for me today.
Strange.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on February 07, 2010, 09:34:47 pm
Maybe there might be something in the package that isn't really reliable, then x.x

Title: Re: ASM Dev set
Post by: Eeems on February 07, 2010, 09:38:56 pm
I wouldn't think so...I guess I'll have to look into it tomorrow.
Title: Re: ASM Dev set
Post by: Eeems on June 01, 2010, 04:30:48 pm
I've repackaged the original asm dev set into one file, so now all you have to do is run it and chose the file you want to assemble and then name what you want to assemble it to, then assemble it :) easy as that! it has a nice icon and it includes spasm and the ti83plus.inc file which it will temporarily unpack during assembly :) hope you enjoy it :)
Title: Re: ASM Dev set
Post by: DJ Omnimaga on June 01, 2010, 04:39:54 pm
Nice to see this is still alive ^^
Title: Re: ASM Dev set
Post by: Eeems on June 01, 2010, 04:50:56 pm
lol, well I just looked at it and decided to re-vamp it a bit, but I didn't change anything. This isn't ADE, just the predecessor, so it's only good for assembling.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on June 01, 2010, 05:12:55 pm
aaah ok. I hope you continue working on calc stuff soon ^^
Title: Re: ASM Dev set
Post by: Eeems on June 01, 2010, 05:15:36 pm
I intend to, although jBasic is my current project, but I will most likely start working on a game sometime as soon as I talk to Builderboy because I want his help with it.
Title: Re: ASM Dev set
Post by: Eeems on June 01, 2010, 07:47:24 pm
Sorry about the double post,

I made a little helpful batch file that will help you set up project environments for asm development and I packaged it along with ASMDEVSET so you can now have a nice general compiler helper and another one for projects that you will compile often. What this script does is it will create batch files directly meant for compiling your one program, it also includes ti83plus.inc and spasm.exe which it will extract from itself and let you use.
I might just upload this to ticalc sometime...I'll have to get permission for including spasm though...
Title: Re: ASM Dev set
Post by: ztrumpet on June 01, 2010, 07:50:18 pm
I want to try this, but I don't know exactly how.  What should I do?  Thanks Eeems!
This sounds really cool.  I can't wait to use it (properly). ;D
Title: Re: ASM Dev set
Post by: Eeems on June 02, 2010, 05:50:09 pm
So you just run the first program to assemble a .asm or .z80 file and the second one is to create a batch file that will cut down on time. when you run them it should be pretty easy to use.
Title: Re: ASM Dev set
Post by: ztrumpet on June 02, 2010, 07:06:53 pm
So you just run the first program to assemble a .asm or .z80 file and the second one is to create a batch file that will cut down on time. when you run them it should be pretty easy to use.
I'm sorry, I don't quite understand.  Where should I put the source that I want to assemble, and why should I run the second program?

Thanks Eeems, and I'm sorry I'm not understanding. :)
Title: Re: ASM Dev set
Post by: Eeems on June 02, 2010, 07:16:56 pm
ok, so you put the source in the same folder as either of the programs, and then run them. The second on (ADH.exe) will help repetitive assembling by making a batch file that assembles in one run with no input, so it's much easier to use :) assemble.exe is less nice to use because it takes longer, but it's faster then doing all the command line work at once. I'm currently working on ADH.exe and making it better by making it create a project file instead of just assembling. So it will set up the the folder structure and everything. so it will be really helpful for starting new projects :)
Title: Re: ASM Dev set
Post by: ztrumpet on June 02, 2010, 07:23:06 pm
ok, so you put the source in the same folder as either of the programs, and then run them. The second on (ADH.exe) will help repetitive assembling by making a batch file that assembles in one run with no input, so it's much easier to use :) assemble.exe is less nice to use because it takes longer, but it's faster then doing all the command line work at once. I'm currently working on ADH.exe and making it better by making it create a project file instead of just assembling. So it will set up the the folder structure and everything. so it will be really helpful for starting new projects :)
Ah, okay, Thanks!  I now can get it to Assemble.  Thanks Eeems! ;D
Nice program! :D
Title: Re: ASM Dev set
Post by: Eeems on June 02, 2010, 07:36:13 pm
np! ok here is the nice project file creator :) hope you like it!
the folder structure will look like this:
Code: [Select]
Project Name
 |-source
 | |-spasm.exe
 | |-source.asm
 | |-ti83plus.inc
 | |-assemble.bat
 |-releases
 |-screenshots
 |-compiled
 |-readme.txt
so you edit source.asm to create your program, it already includes your header, then you run assemble.bat to assemble your project and it should put it in the compiled folder, someone double-check that for me...
Title: Re: ASM Dev set
Post by: Eeems on June 03, 2010, 06:51:24 pm
Ok, I've made a nicer one :P hope you like it! and it works correctly :P I'll add more stuff later :) This uses vbscript so it has a nicer interface :P
Title: Re: ASM Dev set
Post by: DJ Omnimaga on June 03, 2010, 07:30:41 pm
Does the folders creation occurs in the same folder where you run this?
Title: Re: ASM Dev set
Post by: Eeems on June 03, 2010, 08:04:09 pm
Yes it does. So pretty much Its best to have this sitting in the folder where you store all your projects.
Title: Re: ASM Dev set
Post by: DJ Omnimaga on June 03, 2010, 10:13:30 pm
Aaah ok ^^ (and put a shortcut somewhere)