02-23-2015, 04:04 PM
You can use this tag for that kinda formatting:
(look up BBCode)
Code:
[code]
(look up BBCode)
02-23-2015, 04:04 PM
You can use this tag for that kinda formatting:
Code: [code] (look up BBCode)
02-25-2015, 05:41 AM
(02-23-2015, 03:54 PM)fuirippu Wrote: I have a question/feature request: It would be possible yes, but my question would be why would you want this? The main purpose of the assembler is to provide code that can be easily parsed into something like an /autoprogram format. Also, you can already reference lines by inserting a tag (I haven't added this to the tutorial yet) such as '@address_name' on it's own line which means you can use that line as an address in other places.
02-25-2015, 07:40 AM
Fair point, if I want a line-numbered-file which contains my program in both assembly and binary formats, it should be easy enough to write a script which combines 1) the output from the JISA and 2) the assembly language input used. If only I had an operating system with 1/2 decent support for scripts... d'oh. (maybe time to dust off MinGW/MSYS).
02-25-2015, 11:21 AM
The only issue is multiline instructions. Would the value at the start reference the PROM address, or the code line?
03-09-2015, 05:51 PM
I envision using the combined assembly and machine code file as a debugging aide while in-game placing and removing torches, so I think numbering the lines according to their PROM address would be the more useful option.
03-09-2015, 06:52 PM
Hopefully we will be able to compile directly to mc in the near future. I'm developing a scripter that will translate your binary to the format read by the autoprogram tool. The only extra step on your part would be defining your rom's physical properties.
03-11-2015, 01:53 PM
So can't wait for that Mag.
I can't wait to be able to go from a programming Lang (C *like* made by Dylan John and I, most likely others too lol) compile to asm. Use Jall's asm to binary then Mag'so binary to auto program... I kinda want to combine all 3 steps into 1 single script... may work on that when they are all made
03-11-2015, 05:46 PM
The program has been up for a while: http://forum.openredstone.org/showthread.php?tid=5843
I'm not changing the syntax anymore, and any extras will only expand on the scripting lang instead of change it.
03-11-2015, 05:53 PM
Omg.. y don't I ever check the programming subforum XD
03-11-2015, 06:05 PM
Oh and it won't be too difficult to link the different stages together, as afaik all the programs are used via command line.
so it would be like: python34 assemble.py <sourcefile> python34 convert.py <assemble_output> <templatefile> ... don't type those lines in, they are about as pseudocodey as you can get xD |
|