FAQ development

I am new to vectrex development, what can do I do to get started?

I have an asm-file - how do I assemble that?

Again there are (at least) two options, for both - open vedi and:

My sources are spread over several files, how do I assemble them?

Look at the answer to the last question, both work.

Assi is not optimizing as good as my older assembler.

Yep that might be true. Optimizing is sometimes tricky. And since I did not develope the core code of assi myself, I felt sometimes restrained to change the very core of it (or in other words I did not dare). Anyway I think a good solution is to let the programmer do optimization - I don't think any assembler (or compiler) can be as good as a programmer.

But... even a extended addressing is sometimes not translated to direct addressing even when possible!

Yes. If you use extended addressing with a variable (ram location e.g.) that is defined further down the source (or an include file loaded at a later stage), that address is not optimized to direct addressing. This also has to do with the inner working of assi. The decision whether an instruction is direct or extended is made in pass 1. In pass 1 also the includes and variables are evaluated. If a variable comes later down the line it is at that stage "unkown" and a decision whether the DP-register is the correct one can not be made. Doing extended addressing is the save path. The correct way for assi would be to do a pass in between and try to assert all "fixed" variables so at least they can be evaluated - I have not done that yet! Two fixes are possible for that particular "optimization":

If the files represent different banks for bankswitching, create a new project according to your bankswitching scheme. Set to each bank the according file as main (this can only be done from the project properties panel)

I love my old assembler I don't want to use assi, what can I do?

Easy answer, well than don't - umpf! (so much work wasted....)

Not so easy answer...
You don't have to, but building and error editing in vedi won't be as comfortable.

Each file can have it's own properties. Even your main ASM file. Create a property file for your main ASM file(s):

How can I insert vectorlists into vedi?

There are actually two easy ways: