Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started 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
-
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. :)
-
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.
-
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:@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
-
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. ;)
-
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:- spasm2 assembler
- tabbed editing space
- possibly added wabbitemu support
- addon to firefox
- autoupdating
tell me what you think :)
-
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)
-
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
-
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?
-
Sounds cool! I think this will be a lot easier than what I'm using now: Tasm and Command Prompt :P
-
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?
-
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.
-
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.
-
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.
-
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.
-
Hmmm, i keep getting "Couldn't open input file". Am i missing some things or just doing it wrong?
-
What are you doing?
Make sure you enter the number coresponding with the file in the first one.
-
Oooooh i get it now. Here i was typing in the file name :P
-
Lol :p well I was trying to make it easier ten that ;p
how are you liking it so far?
-
Very very easy to compile, much nicer than tasm and command prompt :)
-
Yay! For even quicker compiling, just make a batch file and put this in.
spasm.exe <sourcefile> <outputfile>
which is pretty much like running it in a command prompt, but quicker. I used that method for hunt.
-
So you just drag/drop the file(s), right?
-
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.
-
aah ok, thganks for claryfing
-
Np, lol, wow, stupid ipod auto correct fails x.x how did the word lust get in there?
-
Which part of your posts do you mean?
-
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.
-
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.
-
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.
-
Well I know how to do syntax highlighting, but I can't save it after I'm done due to how it is done.
-
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:- open/save/save as
- text editing
- assembling
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.
-
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.
-
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.
-
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.
-
Cool to hear :)
-
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.
-
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.
-
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. :) )
-
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.
-
@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)
-
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.
-
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*
-
Lol :p don't worry, nothing that bad happens, btw, what happened?
-
|
|
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
-
Ah lol :p
well whatever you do in mine, don't press ctrl-= ;p
that's theonly one I'm giving away.
-
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.
-
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
-
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
-
What do you need to run first, though?
-
You just need to run ASMDEVSET.exe an it will work no installation is needed yet.
-
It does nothing...
-
Hmm, yeah strange. How about one of the older versions? It's not working for me either.
-
Maybe it's dependent on some specific windows files or stuff. Btw I run Windows XP Home SP2 in french
-
Hmm, I don't know. It was working yesterday but it wouldn't run for me today.
Strange.
-
Maybe there might be something in the package that isn't really reliable, then x.x
-
I wouldn't think so...I guess I'll have to look into it tomorrow.
-
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 :)
-
Nice to see this is still alive ^^
-
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.
-
aaah ok. I hope you continue working on calc stuff soon ^^
-
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.
-
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...
-
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
-
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.
-
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. :)
-
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 :)
-
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
-
np! ok here is the nice project file creator :) hope you like it!
the folder structure will look like this: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...
-
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
-
Does the folders creation occurs in the same folder where you run this?
-
Yes it does. So pretty much Its best to have this sitting in the folder where you store all your projects.
-
Aaah ok ^^ (and put a shortcut somewhere)