916
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?
« on: December 06, 2013, 12:34:10 am »
OK, thanks all for the solutions, I'll try them all and see which one I like best ^^
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. 916
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 06, 2013, 12:34:10 am »
OK, thanks all for the solutions, I'll try them all and see which one I like best ^^
918
Other Calculators / Re: Your calculator collection« on: December 05, 2013, 12:53:42 pm »What is the right-most calc?Never heard of the CP 400 ? 919
Calculator C / Re: Interested in C Development for Nspire CX CAS« on: December 05, 2013, 11:37:07 am »I'm sorry I'm not sure what you were referring to in you edits. Are suggesting you have one of the newer models and it worked for you?Haha : I was wondering where those edits were. Nope, in fact I just edited the wrong post, as JosJuice said 920
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 05, 2013, 11:33:27 am »Wow, something weird happened here, I remember editing my previous post twice but I don't see those edits anywhere I was saying that the problem doesn't come from spaces, I tried in another folder with spaces and it worked like a charm. Anyway, it works in certain conditions, I'll just find a place where it works and where it doesn't bother me. Thanks for the utility edit In fact I just messed things up and wrote my edits in the wrong post lol Also, it seems that ClrHome is down, so I am thinking Deep Thought is too busyYeah, this is another reason why I wanted an offline solution. They always work (except when Microsoft makes stupid updates). 921
Calculator C / Re: Interested in C Development for Nspire CX CAS« on: December 05, 2013, 02:00:54 am »
I don't know since you'll probably get a new calculator. What I'd advise, if it is doable, is to go in stores and look for calculators in the old packaging. If you find one, you're sure it'll support Ndless. But with orders, you can get anything.
edit3 don't read those edits, I messed up and edited this post instead of that one edit weird, I tried in another folder that contains space, it works like a charm edit2 One of the subfolders it is in has a quote ' in its name, could this be the problem ? 922
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 05, 2013, 01:57:32 am »
Wow, thanks
I just have a little problem with your program: when I put fire.lst in C:\ it works, but when I put it in an other place like "E:\<full path>\fire.lst", then I change the line in your program where it's written "C:\fire.lst" to have the path I have instead, but it says (in French) "E:\<full path\cut.vbs(7, 1) Erreur d'exécution Microsoft UBScript: Chemin d'accès introuvable". Could this be because I have spaces in the path ? 923
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 04:41:05 pm »Why not just use a hex dumper to dump the .bin file? You could write a script or batch file to do it automatically.I have a problem on each OS
924
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 03:57:24 pm »You just reminded me that NotePad++ supports column edition/selection, thanksIt's not "all that laziness", I'd like to see you remove half the line on every line of a file everytime you compiled itA very simple program can do it for you, you don't need to edit the file yourself... So yeah, using -T in SPASM then using NotePad++ to remove useless columns is a solution, but if anyone has better, I'll take it 925
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 03:35:49 pm »I know you said you wanted an offline solution, but maybe talk to Deep Thought about ORG. It gives an option to output the hex.Good idea, he might have something that can do it. It's not "all that laziness", I'd like to see you remove half the line on every line of a file everytime you compiled itI want only hex, plus things at the beginning or the end if you like, but not things that are hard to remove for lazy peopleWell, with all that laziness, may i ask what do you need the hex codes for? And it's to include ASM code into Axe code (because it is a lot better to design GUIs with Axe but the core of the program I am writing needs to be in ASM). 926
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 03:26:23 pm »I think (s)he whants a program to convert the assembly code to readable hexadecimal code, instead of into a binary program file.Yeah, that's it. With SPASM, you can use the -T command-line option to generate a code listing (as well as -O to not specify an output file). This won't give the hex by itself, though, it's a bit more verbose.Thanks, I've used SPASM to compile for a little while without even knowing it had options lol. But yeah, there are a bit too much things. A z80 assembler (almost any will do!) produces "both" a binary AND a list output with the hex codes beside the asm mnemonics!Well TASM doesn't because it doesn't even run in Win8 (and don't tell me "install Win7", I tried and it missed so many drivers that even the mouse was not recognized), and SPASM does but I don't want the "beside the asm mnemonics" part I want only hex, plus things at the beginning or the end if you like, but not things that are hard to remove for lazy people 927
General Calculator Help / Re: Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 02:49:39 pm »
True, thanks for the table.
However, this can be painful for long programs I also forgot to say which OS I wanted it to run on, because I don't care I have both Windows and Linux. I'll edit the first post. 928
General Calculator Help / Convert ASM mnemonics to HEX (ASCII) ?« on: December 04, 2013, 02:40:13 pm »
Helloes
I am looking for some software that would (as the title says) convert a file with ASM mnemonics into HEX code. For example, say that I have a file named "test.z80" with this inside: xor a ret Then the software would return a file with AFC9 inside. I don't really care if the program needs a header or not, or if it returns AF and C9 on separate lines, I'd just like a tool that converts, basically and I'll make adjustment myself if needed. So does that exist ? Note: I know RunerBot does that, but I'd like an offline solution (because I don't have any connexion when on the train). Note2: Whatever OS you want it to be run with is ok, I have both Windows and Linux on my laptop. 929
Axe / Re: Help Request - ERROR INVALID TOKEN« on: December 04, 2013, 12:40:38 am »
For your "variables in L1", just store them in two bytes instead of one (using r) and you'll get the exact same results than with "regular variables" and with custom variables.
930
Axe / Re: Lights Out help?« on: December 03, 2013, 02:26:41 pm »
Easy, just save what's behind the sprite before drawing it, then draw it then erase it. Beware though to put your operations in a smart order so you don't have the DispGraph^^r between the erasing and the drawing part
Would look like this (check the Commands for proper syntax, I may mess up with the order of the arguments) Pt-Get(X,Y,L6,L1) Pt-Get(X,Y,L3,L1+8) Pt-On(X,Y,°SpriteBlack,L6) Pt-On(X,Y,°SpriteGrey,L3) DispGraph^^r Pt-Off(X,Y,L1,L6) Pt-Off(X,Y,L1+8,L3) |
|